[coreboot-gerrit] Patch set updated for coreboot: 7347112 add rtc_init() to romstage

Martin Roth (martin.roth@se-eng.com) gerrit at coreboot.org
Fri May 23 19:12:50 CEST 2014


Martin Roth (martin.roth at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5735

-gerrit

commit 7347112d7374475fdaa1928ef053bfade6e50951
Author: Martin Roth <gaumless at gmail.com>
Date:   Mon May 12 21:52:54 2014 -0600

    add rtc_init() to romstage
    
    The FSP clears the bit that tells us whether or not the RTC has lost
    power when it sets up memory.  Because of this, we need to initialize
    the RTC in romstage instead of ramstage.
    
    Change-Id: I158e4339fc539d32cfb2428042df6156d312a5f4
    Signed-off-by: Martin Roth <gaumless at gmail.com>
    Signed-off-by: Martin Roth <martin.roth at se-eng.com>
---
 src/drivers/pc80/Kconfig      | 6 ++++++
 src/drivers/pc80/Makefile.inc | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/src/drivers/pc80/Kconfig b/src/drivers/pc80/Kconfig
index 1348dd4..6fb379d 100644
--- a/src/drivers/pc80/Kconfig
+++ b/src/drivers/pc80/Kconfig
@@ -23,3 +23,9 @@ config TPM
 	  Enable this option to enable TPM support in coreboot.
 
 	  If unsure, say N.
+
+config ROMSTAGE_RTC_INIT
+	bool
+	default n
+	help
+	  Enable this option to use rtc_init() in romstage
diff --git a/src/drivers/pc80/Makefile.inc b/src/drivers/pc80/Makefile.inc
index 4d0a280..7451b33 100644
--- a/src/drivers/pc80/Makefile.inc
+++ b/src/drivers/pc80/Makefile.inc
@@ -1,4 +1,8 @@
+ifeq ($(CONFIG_ROMSTAGE_RTC_INIT),y)
+romstage-y += mc146818rtc.c
+else
 ramstage-y += mc146818rtc.c
+endif
 ramstage-y += isa-dma.c
 ramstage-y += i8254.c
 ramstage-y += i8259.c



More information about the coreboot-gerrit mailing list