Skip to content

Commit

Permalink
[media] smiapp: Add driver
Browse files Browse the repository at this point in the history
Add driver for SMIA++/SMIA image sensors. The driver exposes the sensor as
three subdevs, pixel array, binner and scaler --- in case the device has a
scaler.

Currently it relies on the board code for external clock handling. There is
no fast way out of this dependency before the ISP drivers (omap3isp) among
others will be able to export that clock through the clock framework
instead.

Signed-off-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed May 14, 2012
1 parent cf1c5fa commit ccfc97b
Show file tree
Hide file tree
Showing 17 changed files with 4,699 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ config VIDEO_S5K6AA
This is a V4L2 sensor-level driver for Samsung S5K6AA(FX) 1.3M
camera sensor with an embedded SoC image signal processor.

source "drivers/media/video/smiapp/Kconfig"

comment "Flash devices"

config VIDEO_ADP1653
Expand Down
1 change: 1 addition & 0 deletions drivers/media/video/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ obj-$(CONFIG_VIDEO_SR030PC30) += sr030pc30.o
obj-$(CONFIG_VIDEO_NOON010PC30) += noon010pc30.o
obj-$(CONFIG_VIDEO_M5MOLS) += m5mols/
obj-$(CONFIG_VIDEO_S5K6AA) += s5k6aa.o
obj-$(CONFIG_VIDEO_SMIAPP) += smiapp/
obj-$(CONFIG_VIDEO_ADP1653) += adp1653.o
obj-$(CONFIG_VIDEO_AS3645A) += as3645a.o

Expand Down
2 changes: 2 additions & 0 deletions drivers/media/video/smiapp-pll.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
*
*/

#include "smiapp/smiapp-debug.h"

#include <linux/gcd.h>
#include <linux/lcm.h>
#include <linux/module.h>
Expand Down
13 changes: 13 additions & 0 deletions drivers/media/video/smiapp/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
config VIDEO_SMIAPP
tristate "SMIA++/SMIA sensor support"
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
select VIDEO_SMIAPP_PLL
---help---
This is a generic driver for SMIA++/SMIA camera modules.

config VIDEO_SMIAPP_DEBUG
bool "Enable debugging for the generic SMIA++/SMIA driver"
depends on VIDEO_SMIAPP
---help---
Enable debugging output in the generic SMIA++/SMIA driver. If you
are developing the driver you might want to enable this.
3 changes: 3 additions & 0 deletions drivers/media/video/smiapp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
smiapp-objs += smiapp-core.o smiapp-regs.o \
smiapp-quirk.o smiapp-limits.o
obj-$(CONFIG_VIDEO_SMIAPP) += smiapp.o
Loading

0 comments on commit ccfc97b

Please sign in to comment.