Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184853
b: refs/heads/master
c: 61140c9
h: refs/heads/master
i:
  184851: b08f657
v: v3
  • Loading branch information
Tomi Valkeinen committed Feb 15, 2010
1 parent 4e81aff commit 673be3f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 828c48f8c51ebfc2a00e1a834b0bc9e7fd35060f
refs/heads/master: 61140c9a88ce1f1dee4e98a0c442f9a84b4c5e6b
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-omap/include/plat/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -575,4 +575,6 @@ int omap_dispc_wait_for_irq_interruptible_timeout(u32 irqmask,
#define to_dss_driver(x) container_of((x), struct omap_dss_driver, driver)
#define to_dss_device(x) container_of((x), struct omap_dss_device, dev)

void omapdss_dsi_vc_enable_hs(int channel, bool enable);

#endif
13 changes: 8 additions & 5 deletions trunk/drivers/video/omap2/dss/dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1864,10 +1864,12 @@ static void dsi_vc_config_vp(int channel)
}


static void dsi_vc_enable_hs(int channel, bool enable)
void omapdss_dsi_vc_enable_hs(int channel, bool enable)
{
DSSDBG("dsi_vc_enable_hs(%d, %d)\n", channel, enable);

WARN_ON(!dsi_bus_is_locked());

dsi_vc_enable(channel, 0);
dsi_if_enable(0);

Expand All @@ -1878,6 +1880,7 @@ static void dsi_vc_enable_hs(int channel, bool enable)

dsi_force_tx_stop_mode_io();
}
EXPORT_SYMBOL(omapdss_dsi_vc_enable_hs);

static void dsi_vc_flush_long_data(int channel)
{
Expand Down Expand Up @@ -3275,7 +3278,7 @@ static int dsi_display_init_dsi(struct omap_dss_device *dssdev)
}

/* enable high-speed after initial config */
dsi_vc_enable_hs(0, 1);
omapdss_dsi_vc_enable_hs(0, 1);

return 0;
err4:
Expand Down Expand Up @@ -3688,7 +3691,7 @@ static int dsi_display_run_test(struct omap_dss_device *dssdev, int test_num)
dsi_bus_lock();

/* run test first in low speed mode */
dsi_vc_enable_hs(0, 0);
omapdss_dsi_vc_enable_hs(0, 0);

if (dssdev->driver->run_test) {
r = dssdev->driver->run_test(dssdev, test_num);
Expand All @@ -3697,7 +3700,7 @@ static int dsi_display_run_test(struct omap_dss_device *dssdev, int test_num)
}

/* then in high speed */
dsi_vc_enable_hs(0, 1);
omapdss_dsi_vc_enable_hs(0, 1);

if (dssdev->driver->run_test) {
r = dssdev->driver->run_test(dssdev, test_num);
Expand All @@ -3706,7 +3709,7 @@ static int dsi_display_run_test(struct omap_dss_device *dssdev, int test_num)
}

end:
dsi_vc_enable_hs(0, 1);
omapdss_dsi_vc_enable_hs(0, 1);

dsi_bus_unlock();

Expand Down

0 comments on commit 673be3f

Please sign in to comment.