summaryrefslogtreecommitdiff
path: root/src/mainboard/google/geralt/panel_geralt.c
diff options
context:
space:
mode:
authorRuihai Zhou <zhouruihai@huaqin.corp-partner.google.com>2023-11-08 09:11:34 +0800
committerMartin L Roth <gaumless@gmail.com>2024-01-14 02:42:48 +0000
commitd4b6b81280e70ba59962e9e41cd7cad52e3f369d (patch)
tree8ef1c3418fbdd67ac7e6b3b7035afb6258a925d3 /src/mainboard/google/geralt/panel_geralt.c
parentd7612e97651b75ba2d157ca89bd108c5172ab2c6 (diff)
mb/google/geralt: Enable BOE_NV110WUM_L60 panel for Ciri
The MIPI panel BOE_NV110WUM_L60 will be used for Ciri, enable it. Also remove the `mdelay(10)` after mtk_i2c_bus_init, because MTK confirms this is not needed. Add mdelay(2) between VDD18 and VSP/VSN to meet the panel datasheet. BUG=b:308968270 TEST=Boot to firmware screen BRANCH=None Change-Id: I0a04f062f81c543d38716d7ff185b5633c1aa3a9 Signed-off-by: Ruihai Zhou <zhouruihai@huaqin.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78957 Reviewed-by: Yidi Lin <yidilin@google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/geralt/panel_geralt.c')
-rw-r--r--src/mainboard/google/geralt/panel_geralt.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/mainboard/google/geralt/panel_geralt.c b/src/mainboard/google/geralt/panel_geralt.c
index 6eed3fb122..0b59a4e3d5 100644
--- a/src/mainboard/google/geralt/panel_geralt.c
+++ b/src/mainboard/google/geralt/panel_geralt.c
@@ -1,15 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <boardid.h>
#include <console/console.h>
-#include <delay.h>
-#include <gpio.h>
-#include <soc/gpio_common.h>
#include <soc/i2c.h>
-#include <soc/regulator.h>
-#include <soc/tps65132s.h>
-#include <soc/pmif.h>
-#include <string.h>
#include "gpio.h"
#include "panel.h"
@@ -31,21 +23,7 @@ static void power_on_mipi_boe_tv110c9m_ll0(void)
.settings = reg_settings,
.setting_counts = ARRAY_SIZE(reg_settings),
};
-
- /* 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);
- mdelay(1);
- gpio_output(GPIO_DISP_RST_1V8_L, 1);
- mdelay(1);
- gpio_output(GPIO_DISP_RST_1V8_L, 0);
- mdelay(1);
- gpio_output(GPIO_DISP_RST_1V8_L, 1);
- mdelay(6);
+ power_on_mipi_panel(&cfg);
}
static struct panel_description panels[] = {