Lin Huang has uploaded this change for review. ( https://review.coreboot.org/22780
Change subject: google/scarlet: support INNOLUX P097PFG panel ......................................................................
google/scarlet: support INNOLUX P097PFG panel
Still need to confirm this panel timing, just upload it first.
Change-Id: I43fa5d859a9a529a84c58a953b37d03953ce648a Signed-off-by: Lin Huang hl@rock-chips.com --- M src/mainboard/google/gru/mainboard.c 1 file changed, 34 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/22780/1
diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c index 9a241f5..a276b17 100644 --- a/src/mainboard/google/gru/mainboard.c +++ b/src/mainboard/google/gru/mainboard.c @@ -539,12 +539,44 @@ .vspw = 2, };
+const struct mipi_panel_data inx097pfg_panel = { + .mipi_num = 2, + .format = MIPI_DSI_FMT_RGB888, + .lanes = 8, + .display_on_udelay = 120000, + .video_mode_udelay = 5000, +}; + +static const struct edid_mode inx097pfg_edid_mode = { + .name = "1536x2048@60Hz", + .pixel_clock = 220000, + .refresh = 60, + .ha = 1536, + .hbl = 224, + .hso = 100, + .hspw = 24, + .va = 2048, + .vbl = 38, + .vso = 18, + .vspw = 2, +}; + const struct mipi_panel_data *mainboard_get_mipi_mode (struct edid_mode *edid_mode) { - memcpy(edid_mode, &kd097d04_edid_mode, sizeof(struct edid_mode)); + if (IS_ENABLED(CONFIG_GRU_BASEBOARD_SCARLET)) { + if (sku_id() == 6) { + memcpy(edid_mode, &inx097pfg_edid_mode, + sizeof(struct edid_mode)); + return &inx097pfg_panel; + }
- return &kd097d04_panel; + memcpy(edid_mode, &kd097d04_edid_mode, + sizeof(struct edid_mode)); + return &kd097d04_panel; + } + + return NULL; }
static void mainboard_enable(device_t dev)