linux/drivers/video/omap2
Tomi Valkeinen 5aaee69d7f OMAPDSS: DISPC: get dss clock rate from dss driver
Dispc currently gets dispc's fck with clk_get() and uses clk_get_rate()
to get the rate for scaling calculations. This causes a problem with
common clock framework, as omapdss uses the dispc functions inside a
spinlock, and common clock framework uses a mutex in clk_get_rate().

Looking at the DSS clock tree, the above use of the dispc fck is not
quite correct. The DSS_FCLK from PRCM goes to DSS core block, which has
a mux to select the clock for DISPC from various options, so the current
use of dispc fck bypasses that. Fortunately we never change the dispc
clock mux for now.

To fix the issue with clk_get_rate(), this patch caches the dss clock
rate in dss.c when it is set. Dispc will then ask for the clock rate
from dss. While this is not very elegant, it does fix the issue, and
it's not totally wrong when considering that the dispc fck actually
comes via dss.

In the future we should probably look into common clock framework and
see if that could be used to represent the DSS clock tree properly.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2012-12-12 13:34:13 +02:00
..
displays OMAPDSS: Add terminating entry for picodlp_i2c_id table 2012-11-30 10:54:41 +02:00
dss OMAPDSS: DISPC: get dss clock rate from dss driver 2012-12-12 13:34:13 +02:00
omapfb OMAPDSS: use omapdss_compat_init() in other drivers 2012-12-07 17:06:00 +02:00
Kconfig OMAP: remove vram allocator 2012-11-13 09:52:41 +02:00
Makefile OMAP: remove vram allocator 2012-11-13 09:52:41 +02:00
vrfb.c OMAPDSS: VRFB: add omap_vrfb_supported() 2012-10-17 12:17:18 +03:00