aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/displays/panel-taal.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-03-05 10:21:35 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-04-03 08:19:18 -0400
commitf1e0001f973cfbec62d702cbd3d56f6b703cc90e (patch)
treeb78e0b018a32bbd4377e238887ad2eac0b51598a /drivers/video/omap2/displays/panel-taal.c
parent100c826235793345efe06b3558cc9d36166b1e26 (diff)
OMAPDSS: DSI: use new clock calculation code
Use the new clock calculation code in the DSI driver. The new code does not need DSI video mode parameters from the panel driver, like the old code does. Instead the new code is given the normal video timings, and a few DSI parameters, which are used to create DSI video timings. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays/panel-taal.c')
-rw-r--r--drivers/video/omap2/displays/panel-taal.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c
index eb86cbae8c2a..2fc923de23cc 100644
--- a/drivers/video/omap2/displays/panel-taal.c
+++ b/drivers/video/omap2/displays/panel-taal.c
@@ -787,6 +787,7 @@ static int taal_probe(struct omap_dss_device *dssdev)
787 787
788 dssdev->panel.timings.x_res = 864; 788 dssdev->panel.timings.x_res = 864;
789 dssdev->panel.timings.y_res = 480; 789 dssdev->panel.timings.y_res = 480;
790 dssdev->panel.timings.pixel_clock = DIV_ROUND_UP(864 * 480 * 60, 1000);
790 dssdev->panel.dsi_pix_fmt = OMAP_DSS_DSI_FMT_RGB888; 791 dssdev->panel.dsi_pix_fmt = OMAP_DSS_DSI_FMT_RGB888;
791 dssdev->caps = OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE | 792 dssdev->caps = OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE |
792 OMAP_DSS_DISPLAY_CAP_TEAR_ELIM; 793 OMAP_DSS_DISPLAY_CAP_TEAR_ELIM;
@@ -923,8 +924,10 @@ static int taal_power_on(struct omap_dss_device *dssdev)
923 .mode = OMAP_DSS_DSI_CMD_MODE, 924 .mode = OMAP_DSS_DSI_CMD_MODE,
924 .pixel_format = OMAP_DSS_DSI_FMT_RGB888, 925 .pixel_format = OMAP_DSS_DSI_FMT_RGB888,
925 .timings = &dssdev->panel.timings, 926 .timings = &dssdev->panel.timings,
926 .hs_clk = 216000000, 927 .hs_clk_min = 150000000,
927 .lp_clk = 10000000, 928 .hs_clk_max = 300000000,
929 .lp_clk_min = 7000000,
930 .lp_clk_max = 10000000,
928 }; 931 };
929 932
930 r = omapdss_dsi_configure_pins(dssdev, &td->pin_config); 933 r = omapdss_dsi_configure_pins(dssdev, &td->pin_config);