From 25fb09b0684769bd010cde0aa60f1b32eddb2cba Mon Sep 17 00:00:00 2001 From: Lin Huang Date: Wed, 22 Nov 2017 09:40:50 +0800 Subject: rockchip/rk3399: support dual mipi dsi Refactor the mipi driver, so we can support dual mipi panel. And pass the panel data from mainboard.c, that we can support different panel with different board. Change-Id: Id1286c0ccbe50c89514c8daee66439116d3f1ca4 Signed-off-by: Lin Huang Reviewed-on: https://review.coreboot.org/22471 Tested-by: build bot (Jenkins) Reviewed-by: Brian Norris Reviewed-by: Julius Werner --- src/mainboard/google/gru/devicetree.scarlet.cb | 12 ------------ src/mainboard/google/gru/mainboard.c | 5 +++++ 2 files changed, 5 insertions(+), 12 deletions(-) (limited to 'src/mainboard/google/gru') diff --git a/src/mainboard/google/gru/devicetree.scarlet.cb b/src/mainboard/google/gru/devicetree.scarlet.cb index f1129a4980..c4417c594c 100644 --- a/src/mainboard/google/gru/devicetree.scarlet.cb +++ b/src/mainboard/google/gru/devicetree.scarlet.cb @@ -17,16 +17,4 @@ chip soc/rockchip/rk3399 device cpu_cluster 0 on end register "vop_mode" = "VOP_MODE_MIPI" register "framebuffer_bits_per_pixel" = "32" - register "panel_pixel_clock" = "56900" - register "panel_refresh" = "60" - register "panel_ha" = "768" - register "panel_hbl" = "120" - register "panel_hso" = "40" - register "panel_hspw" = "40" - register "panel_va" = "1024" - register "panel_vbl" = "44" - register "panel_vso" = "20" - register "panel_vspw" = "4" - register "panel_display_on_mdelay" = "120" - register "panel_video_mode_mdelay" = "5" end diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c index 076cfa1d15..296d9ad56a 100644 --- a/src/mainboard/google/gru/mainboard.c +++ b/src/mainboard/google/gru/mainboard.c @@ -375,6 +375,11 @@ void mainboard_power_on_backlight(void) prepare_backlight_i2c(); } +const struct mipi_panel_data *mainboard_get_mipi_mode(struct edid *edid) +{ + return NULL; +} + static void mainboard_enable(device_t dev) { dev->ops->init = &mainboard_init; -- cgit v1.2.3