Magnus Damm | 0d3244d | 2008-07-16 22:59:28 -0300 | [diff] [blame] | 1 | #ifndef __ASM_SH_MOBILE_CEU_H__ |
| 2 | #define __ASM_SH_MOBILE_CEU_H__ |
| 3 | |
Kuninori Morimoto | c354b40 | 2009-02-23 12:12:58 -0300 | [diff] [blame] | 4 | #define SH_CEU_FLAG_USE_8BIT_BUS (1 << 0) /* use 8bit bus width */ |
| 5 | #define SH_CEU_FLAG_USE_16BIT_BUS (1 << 1) /* use 16bit bus width */ |
Kuninori Morimoto | 85dc1cf | 2009-12-11 11:53:54 -0300 | [diff] [blame] | 6 | #define SH_CEU_FLAG_HSYNC_LOW (1 << 2) /* default High if possible */ |
| 7 | #define SH_CEU_FLAG_VSYNC_LOW (1 << 3) /* default High if possible */ |
Kuninori Morimoto | 2564f67 | 2012-05-08 00:00:07 -0300 | [diff] [blame] | 8 | #define SH_CEU_FLAG_LOWER_8BIT (1 << 4) /* default upper 8bit */ |
Magnus Damm | 0d3244d | 2008-07-16 22:59:28 -0300 | [diff] [blame] | 9 | |
Guennadi Liakhovetski | b3b5020 | 2010-07-26 12:13:34 -0300 | [diff] [blame] | 10 | struct device; |
Guennadi Liakhovetski | 6b526fe | 2011-07-01 11:19:58 -0300 | [diff] [blame] | 11 | struct resource; |
| 12 | |
| 13 | struct sh_mobile_ceu_companion { |
| 14 | u32 num_resources; |
| 15 | struct resource *resource; |
| 16 | int id; |
| 17 | void *platform_data; |
| 18 | }; |
Guennadi Liakhovetski | b3b5020 | 2010-07-26 12:13:34 -0300 | [diff] [blame] | 19 | |
Magnus Damm | 0d3244d | 2008-07-16 22:59:28 -0300 | [diff] [blame] | 20 | struct sh_mobile_ceu_info { |
Kuninori Morimoto | c354b40 | 2009-02-23 12:12:58 -0300 | [diff] [blame] | 21 | unsigned long flags; |
Guennadi Liakhovetski | 48e971c | 2012-03-14 08:37:03 -0300 | [diff] [blame] | 22 | int max_width; |
| 23 | int max_height; |
Guennadi Liakhovetski | 6b526fe | 2011-07-01 11:19:58 -0300 | [diff] [blame] | 24 | struct sh_mobile_ceu_companion *csi2; |
Magnus Damm | 0d3244d | 2008-07-16 22:59:28 -0300 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | #endif /* __ASM_SH_MOBILE_CEU_H__ */ |