mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
V4L/DVB: V4L: SuperH Video Output Unit (VOU) driver
A number of SuperH Mobile SoCs, including sh7724, include a Video Output Unit. This patch adds a video (V4L2) output driver for it. The driver uses v4l2-subdev and mediabus APIs to interface to TV encoders. Signed-off-by: Guennadi Liakhovetski <[email protected]> Acked-by: Paul Mundt <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
f35f1bb8fc
commit
a81fb9b223
4 changed files with 1521 additions and 0 deletions
34
include/media/sh_vou.h
Normal file
34
include/media/sh_vou.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* SuperH Video Output Unit (VOU) driver header
|
||||
*
|
||||
* Copyright (C) 2010, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
#ifndef SH_VOU_H
|
||||
#define SH_VOU_H
|
||||
|
||||
#include <linux/i2c.h>
|
||||
|
||||
/* Bus flags */
|
||||
#define SH_VOU_PCLK_FALLING (1 << 0)
|
||||
#define SH_VOU_HSYNC_LOW (1 << 1)
|
||||
#define SH_VOU_VSYNC_LOW (1 << 2)
|
||||
|
||||
enum sh_vou_bus_fmt {
|
||||
SH_VOU_BUS_8BIT,
|
||||
SH_VOU_BUS_16BIT,
|
||||
SH_VOU_BUS_BT656,
|
||||
};
|
||||
|
||||
struct sh_vou_pdata {
|
||||
enum sh_vou_bus_fmt bus_fmt;
|
||||
int i2c_adap;
|
||||
struct i2c_board_info *board_info;
|
||||
unsigned long flags;
|
||||
char *module_name;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue