summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuihai Zhou <zhouruihai@huaqin.corp-partner.google.com>2023-07-07 16:48:24 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-07-12 13:40:26 +0000
commitffe2ced6e42387d90587a058c6b2fa1a3d8551cc (patch)
tree9b2bbfb8d3ee68ac88f696273f8dfd357d3a3fad /src
parent1dadb8c01d156f9cf8399976288b61a09b959ace (diff)
mb/google/geralt: Initialize I2C bus for TPS65132 in mainboard
The CB:76219 removed mtk_i2c_bus_init() from tps65132s_setup(), so we should initialize I2C bus for TPS65132 in mainboard now. BUG=None TEST=./util/abuild/abuild -t google/geralt -a Signed-off-by: Ruihai Zhou <zhouruihai@huaqin.corp-partner.google.com> Change-Id: Iacf78221d2416f41467c709402b7e02e03dc5fc7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76358 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/geralt/panel_geralt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainboard/google/geralt/panel_geralt.c b/src/mainboard/google/geralt/panel_geralt.c
index 9a98836473..443703d6f6 100644
--- a/src/mainboard/google/geralt/panel_geralt.c
+++ b/src/mainboard/google/geralt/panel_geralt.c
@@ -47,6 +47,8 @@ static void power_on_mipi_boe_tv110c9m_ll0(void)
/* Enable VM18V */
mainboard_enable_regulator(MTK_REGULATOR_VDD18, true);
+ mtk_i2c_bus_init(PMIC_TPS65132_I2C, I2C_SPEED_FAST);
+ mdelay(10);
if (tps65132s_setup(&cfg) != CB_SUCCESS)
printk(BIOS_ERR, "Failed to set up voltage regulator tps65132s\n");
gpio_output(GPIO_DISP_RST_1V8_L, 0);