From 4f021e554f961bfdf67b92c8cf0751aae4e3ee84 Mon Sep 17 00:00:00 2001 From: Zanxi Chen Date: Sat, 6 Nov 2021 20:57:05 +0800 Subject: [PATCH] mb/google/trogdor: Modify BOE panel_id for mrbland Modify BOE panel_id for mrbland due to hardware changes. BUG=b:205166230,b:198548221 BRANCH=trogdor TEST=emerge-strongbad coreboot Change-Id: I65fecd854c4e3443edc07a44a1d43572d5030e4c Signed-off-by: Zanxi Chen Reviewed-on: https://review.coreboot.org/c/coreboot/+/58995 Reviewed-by: xuxinxiong Reviewed-by: Bob Moragues Reviewed-by: Shelley Chen Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- src/mainboard/google/trogdor/mainboard.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mainboard/google/trogdor/mainboard.c b/src/mainboard/google/trogdor/mainboard.c index 5499a07121..2a2fa94235 100644 --- a/src/mainboard/google/trogdor/mainboard.c +++ b/src/mainboard/google/trogdor/mainboard.c @@ -136,10 +136,11 @@ static void configure_mipi_panel(void) gpio_output(GPIO_VDD_RESET_1V8, 1); mdelay(15); /* - * In mrbland, BOE panel_id = 3, it needs 15ms delay and - * do reset again according to spec(See in b/197300876). + * In mrbland, BOE panel_id = 3(EVT) or 4(DVT and after), + * it needs 15ms delay and do reset again according to spec + * (See in b/197300876). */ - if (CONFIG(BOARD_GOOGLE_MRBLAND) && (panel_id == 3)) { + if (CONFIG(BOARD_GOOGLE_MRBLAND) && ((panel_id == 3) || (panel_id == 4))) { gpio_output(GPIO_VDD_RESET_1V8, 0); mdelay(5); gpio_output(GPIO_VDD_RESET_1V8, 1); @@ -154,6 +155,7 @@ static struct panel_serializable_data *get_mipi_panel(enum lb_fb_orientation *or if (CONFIG(BOARD_GOOGLE_MRBLAND)) { switch (panel_id) { case 3: + case 4: cbfs_filename = "panel-BOE_TV101WUM_N53"; *orientation = LB_FB_ORIENTATION_LEFT_UP; break;