summaryrefslogtreecommitdiff
path: root/src/mainboard/google/geralt/panel.c
diff options
context:
space:
mode:
authorRuihai Zhou <zhouruihai@huaqin.corp-partner.google.com>2023-05-29 20:27:06 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-06-06 12:16:26 +0000
commit4a6041814ee0e2e19bc97da550689f7a2d9b7873 (patch)
tree302cf55c4eb51cd8e60490a2857c59eb01b0657b /src/mainboard/google/geralt/panel.c
parentfbe044235b07711540b06dda434d32add8cff8bc (diff)
mb/google/geralt: Fix MIPI panel power on/off sequence
Based on the power sequence of the panel [1], the power on T2 sequence VSP to VSN should be larger than 1ms, and the power off T2 sequence VSP to VSN should be larger than 0ms. We modify the power sequence to meet the datasheet requirement. [1] B5 TV110C9M-LL0 Product Specification Rev.P0 Signed-off-by: Ruihai Zhou <zhouruihai@huaqin.corp-partner.google.com> Change-Id: I4ccb5be04062a0516f84a054ff3f40afbf5279be Reviewed-on: https://review.coreboot.org/c/coreboot/+/75512 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yidi Lin <yidilin@google.com>
Diffstat (limited to 'src/mainboard/google/geralt/panel.c')
-rw-r--r--src/mainboard/google/geralt/panel.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mainboard/google/geralt/panel.c b/src/mainboard/google/geralt/panel.c
index 78d4f84bbd..3174870050 100644
--- a/src/mainboard/google/geralt/panel.c
+++ b/src/mainboard/google/geralt/panel.c
@@ -3,7 +3,6 @@
#include <boardid.h>
#include <cbfs.h>
#include <console/console.h>
-#include <device/i2c_simple.h>
#include <edid.h>
#include <gpio.h>
#include <soc/gpio_common.h>
@@ -12,21 +11,6 @@
#include "gpio.h"
#include "panel.h"
-int panel_pmic_reg_mask(u32 bus, u8 chip, u8 addr, u8 val, u8 mask)
-{
- u8 msg = 0;
-
- if (i2c_read_field(bus, chip, addr, &msg, 0xFF, 0) < 0) {
- printk(BIOS_ERR, "Failed to read i2c: addr(%u)\n", addr);
- return -1;
- }
-
- msg &= ~mask;
- msg |= val;
-
- return i2c_write_field(bus, chip, addr, msg, 0xFF, 0);
-}
-
static void get_mipi_cmd_from_cbfs(struct panel_description *desc)
{
/*