From: Yakir Yang Date: Tue, 28 Jun 2016 10:07:39 +0000 (+0800) Subject: drm/panel: simple: Add support for AUO B101EW05 1280x800 panel X-Git-Tag: firefly_0821_release~2336 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f0c4b4318e50780cfd7b9f7d7dc9f042c8cf83e2;p=firefly-linux-kernel-4.4.55.git drm/panel: simple: Add support for AUO B101EW05 1280x800 panel The AUO B101EW05 panel is a 10.1" 1280(RGB)x800 WXGA TFT-LCD panel, connected using LVDS interfaces Change-Id: Ic67fe5793a975b585cecfb8da02e81cd9fa6346f Signed-off-by: Yakir Yang --- diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 8572ac24437e..9090fa139246 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -440,6 +440,29 @@ static const struct panel_desc auo_b101ean01 = { }, }; +static const struct drm_display_mode auo_b101ew05_mode = { + .clock = 71000, + .hdisplay = 1280, + .hsync_start = 1280 + 18, + .hsync_end = 1280 + 18 + 10, + .htotal = 1280 + 18 + 10 + 100, + .vdisplay = 800, + .vsync_start = 800 + 6, + .vsync_end = 800 + 6 + 2, + .vtotal = 800 + 6 + 2 + 8, + .vrefresh = 60, +}; + +static const struct panel_desc auo_b101ew05 = { + .modes = &auo_b101ew05_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 217, + .height = 136, + }, +}; + static const struct drm_display_mode auo_b101xtn01_mode = { .clock = 72000, .hdisplay = 1366, @@ -1196,6 +1219,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "auo,b101ean01", .data = &auo_b101ean01, + }, { + .compatible = "auo,b101ew05", + .data = &auo_b101ew05, }, { .compatible = "auo,b101xtn01", .data = &auo_b101xtn01,