Nicolas Boichat has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34733 )
Change subject: mb/google/kukui: Setup display rotation ......................................................................
mb/google/kukui: Setup display rotation
Add orientation field to all kukui derivatives.
BUG=b:132049716 TEST=Boot krane, see that FW screen is orientation properly.
Change-Id: I1c56a069c008d760780bd185303d16cc8d960ca9 --- M 3rdparty/blobs M src/mainboard/google/kukui/mainboard.c M src/mainboard/google/kukui/panel.h M src/mainboard/google/kukui/panel_jacuzzi.c M src/mainboard/google/kukui/panel_krane.c M src/mainboard/google/kukui/panel_kukui.c 6 files changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/33/34733/1
diff --git a/3rdparty/blobs b/3rdparty/blobs index 9da6d88..90c097f 160000 --- a/3rdparty/blobs +++ b/3rdparty/blobs @@ -1 +1 @@ -Subproject commit 9da6d88a2b0f553b724e70d80a78d7e78f074f5b +Subproject commit 90c097f030cc7ede5671832889c2d18386781840 diff --git a/src/mainboard/google/kukui/mainboard.c b/src/mainboard/google/kukui/mainboard.c index 9c64a69..2362899 100644 --- a/src/mainboard/google/kukui/mainboard.c +++ b/src/mainboard/google/kukui/mainboard.c @@ -135,6 +135,7 @@ } mtk_ddp_mode_set(edid); set_vbe_mode_info_valid(edid, 0); + set_vbe_panel_orientation(panel->orientation); return true; }
diff --git a/src/mainboard/google/kukui/panel.h b/src/mainboard/google/kukui/panel.h index 26445e5..02edf34 100644 --- a/src/mainboard/google/kukui/panel.h +++ b/src/mainboard/google/kukui/panel.h @@ -23,6 +23,7 @@ const char *name; /* human readable name */ void (*power_on)(void); /* Callback to turn on panel */ struct edid edid; /* edid info of this panel */ + enum lb_panel_orientation orientation; /* panel orientation */ struct lcm_init_table init[]; /* table of init commands */ };
diff --git a/src/mainboard/google/kukui/panel_jacuzzi.c b/src/mainboard/google/kukui/panel_jacuzzi.c index d26e12c..0c49a24 100644 --- a/src/mainboard/google/kukui/panel_jacuzzi.c +++ b/src/mainboard/google/kukui/panel_jacuzzi.c @@ -46,6 +46,7 @@ static struct panel_description jacuzzi_panel = { .name = "eDP via PS8640", .power_on = dummy_power_on, + .orientation = LB_PANEL_ORIENTATION_NORMAL, .init = { {END_OF_TABLE, } }, };
diff --git a/src/mainboard/google/kukui/panel_krane.c b/src/mainboard/google/kukui/panel_krane.c index 3e538c0..8c191ae 100644 --- a/src/mainboard/google/kukui/panel_krane.c +++ b/src/mainboard/google/kukui/panel_krane.c @@ -31,6 +31,7 @@ .x_mm = 135, .y_mm = 216, }, }, + .orientation = LB_PANEL_ORIENTATION_LEFT_UP, .init = { _INIT_DELAY_CMD(10), _INIT_DCS_CMD(0x11), @@ -57,6 +58,7 @@ .x_mm = 135, .y_mm = 216, }, }, + .orientation = LB_PANEL_ORIENTATION_LEFT_UP, .init = { _INIT_DELAY_CMD(24), _INIT_DCS_CMD(0xB0, 0x05), diff --git a/src/mainboard/google/kukui/panel_kukui.c b/src/mainboard/google/kukui/panel_kukui.c index f4b3e5b..5b0b810 100644 --- a/src/mainboard/google/kukui/panel_kukui.c +++ b/src/mainboard/google/kukui/panel_kukui.c @@ -53,6 +53,7 @@ .x_mm = 147, .y_mm = 196, }, }, + .orientation = LB_PANEL_ORIENTATION_NORMAL, .init = { _INIT_GENERIC_CMD(0xff, 0x00), /* LOCKCNT=0x1f4, MRX=0, POSTDIV=1 (/2} }, MULT=0x49