From 75a29bc92c137642d81dbd8d799c4b2ad7e07c08 Mon Sep 17 00:00:00 2001 From: Zanxi Chen Date: Tue, 14 Sep 2021 21:22:45 +0800 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57642 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/mainboard/google/trogdor/Kconfig | 4 +++- src/mainboard/google/trogdor/mainboard.c | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google') 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; -- cgit v1.2.3