diff options
author | Jani Nikula <ext-jani.1.nikula@nokia.com> | 2010-04-15 05:42:16 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-08-03 08:18:49 -0400 |
commit | 448dfe968099b130e6163bdcb4b839a2fb36484d (patch) | |
tree | dc04fc678129fdd206cac26a8fc0d00cceba57d9 /drivers/video/omap2 | |
parent | 8d3573c88a5a7b67a5fec5eb457efa3616fe56b7 (diff) |
OMAP: DSS2: Taal: Configure ESD check in DSI panel data
Make ESD check usage configurable in DSI panel data, as opposed to a
define.
Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/displays/panel-taal.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c index df720c31288f..eb95e97fd9b0 100644 --- a/drivers/video/omap2/displays/panel-taal.c +++ b/drivers/video/omap2/displays/panel-taal.c | |||
@@ -62,7 +62,6 @@ | |||
62 | #define DCS_GET_ID2 0xdb | 62 | #define DCS_GET_ID2 0xdb |
63 | #define DCS_GET_ID3 0xdc | 63 | #define DCS_GET_ID3 0xdc |
64 | 64 | ||
65 | /* #define TAAL_USE_ESD_CHECK */ | ||
66 | #define TAAL_ESD_CHECK_PERIOD msecs_to_jiffies(5000) | 65 | #define TAAL_ESD_CHECK_PERIOD msecs_to_jiffies(5000) |
67 | 66 | ||
68 | static irqreturn_t taal_te_isr(int irq, void *data); | 67 | static irqreturn_t taal_te_isr(int irq, void *data); |
@@ -793,6 +792,7 @@ static void taal_power_off(struct omap_dss_device *dssdev) | |||
793 | static int taal_enable(struct omap_dss_device *dssdev) | 792 | static int taal_enable(struct omap_dss_device *dssdev) |
794 | { | 793 | { |
795 | struct taal_data *td = dev_get_drvdata(&dssdev->dev); | 794 | struct taal_data *td = dev_get_drvdata(&dssdev->dev); |
795 | struct nokia_dsi_panel_data *panel_data = get_panel_data(dssdev); | ||
796 | int r; | 796 | int r; |
797 | 797 | ||
798 | dev_dbg(&dssdev->dev, "enable\n"); | 798 | dev_dbg(&dssdev->dev, "enable\n"); |
@@ -813,9 +813,9 @@ static int taal_enable(struct omap_dss_device *dssdev) | |||
813 | if (r) | 813 | if (r) |
814 | goto err; | 814 | goto err; |
815 | 815 | ||
816 | #ifdef TAAL_USE_ESD_CHECK | 816 | if (panel_data->use_esd_check) |
817 | queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD); | 817 | queue_delayed_work(td->esd_wq, &td->esd_work, |
818 | #endif | 818 | TAAL_ESD_CHECK_PERIOD); |
819 | 819 | ||
820 | dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; | 820 | dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; |
821 | 821 | ||
@@ -885,6 +885,7 @@ err: | |||
885 | static int taal_resume(struct omap_dss_device *dssdev) | 885 | static int taal_resume(struct omap_dss_device *dssdev) |
886 | { | 886 | { |
887 | struct taal_data *td = dev_get_drvdata(&dssdev->dev); | 887 | struct taal_data *td = dev_get_drvdata(&dssdev->dev); |
888 | struct nokia_dsi_panel_data *panel_data = get_panel_data(dssdev); | ||
888 | int r; | 889 | int r; |
889 | 890 | ||
890 | dev_dbg(&dssdev->dev, "resume\n"); | 891 | dev_dbg(&dssdev->dev, "resume\n"); |
@@ -906,10 +907,9 @@ static int taal_resume(struct omap_dss_device *dssdev) | |||
906 | dssdev->state = OMAP_DSS_DISPLAY_DISABLED; | 907 | dssdev->state = OMAP_DSS_DISPLAY_DISABLED; |
907 | } else { | 908 | } else { |
908 | dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; | 909 | dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; |
909 | #ifdef TAAL_USE_ESD_CHECK | 910 | if (panel_data->use_esd_check) |
910 | queue_delayed_work(td->esd_wq, &td->esd_work, | 911 | queue_delayed_work(td->esd_wq, &td->esd_work, |
911 | TAAL_ESD_CHECK_PERIOD); | 912 | TAAL_ESD_CHECK_PERIOD); |
912 | #endif | ||
913 | } | 913 | } |
914 | 914 | ||
915 | mutex_unlock(&td->lock); | 915 | mutex_unlock(&td->lock); |