|
@@ -269,6 +269,9 @@ static int tpo_td043_power_on(struct omap_dss_device *dssdev)
|
|
int nreset_gpio = dssdev->reset_gpio;
|
|
int nreset_gpio = dssdev->reset_gpio;
|
|
int r;
|
|
int r;
|
|
|
|
|
|
|
|
+ if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
r = omapdss_dpi_display_enable(dssdev);
|
|
r = omapdss_dpi_display_enable(dssdev);
|
|
if (r)
|
|
if (r)
|
|
goto err0;
|
|
goto err0;
|
|
@@ -308,6 +311,9 @@ static void tpo_td043_power_off(struct omap_dss_device *dssdev)
|
|
struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
|
|
struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
|
|
int nreset_gpio = dssdev->reset_gpio;
|
|
int nreset_gpio = dssdev->reset_gpio;
|
|
|
|
|
|
|
|
+ if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
|
|
|
|
+ return;
|
|
|
|
+
|
|
tpo_td043_write(tpo_td043->spi, 3,
|
|
tpo_td043_write(tpo_td043->spi, 3,
|
|
TPO_R03_VAL_STANDBY | TPO_R03_EN_PWM);
|
|
TPO_R03_VAL_STANDBY | TPO_R03_EN_PWM);
|
|
|
|
|