summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorYuchen Huang <yuchen.huang@mediatek.corp-partner.google.com>2021-03-01 14:39:33 +0800
committerHung-Te Lin <hungte@chromium.org>2021-05-10 01:58:28 +0000
commit144237f19fd9948e4014a5dad56ea92df7de676f (patch)
tree38a50aabbf5bec83481849057f6dc741dc3c7c69 /src/mainboard/google
parent6a6e58cb4197b96f8363a000a66ca54fc3344ddd (diff)
soc/mediatek/mt8195: Add RTC driver
Both mt8192 and mt8195 use MT659P RTC. Move mt8192/rtc.c to common folder and rename to rtc_mt6359p.c. Signed-off-by: Yuchen Huang <yuchen.huang@mediatek.corp-partner.google.com> Signed-off-by: Yidi Lin <yidi.lin@mediatek.com> Change-Id: I73ea90512228a659657f2019249e7142c673e68e Reviewed-on: https://review.coreboot.org/c/coreboot/+/53897 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/cherry/mainboard.c2
-rw-r--r--src/mainboard/google/cherry/romstage.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/cherry/mainboard.c b/src/mainboard/google/cherry/mainboard.c
index 37d3d1c6e2..5015531d9a 100644
--- a/src/mainboard/google/cherry/mainboard.c
+++ b/src/mainboard/google/cherry/mainboard.c
@@ -10,6 +10,7 @@
#include <soc/i2c.h>
#include <soc/mt6360.h>
#include <soc/regulator.h>
+#include <soc/usb.h>
DEFINE_BITFIELD(MSDC0_DRV, 29, 0)
DEFINE_BITFIELD(MSDC1_DRV, 17, 0)
@@ -105,6 +106,7 @@ static void mainboard_init(struct device *dev)
{
configure_emmc();
configure_sdcard();
+ setup_usb_host();
}
static void mainboard_enable(struct device *dev)
diff --git a/src/mainboard/google/cherry/romstage.c b/src/mainboard/google/cherry/romstage.c
index f4bb1ca27b..cdb2681240 100644
--- a/src/mainboard/google/cherry/romstage.c
+++ b/src/mainboard/google/cherry/romstage.c
@@ -5,6 +5,7 @@
#include <soc/mt6315.h>
#include <soc/mt6359p.h>
#include <soc/pmif.h>
+#include <soc/rtc.h>
void platform_romstage_main(void)
{
@@ -12,4 +13,5 @@ void platform_romstage_main(void)
mt6359p_init();
mt6315_init();
clk_buf_init();
+ rtc_boot();
}