summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorLiju-Clr Chen <liju-clr.chen@mediatek.com>2023-02-06 15:58:44 +0800
committerRex-BC Chen <rex-bc.chen@mediatek.com>2023-02-09 09:19:00 +0000
commit84bb5f4e1958b0fe82991b027ef0f166c109faa2 (patch)
tree394d33ddccf4d2685f50bd167498eadc43a0fc72 /src/mainboard
parent5aaf8df4fd9bd0cd30f4e2a8b3e67fb3bda65c1b (diff)
mb/google/geralt: Init MT6359P only once in ramstage
The regulator MT6359P is needed by both firmware display and SD card. To avoid duplicate initialization in ramstage, publicize init_pmif_arb() as mt6359p_init_pmif_arb() and call it from mainboard_init(). This would save 13 ms for boot time on Geralt. BUG=b:244208960 TEST=test firmware display pass for BOE_TV110C9M_LL0 on Geralt. Change-Id: I29498d186ba5665ae20e84985174fc10f8d4accd Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72839 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Yidi Lin <yidilin@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/geralt/mainboard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainboard/google/geralt/mainboard.c b/src/mainboard/google/geralt/mainboard.c
index ff893e0aaa..ee8b005d3e 100644
--- a/src/mainboard/google/geralt/mainboard.c
+++ b/src/mainboard/google/geralt/mainboard.c
@@ -4,6 +4,7 @@
#include <device/device.h>
#include <soc/bl31.h>
#include <soc/msdc.h>
+#include <soc/mt6359p.h>
#include <soc/usb.h>
#include "display.h"
@@ -11,6 +12,8 @@
static void mainboard_init(struct device *dev)
{
+ mt6359p_init_pmif_arb();
+
if (display_init_required()) {
if (configure_display() < 0)
printk(BIOS_ERR, "%s: Failed to init display\n", __func__);