aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2014-12-11 12:32:46 -0500
committerThierry Reding <treding@nvidia.com>2015-04-02 13:04:14 -0400
commitab07725abc9aa1e3dbc41ee429ad19336b31f207 (patch)
tree1508b7ddef7520095f703b425e41c6693041808d
parenta5d3e625148073587955bb0c49dbbba231b3234a (diff)
drm/panel: Add display timing for HannStar HSD070PWW1
The HannStar HSD070PWW1 LVDS panel data sheet lists allowed ranges additionally to the typical values for pixel clock rate (64.3-82 MHz) and blanking intervals (54-681 clock cycles horizontally, 3-23 lines vertically). This patch replaces this panel's display mode with the display timing information to describe acceptable timings. Since the HSYNC and VSYNC are unused, the distribution between front porches, back porches, and sync pulse lengths was chosen at will. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index be2c4c85ea83..6ad7b5e00178 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -683,22 +683,22 @@ static const struct panel_desc giantplus_gpg482739qs5 = {
683 .bus_format = MEDIA_BUS_FMT_RGB888_1X24, 683 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
684}; 684};
685 685
686static const struct drm_display_mode hannstar_hsd070pww1_mode = { 686static const struct display_timing hannstar_hsd070pww1_timing = {
687 .clock = 71100, 687 .pixelclock = { 64300000, 71100000, 82000000 },
688 .hdisplay = 1280, 688 .hactive = { 1280, 1280, 1280 },
689 .hsync_start = 1280 + 1, 689 .hfront_porch = { 1, 1, 10 },
690 .hsync_end = 1280 + 1 + 158, 690 .hback_porch = { 1, 1, 10 },
691 .htotal = 1280 + 1 + 158 + 1, 691 .hsync_len = { 52, 158, 661 },
692 .vdisplay = 800, 692 .vactive = { 800, 800, 800 },
693 .vsync_start = 800 + 1, 693 .vfront_porch = { 1, 1, 10 },
694 .vsync_end = 800 + 1 + 21, 694 .vback_porch = { 1, 1, 10 },
695 .vtotal = 800 + 1 + 21 + 1, 695 .vsync_len = { 1, 21, 203 },
696 .vrefresh = 60, 696 .flags = DISPLAY_FLAGS_DE_HIGH,
697}; 697};
698 698
699static const struct panel_desc hannstar_hsd070pww1 = { 699static const struct panel_desc hannstar_hsd070pww1 = {
700 .modes = &hannstar_hsd070pww1_mode, 700 .timings = &hannstar_hsd070pww1_timing,
701 .num_modes = 1, 701 .num_timings = 1,
702 .bpc = 6, 702 .bpc = 6,
703 .size = { 703 .size = {
704 .width = 151, 704 .width = 151,