OMAP: DSS2: DSI: implement enable/disable SCP clk
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 13 Apr 2011 14:12:52 +0000 (17:12 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 11 May 2011 11:20:15 +0000 (14:20 +0300)
commit24c1ae4191e911caa08b31079d61ff4db319a101
treea0b35c0910cb2c8ff3b1522a6a5c1b1d090bba8f
parentc335cbf94e7450fb41aafe97e805752a830d3a43
OMAP: DSS2: DSI: implement enable/disable SCP clk

SCP clock is needed for CIO on OMAP3, and for CIO and PLL on OMAP4.
Current driver enables the CIO clock always when DSI display is
initialized. However, if a DPI display tries to use DSI PLL, the SCP
clock is never enabled.

This patch implements simple ref counting enable/disable functions for
SCP clock.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dsi.c