diff options
Diffstat (limited to 'drivers/video/omap2/displays/panel-tpo-td043mtea1.c')
-rw-r--r-- | drivers/video/omap2/displays/panel-tpo-td043mtea1.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c index 32f3fcd7f0f0..4b6448b3c31f 100644 --- a/drivers/video/omap2/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/omap2/displays/panel-tpo-td043mtea1.c | |||
@@ -272,13 +272,16 @@ static const struct omap_video_timings tpo_td043_timings = { | |||
272 | static int tpo_td043_power_on(struct tpo_td043_device *tpo_td043) | 272 | static int tpo_td043_power_on(struct tpo_td043_device *tpo_td043) |
273 | { | 273 | { |
274 | int nreset_gpio = tpo_td043->nreset_gpio; | 274 | int nreset_gpio = tpo_td043->nreset_gpio; |
275 | int r; | ||
275 | 276 | ||
276 | if (tpo_td043->powered_on) | 277 | if (tpo_td043->powered_on) |
277 | return 0; | 278 | return 0; |
278 | 279 | ||
279 | regulator_enable(tpo_td043->vcc_reg); | 280 | r = regulator_enable(tpo_td043->vcc_reg); |
281 | if (r != 0) | ||
282 | return r; | ||
280 | 283 | ||
281 | /* wait for regulator to stabilize */ | 284 | /* wait for panel to stabilize */ |
282 | msleep(160); | 285 | msleep(160); |
283 | 286 | ||
284 | if (gpio_is_valid(nreset_gpio)) | 287 | if (gpio_is_valid(nreset_gpio)) |
@@ -470,6 +473,18 @@ static void tpo_td043_remove(struct omap_dss_device *dssdev) | |||
470 | gpio_free(nreset_gpio); | 473 | gpio_free(nreset_gpio); |
471 | } | 474 | } |
472 | 475 | ||
476 | static void tpo_td043_set_timings(struct omap_dss_device *dssdev, | ||
477 | struct omap_video_timings *timings) | ||
478 | { | ||
479 | dpi_set_timings(dssdev, timings); | ||
480 | } | ||
481 | |||
482 | static int tpo_td043_check_timings(struct omap_dss_device *dssdev, | ||
483 | struct omap_video_timings *timings) | ||
484 | { | ||
485 | return dpi_check_timings(dssdev, timings); | ||
486 | } | ||
487 | |||
473 | static struct omap_dss_driver tpo_td043_driver = { | 488 | static struct omap_dss_driver tpo_td043_driver = { |
474 | .probe = tpo_td043_probe, | 489 | .probe = tpo_td043_probe, |
475 | .remove = tpo_td043_remove, | 490 | .remove = tpo_td043_remove, |
@@ -481,6 +496,9 @@ static struct omap_dss_driver tpo_td043_driver = { | |||
481 | .set_mirror = tpo_td043_set_hmirror, | 496 | .set_mirror = tpo_td043_set_hmirror, |
482 | .get_mirror = tpo_td043_get_hmirror, | 497 | .get_mirror = tpo_td043_get_hmirror, |
483 | 498 | ||
499 | .set_timings = tpo_td043_set_timings, | ||
500 | .check_timings = tpo_td043_check_timings, | ||
501 | |||
484 | .driver = { | 502 | .driver = { |
485 | .name = "tpo_td043mtea1_panel", | 503 | .name = "tpo_td043mtea1_panel", |
486 | .owner = THIS_MODULE, | 504 | .owner = THIS_MODULE, |