xref: /openbmc/linux/include/media/drv-intf/sh_vou.h (revision bef7a78d)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * SuperH Video Output Unit (VOU) driver header
4  *
5  * Copyright (C) 2010, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
6  */
7 #ifndef SH_VOU_H
8 #define SH_VOU_H
9 
10 #include <linux/i2c.h>
11 
12 /* Bus flags */
13 #define SH_VOU_PCLK_FALLING	(1 << 0)
14 #define SH_VOU_HSYNC_LOW	(1 << 1)
15 #define SH_VOU_VSYNC_LOW	(1 << 2)
16 
17 enum sh_vou_bus_fmt {
18 	SH_VOU_BUS_8BIT,
19 	SH_VOU_BUS_16BIT,
20 	SH_VOU_BUS_BT656,
21 };
22 
23 struct sh_vou_pdata {
24 	enum sh_vou_bus_fmt bus_fmt;
25 	int i2c_adap;
26 	struct i2c_board_info *board_info;
27 	unsigned long flags;
28 };
29 
30 #endif
31