[media] s5p-fimc: Ensure CAMCLK clock can be enabled by FIMC-LITE devices
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 21 Mar 2013 17:47:17 +0000 (14:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 31 Mar 2013 14:01:07 +0000 (11:01 -0300)
commit3e20c345a6dac13a1545bd748f9d0a6336856ee7
treef04ffe02af4563ac15e5aba2a4429447f1109f15
parent88fa8311ee36602362a1d6b61117dc3ac76ff8ad
[media] s5p-fimc: Ensure CAMCLK clock can be enabled by FIMC-LITE devices

In configurations where FIMC-LITE is used to capture image signal
from an external sensor only we need to ensure one of FIMC devices
is in active power state and the "fimc" gate clock is enabled.
Otherwise the CAMCLK clock output signal will be masked off
preventing an external sensor's operation.
This affect processing pipelines like:
 - sensor -> FIMC-LITE -> memory
 - sensor -> MIPI-CSIS -> FIMC-LITE -> memory

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-fimc/fimc-mdevice.c
drivers/media/platform/s5p-fimc/fimc-mdevice.h