Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Guennadi Liakhovetski | a81fb9b | 2010-03-17 11:21:13 -0300 | [diff] [blame] | 2 | /* |
| 3 | * SuperH Video Output Unit (VOU) driver header |
| 4 | * |
| 5 | * Copyright (C) 2010, Guennadi Liakhovetski <g.liakhovetski@gmx.de> |
Guennadi Liakhovetski | a81fb9b | 2010-03-17 11:21:13 -0300 | [diff] [blame] | 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; |
Guennadi Liakhovetski | a81fb9b | 2010-03-17 11:21:13 -0300 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | #endif |