blob: a90a765f18daeaa29e5b148226177c28a708db4f [file] [log] [blame]
Magnus Damm0d3244d2008-07-16 22:59:28 -03001#ifndef __ASM_SH_MOBILE_CEU_H__
2#define __ASM_SH_MOBILE_CEU_H__
3
Kuninori Morimotoc354b402009-02-23 12:12:58 -03004#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 Morimoto85dc1cf2009-12-11 11:53:54 -03006#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 */
Magnus Damm0d3244d2008-07-16 22:59:28 -03008
Guennadi Liakhovetskib3b50202010-07-26 12:13:34 -03009struct device;
Guennadi Liakhovetski6b526fe2011-07-01 11:19:58 -030010struct resource;
11
12struct sh_mobile_ceu_companion {
13 u32 num_resources;
14 struct resource *resource;
15 int id;
16 void *platform_data;
17};
Guennadi Liakhovetskib3b50202010-07-26 12:13:34 -030018
Magnus Damm0d3244d2008-07-16 22:59:28 -030019struct sh_mobile_ceu_info {
Kuninori Morimotoc354b402009-02-23 12:12:58 -030020 unsigned long flags;
Guennadi Liakhovetski48e971c2012-03-14 08:37:03 -030021 int max_width;
22 int max_height;
Guennadi Liakhovetski6b526fe2011-07-01 11:19:58 -030023 struct sh_mobile_ceu_companion *csi2;
Magnus Damm0d3244d2008-07-16 22:59:28 -030024};
25
26#endif /* __ASM_SH_MOBILE_CEU_H__ */