jitao shi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33955
Change subject: TEST-ONLY: google/krane: fix krane panel get id error ......................................................................
TEST-ONLY: google/krane: fix krane panel get id error
BUG=b:129299873 BRANCH=none
Change-Id: I27ff83ed1934c33fa40c225a8435a06ca526ec9a Signed-off-by: Jitao Shi jitao.shi@mediatek.com --- M src/mainboard/google/kukui/panel_krane.c 1 file changed, 9 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/33955/1
diff --git a/src/mainboard/google/kukui/panel_krane.c b/src/mainboard/google/kukui/panel_krane.c index 55c7ff5..91c2744 100644 --- a/src/mainboard/google/kukui/panel_krane.c +++ b/src/mainboard/google/kukui/panel_krane.c @@ -377,8 +377,15 @@
static union panel_id krane_get_panel_id(struct board_display_intf *intf) { - return (union panel_id) - ((sku_id() >> KRANE_PANEL_ID_BIT_POSITION) & 0xf); + switch (sku_id() >> KRANE_PANEL_ID_BIT_POSITION) { + case 0x0: + return (union panel_id)PANEL_KRANE_AUO_KD101N80_45NA; + case 0x1: /* Incorrect strapping for BOE on rev3 */ + case 0xb: + return (union panel_id)PANEL_KRANE_BOE_TV101WUM_NL6; + default: + return (union panel_id)PANEL_KRANE_UNKNOWN; + } };
static bool krane_is_panel_id_valid(union panel_id id)