From cd37fef2e1602be50daf895a09daa568cf74db29 Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Mon, 29 May 2017 14:35:09 +0200 Subject: mc_bdx1: Switch to RTC RX6110SA The prior used RTC PCF8523 is replaced with RX6110SA on this mainboard. Switch to the new RTC in Kconfig and adapt devicetree to the new chip. Change-Id: I7c4911191cae254900f9a958da42ecd18497484c Signed-off-by: Werner Zeh Reviewed-on: https://review.coreboot.org/19979 Tested-by: build bot (Jenkins) Reviewed-by: Mario Scheithauer --- src/mainboard/siemens/mc_bdx1/Kconfig | 3 ++- src/mainboard/siemens/mc_bdx1/devicetree.cb | 10 ++++------ 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/mainboard/siemens/mc_bdx1/Kconfig b/src/mainboard/siemens/mc_bdx1/Kconfig index f64b22bf09..0200d926d5 100644 --- a/src/mainboard/siemens/mc_bdx1/Kconfig +++ b/src/mainboard/siemens/mc_bdx1/Kconfig @@ -12,7 +12,8 @@ config BOARD_SPECIFIC_OPTIONS select USE_SIEMENS_HWILIB select DRIVER_INTEL_I210 select DRIVER_SIEMENS_NC_FPGA - select DRIVERS_I2C_PCF8523 + select DRIVERS_I2C_RX6110SA + select RX6110SA_USE_SMBUS config MAINBOARD_DIR string diff --git a/src/mainboard/siemens/mc_bdx1/devicetree.cb b/src/mainboard/siemens/mc_bdx1/devicetree.cb index 804b78179a..543786b43c 100644 --- a/src/mainboard/siemens/mc_bdx1/devicetree.cb +++ b/src/mainboard/siemens/mc_bdx1/devicetree.cb @@ -11,16 +11,14 @@ chip soc/intel/fsp_broadwell_de device pci 1f.2 on end # SATA Controller device pci 1f.3 on # Enable external RTC chip - chip drivers/i2c/pcf8523 - register "cap_sel" = "CAP_SEL_7_PF" - register "power_mode" = "PM_BAT_SW_OFF_LOW_DETECT_OFF" - register "cof_selection" = "COF_OFF" + chip drivers/i2c/rx6110sa + register "cof_selection" = "0" register "set_user_date" = "1" register "user_year" = "04" register "user_month" = "07" register "user_day" = "01" - register "user_weekday" = "0" - device i2c 0x68 on end # RTC PCF8523 + register "user_weekday" = "4" + device i2c 0x32 on end # RTC RX6110 SA end end # SMBus Controller device pci 1f.5 on end # SATA Controller -- cgit v1.2.3