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

Martin Roth (gaumless@gmail.com) gerrit at coreboot.org
Wed May 28 22:26:03 CEST 2014


Martin Roth (gaumless at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5735

-gerrit

commit bd44f893906856c97ed28a0fb84b44949752e5fa
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 3572bc2..f53183b 100644
--- a/src/drivers/pc80/Kconfig
+++ b/src/drivers/pc80/Kconfig
@@ -22,3 +22,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