rm680: Add camera init for3.4-sakari
authorSakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Tue, 6 Mar 2012 16:33:16 +0000 (18:33 +0200)
committerSergio Aguirre <sergio.a.aguirre@gmail.com>
Fri, 8 Jun 2012 23:02:51 +0000 (18:02 -0500)
commit9e2afcfe99cf52c70e993321f9a348fac1be724d
tree7800498da42896bad14cdf6f57a12cbf92f27e1a
parent4ef8a607b715e8426ca44f61ccd51526ecbcf1f5
rm680: Add camera init

This currently introduces an extra file to the arch/arm/mach-omap2
directory: board-rm680-camera.c. Keeping the device tree in mind, the
context of the file could be represented as static data with one exception:
the external clock to the sensor.

This external clock is provided by the OMAP 3 SoC and required by the
sensor. The issue is that the clock originates from the ISP and not from
PRCM block as the other clocks and thus is not supported by the clock
framework. Otherwise the sensor driver could just clk_get() and clk_enable()
it, just like the regulators and gpios.

Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/board-rm680-camera.c [new file with mode: 0644]
arch/arm/mach-omap2/board-rm680.c