summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorZanxi Chen <chenzanxi@huaqin.corp-partner.google.com>2021-09-14 21:22:45 +0800
committerJulius Werner <jwerner@chromium.org>2021-09-16 16:10:29 +0000
commit75a29bc92c137642d81dbd8d799c4b2ad7e07c08 (patch)
treeaa25d86957150160c0482e80bb31d364802b9ef6 /src/mainboard/google
parentccc81c0aa4a0e5416be11928ce497c6a9fc13f0f (diff)
mb/google/trogdor: Add mipi panel for wormdingler
Add mipi panel support for wormdingler - Add the following panel for wormdingler: INX P110ZZD-DF0 BOE TV110C9M-LL0 - Use panel_id to distinguish which mipi panel to use. - Setup panel orientation BUG=b:195898400,b:198548221 BRANCH=none TEST=emerge-strongbad coreboot Change-Id: I8cd28e024ecbfdcd473bc39efb529eb4aca1b5d0 Signed-off-by: Zanxi Chen <chenzanxi@huaqin.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/57642 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/trogdor/Kconfig4
-rw-r--r--src/mainboard/google/trogdor/mainboard.c13
2 files changed, 16 insertions, 1 deletions
diff --git a/src/mainboard/google/trogdor/Kconfig b/src/mainboard/google/trogdor/Kconfig
index ebe6df4bf5..1a8ad0c4f6 100644
--- a/src/mainboard/google/trogdor/Kconfig
+++ b/src/mainboard/google/trogdor/Kconfig
@@ -14,9 +14,11 @@ config TROGDOR_HAS_BRIDGE_BACKLIGHT
config TROGDOR_HAS_MIPI_PANEL
bool
- default y if BOARD_GOOGLE_MRBLAND
+ default y if BOARD_GOOGLE_MRBLAND || BOARD_GOOGLE_WORMDINGLER
select MIPI_PANEL_AUO_B101UAN08_3 if BOARD_GOOGLE_MRBLAND
select MIPI_PANEL_BOE_TV101WUM_N53 if BOARD_GOOGLE_MRBLAND
+ select MIPI_PANEL_INX_P110ZZD_DF0 if BOARD_GOOGLE_WORMDINGLER
+ select MIPI_PANEL_BOE_TV110C9M_LL0 if BOARD_GOOGLE_WORMDINGLER
default n
config TROGDOR_HAS_FINGERPRINT
diff --git a/src/mainboard/google/trogdor/mainboard.c b/src/mainboard/google/trogdor/mainboard.c
index 5d4f9a4685..41bef2b3e7 100644
--- a/src/mainboard/google/trogdor/mainboard.c
+++ b/src/mainboard/google/trogdor/mainboard.c
@@ -119,6 +119,19 @@ static struct panel_serializable_data *get_mipi_panel(enum lb_fb_orientation *or
}
}
+ if (CONFIG(BOARD_GOOGLE_WORMDINGLER)) {
+ switch (panel_id) {
+ case 0:
+ cbfs_filename = "panel-INX_P110ZZD_DF0";
+ *orientation = LB_FB_ORIENTATION_LEFT_UP;
+ break;
+ case 4:
+ cbfs_filename = "panel-BOE_TV110C9M_LL0";
+ *orientation = LB_FB_ORIENTATION_LEFT_UP;
+ break;
+ }
+ }
+
if (!cbfs_filename)
return NULL;