Skip to content

Commit

Permalink
V4L/DVB (8339): soc_camera: Add 16-bit bus width support
Browse files Browse the repository at this point in the history
The SuperH Mobile CEU hardware supports 16-bit width bus,
so extend the soc_camera code with SOCAM_DATAWIDTH_16.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Magnus Damm authored and Mauro Carvalho Chehab committed Jul 20, 2008
1 parent a034d1b commit b15cf1f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/media/soc_camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,12 @@ static inline struct v4l2_queryctrl const *soc_camera_find_qctrl(
#define SOCAM_DATAWIDTH_8 (1 << 6)
#define SOCAM_DATAWIDTH_9 (1 << 7)
#define SOCAM_DATAWIDTH_10 (1 << 8)
#define SOCAM_PCLK_SAMPLE_RISING (1 << 9)
#define SOCAM_PCLK_SAMPLE_FALLING (1 << 10)
#define SOCAM_DATAWIDTH_16 (1 << 9)
#define SOCAM_PCLK_SAMPLE_RISING (1 << 10)
#define SOCAM_PCLK_SAMPLE_FALLING (1 << 11)

#define SOCAM_DATAWIDTH_MASK (SOCAM_DATAWIDTH_8 | SOCAM_DATAWIDTH_9 | \
SOCAM_DATAWIDTH_10)
SOCAM_DATAWIDTH_10 | SOCAM_DATAWIDTH_16)

static inline unsigned long soc_camera_bus_param_compatible(
unsigned long camera_flags, unsigned long bus_flags)
Expand Down

0 comments on commit b15cf1f

Please sign in to comment.