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

Martin Roth (martin.roth@se-eng.com) gerrit at coreboot.org
Mon May 19 21:52:32 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 e7a3b6ba264b033326abb4323b9643ff5d6f8b8a
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>
---
 src/drivers/pc80/Kconfig      | 6 ++++++
 src/drivers/pc80/Makefile.inc | 1 +
 2 files changed, 7 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..2e264ab 100644
--- a/src/drivers/pc80/Makefile.inc
+++ b/src/drivers/pc80/Makefile.inc
@@ -1,4 +1,5 @@
 ramstage-y += mc146818rtc.c
+romstage-$(CONFIG_ROMSTAGE_RTC_INIT) += mc146818rtc.c
 ramstage-y += isa-dma.c
 ramstage-y += i8254.c
 ramstage-y += i8259.c



More information about the coreboot-gerrit mailing list