Martin Roth (martin.roth@se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5735
-gerrit
commit 27e6c1b3ced2f43b13d7cb232dcaf94c4e11fade Author: Martin Roth gaumless@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@gmail.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..cf62132 100644 --- a/src/drivers/pc80/Makefile.inc +++ b/src/drivers/pc80/Makefile.inc @@ -1,4 +1,8 @@ +ifeq ($(CONFIG_ROMSTAGE_RTC_INIT),) ramstage-y += mc146818rtc.c +else +romstage-y += mc146818rtc.c +endif ramstage-y += isa-dma.c ramstage-y += i8254.c ramstage-y += i8259.c