Attention is currently required from: Hung-Te Lin, Yidi Lin, Yu-Ping Wu.
Jarried Lin has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85979?usp=email )
Change subject: mb/google/rauru: Enable RTC ......................................................................
mb/google/rauru: Enable RTC
Enable RTC so that we can see the correct timestamp and date in CromeOS.
rauru-rev0 ~ # tail /var/log/eventtlog.txt suspend_stress_test -c 5 --suspend_max=30 --suspend_min=30
rauru-rev0 ~ # date Thu Nov 7 14:54:09 CST 2024
TEST=Build pass, check date in CromeOS BUG=b:355550460
Change-Id: I95822fc7646d41dbbc61258741a2a42988fc31d7 Signed-off-by: Jarried Lin jarried.lin@mediatek.corp-partner.google.com --- M src/mainboard/google/rauru/Kconfig M src/mainboard/google/rauru/romstage.c 2 files changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/85979/1
diff --git a/src/mainboard/google/rauru/Kconfig b/src/mainboard/google/rauru/Kconfig index 57e8c1b..4752257 100644 --- a/src/mainboard/google/rauru/Kconfig +++ b/src/mainboard/google/rauru/Kconfig @@ -33,6 +33,7 @@ select TPM_GOOGLE_TI50 if VBOOT select COMMONLIB_STORAGE select COMMONLIB_STORAGE_MMC + select RTC
config MAINBOARD_DIR string diff --git a/src/mainboard/google/rauru/romstage.c b/src/mainboard/google/rauru/romstage.c index d82e152..f5e7c69 100644 --- a/src/mainboard/google/rauru/romstage.c +++ b/src/mainboard/google/rauru/romstage.c @@ -9,6 +9,7 @@ #include <soc/mt6363.h> #include <soc/mt6373.h> #include <soc/mt6685.h> +#include <soc/mt6685_rtc.h> #include <soc/mtk_pwrsel.h> #include <soc/pcie.h> #include <soc/pll.h> @@ -37,6 +38,8 @@ mt6685_init(); srclken_rc_init(); clk_buf_init(); + if (CONFIG(RTC)) + rtc_boot(); mtk_dram_init(); modem_power_down();