diff options
Diffstat (limited to 'drivers/video/omap2/dss/dsi.c')
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index e49f063fb615..e003fe9ee9c4 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c | |||
@@ -1864,10 +1864,12 @@ static void dsi_vc_config_vp(int channel) | |||
1864 | } | 1864 | } |
1865 | 1865 | ||
1866 | 1866 | ||
1867 | static void dsi_vc_enable_hs(int channel, bool enable) | 1867 | void omapdss_dsi_vc_enable_hs(int channel, bool enable) |
1868 | { | 1868 | { |
1869 | DSSDBG("dsi_vc_enable_hs(%d, %d)\n", channel, enable); | 1869 | DSSDBG("dsi_vc_enable_hs(%d, %d)\n", channel, enable); |
1870 | 1870 | ||
1871 | WARN_ON(!dsi_bus_is_locked()); | ||
1872 | |||
1871 | dsi_vc_enable(channel, 0); | 1873 | dsi_vc_enable(channel, 0); |
1872 | dsi_if_enable(0); | 1874 | dsi_if_enable(0); |
1873 | 1875 | ||
@@ -1878,6 +1880,7 @@ static void dsi_vc_enable_hs(int channel, bool enable) | |||
1878 | 1880 | ||
1879 | dsi_force_tx_stop_mode_io(); | 1881 | dsi_force_tx_stop_mode_io(); |
1880 | } | 1882 | } |
1883 | EXPORT_SYMBOL(omapdss_dsi_vc_enable_hs); | ||
1881 | 1884 | ||
1882 | static void dsi_vc_flush_long_data(int channel) | 1885 | static void dsi_vc_flush_long_data(int channel) |
1883 | { | 1886 | { |
@@ -3275,7 +3278,7 @@ static int dsi_display_init_dsi(struct omap_dss_device *dssdev) | |||
3275 | } | 3278 | } |
3276 | 3279 | ||
3277 | /* enable high-speed after initial config */ | 3280 | /* enable high-speed after initial config */ |
3278 | dsi_vc_enable_hs(0, 1); | 3281 | omapdss_dsi_vc_enable_hs(0, 1); |
3279 | 3282 | ||
3280 | return 0; | 3283 | return 0; |
3281 | err4: | 3284 | err4: |
@@ -3688,7 +3691,7 @@ static int dsi_display_run_test(struct omap_dss_device *dssdev, int test_num) | |||
3688 | dsi_bus_lock(); | 3691 | dsi_bus_lock(); |
3689 | 3692 | ||
3690 | /* run test first in low speed mode */ | 3693 | /* run test first in low speed mode */ |
3691 | dsi_vc_enable_hs(0, 0); | 3694 | omapdss_dsi_vc_enable_hs(0, 0); |
3692 | 3695 | ||
3693 | if (dssdev->driver->run_test) { | 3696 | if (dssdev->driver->run_test) { |
3694 | r = dssdev->driver->run_test(dssdev, test_num); | 3697 | r = dssdev->driver->run_test(dssdev, test_num); |
@@ -3697,7 +3700,7 @@ static int dsi_display_run_test(struct omap_dss_device *dssdev, int test_num) | |||
3697 | } | 3700 | } |
3698 | 3701 | ||
3699 | /* then in high speed */ | 3702 | /* then in high speed */ |
3700 | dsi_vc_enable_hs(0, 1); | 3703 | omapdss_dsi_vc_enable_hs(0, 1); |
3701 | 3704 | ||
3702 | if (dssdev->driver->run_test) { | 3705 | if (dssdev->driver->run_test) { |
3703 | r = dssdev->driver->run_test(dssdev, test_num); | 3706 | r = dssdev->driver->run_test(dssdev, test_num); |
@@ -3706,7 +3709,7 @@ static int dsi_display_run_test(struct omap_dss_device *dssdev, int test_num) | |||
3706 | } | 3709 | } |
3707 | 3710 | ||
3708 | end: | 3711 | end: |
3709 | dsi_vc_enable_hs(0, 1); | 3712 | omapdss_dsi_vc_enable_hs(0, 1); |
3710 | 3713 | ||
3711 | dsi_bus_unlock(); | 3714 | dsi_bus_unlock(); |
3712 | 3715 | ||