[coreboot-gerrit] Change in coreboot[master]: siemens/mc_apl1: Add usage of external RTC RX6110 SA

Patrick Georgi (Code Review) gerrit at coreboot.org
Thu May 11 16:46:34 CEST 2017


Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/19647 )

Change subject: siemens/mc_apl1: Add usage of external RTC RX6110 SA
......................................................................


siemens/mc_apl1: Add usage of external RTC RX6110 SA

This mainboard contains an external RTC chip RX6110 SA. Enable usage of
this chip and set some initialization values to device tree.

Change-Id: I5aceb4401f0bb059ef893dfe7d157716c82e4a76
Signed-off-by: Mario Scheithauer <mario.scheithauer at siemens.com>
Reviewed-on: https://review.coreboot.org/19647
Tested-by: build bot (Jenkins) <no-reply at coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh at siemens.com>
---
M src/mainboard/siemens/mc_apl1/Kconfig
M src/mainboard/siemens/mc_apl1/devicetree.cb
2 files changed, 13 insertions(+), 1 deletion(-)

Approvals:
  Werner Zeh: Looks good to me, approved
  build bot (Jenkins): Verified



diff --git a/src/mainboard/siemens/mc_apl1/Kconfig b/src/mainboard/siemens/mc_apl1/Kconfig
index 83500f2..f3b4d7d 100644
--- a/src/mainboard/siemens/mc_apl1/Kconfig
+++ b/src/mainboard/siemens/mc_apl1/Kconfig
@@ -7,6 +7,7 @@
 	select HAVE_ACPI_TABLES
 	select DRIVER_INTEL_I210
 	select USE_SIEMENS_HWILIB
+	select DRIVERS_I2C_RX6110SA
 
 config MAINBOARD_DIR
 	string
diff --git a/src/mainboard/siemens/mc_apl1/devicetree.cb b/src/mainboard/siemens/mc_apl1/devicetree.cb
index c82896c..7cb9337 100644
--- a/src/mainboard/siemens/mc_apl1/devicetree.cb
+++ b/src/mainboard/siemens/mc_apl1/devicetree.cb
@@ -33,7 +33,18 @@
 		device pci 14.1 off end	# - RP 1 - PCIe-B 1
 		device pci 15.0 on  end	# - XHCI
 		device pci 15.1 on  end	# - XDCI
-		device pci 16.0 on  end	# - I2C 0
+		device pci 16.0 on	# - I2C 0
+			# Enable external RTC chip
+			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" = "4"
+				device i2c 0x32 on end	# RTC RX6110 SA
+			end
+		end
 		device pci 16.1 off end	# - I2C 1
 		device pci 16.2 off end	# - I2C 2
 		device pci 16.3 off end	# - I2C 3

-- 
To view, visit https://review.coreboot.org/19647
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5aceb4401f0bb059ef893dfe7d157716c82e4a76
Gerrit-PatchSet: 3
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Mario Scheithauer <mario.scheithauer at siemens.com>
Gerrit-Reviewer: Mario Scheithauer <mario.scheithauer at siemens.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi at google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter at users.sourceforge.net>
Gerrit-Reviewer: Werner Zeh <werner.zeh at siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>



More information about the coreboot-gerrit mailing list