From 602943f8dac2e6162de8901dd7e6ab98aba42667 Mon Sep 17 00:00:00 2001 From: Yidi Lin Date: Tue, 26 Jan 2021 21:26:01 +0800 Subject: soc/mediatek/mt8192: Add mt6315_romstage_init Initialize pmif_arb in romstage. BUG=b:177389446 Signed-off-by: Yidi Lin Change-Id: I3ffe7277c9ecb04269c832693d42799ba1711384 Reviewed-on: https://review.coreboot.org/c/coreboot/+/49934 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/mt8192/include/soc/mt6315.h | 1 + src/soc/mediatek/mt8192/mt6315.c | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/soc/mediatek') diff --git a/src/soc/mediatek/mt8192/include/soc/mt6315.h b/src/soc/mediatek/mt8192/include/soc/mt6315.h index 4d179bed68..a243e3f761 100644 --- a/src/soc/mediatek/mt8192/include/soc/mt6315.h +++ b/src/soc/mediatek/mt8192/include/soc/mt6315.h @@ -35,6 +35,7 @@ enum { }; void mt6315_init(void); +void mt6315_romstage_init(void); void mt6315_buck_set_voltage(u32 slvid, u32 buck_id, u32 buck_uv); u32 mt6315_buck_get_voltage(u32 slvid, u32 buck_id); #endif /* __SOC_MEDIATEK_MT6315_H__ */ diff --git a/src/soc/mediatek/mt8192/mt6315.c b/src/soc/mediatek/mt8192/mt6315.c index 9752e3dfcb..76534953e3 100644 --- a/src/soc/mediatek/mt8192/mt6315.c +++ b/src/soc/mediatek/mt8192/mt6315.c @@ -301,3 +301,8 @@ void mt6315_init(void) mt6315_wdt_enable(MT6315_GPU); mt6315_init_setting(); } + +void mt6315_romstage_init(void) +{ + init_pmif_arb(); +} -- cgit v1.2.3