diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-09-03 02:26:33 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-09-03 02:26:33 -0400 |
commit | c50e86ce7c2961a41f2f7aa6e4fd6c99229ba205 (patch) | |
tree | 4ea36009719bd8fc523239fe1bdccb90f0dce3ae /include/video | |
parent | 14d33d384693eb6083396199de516fdef320f7af (diff) | |
parent | 4cbe5a555fa58a79b6ecbb6c531b8bab0650778d (diff) |
Merge tag 'v3.6-rc4'
Merge 3.6-rc4 to get latest OMAP and device tree fixes.
Diffstat (limited to 'include/video')
-rw-r--r-- | include/video/da8xx-fb.h | 3 | ||||
-rw-r--r-- | include/video/sh_mobile_lcdc.h | 7 | ||||
-rw-r--r-- | include/video/sh_mobile_meram.h | 71 |
3 files changed, 61 insertions, 20 deletions
diff --git a/include/video/da8xx-fb.h b/include/video/da8xx-fb.h index 89d43b3d4cb9..5a0e4f9efb53 100644 --- a/include/video/da8xx-fb.h +++ b/include/video/da8xx-fb.h | |||
@@ -82,6 +82,9 @@ struct lcd_ctrl_config { | |||
82 | 82 | ||
83 | /* Raster Data Order Select: 1=Most-to-least 0=Least-to-most */ | 83 | /* Raster Data Order Select: 1=Most-to-least 0=Least-to-most */ |
84 | unsigned char raster_order; | 84 | unsigned char raster_order; |
85 | |||
86 | /* DMA FIFO threshold */ | ||
87 | int fifo_th; | ||
85 | }; | 88 | }; |
86 | 89 | ||
87 | struct lcd_sync_arg { | 90 | struct lcd_sync_arg { |
diff --git a/include/video/sh_mobile_lcdc.h b/include/video/sh_mobile_lcdc.h index 7571b27a0ba1..ff43ffc1aab2 100644 --- a/include/video/sh_mobile_lcdc.h +++ b/include/video/sh_mobile_lcdc.h | |||
@@ -166,6 +166,12 @@ struct sh_mobile_lcdc_bl_info { | |||
166 | int (*get_brightness)(void); | 166 | int (*get_brightness)(void); |
167 | }; | 167 | }; |
168 | 168 | ||
169 | struct sh_mobile_lcdc_overlay_cfg { | ||
170 | int fourcc; | ||
171 | unsigned int max_xres; | ||
172 | unsigned int max_yres; | ||
173 | }; | ||
174 | |||
169 | struct sh_mobile_lcdc_chan_cfg { | 175 | struct sh_mobile_lcdc_chan_cfg { |
170 | int chan; | 176 | int chan; |
171 | int fourcc; | 177 | int fourcc; |
@@ -186,6 +192,7 @@ struct sh_mobile_lcdc_chan_cfg { | |||
186 | struct sh_mobile_lcdc_info { | 192 | struct sh_mobile_lcdc_info { |
187 | int clock_source; | 193 | int clock_source; |
188 | struct sh_mobile_lcdc_chan_cfg ch[2]; | 194 | struct sh_mobile_lcdc_chan_cfg ch[2]; |
195 | struct sh_mobile_lcdc_overlay_cfg overlays[4]; | ||
189 | struct sh_mobile_meram_info *meram_dev; | 196 | struct sh_mobile_meram_info *meram_dev; |
190 | }; | 197 | }; |
191 | 198 | ||
diff --git a/include/video/sh_mobile_meram.h b/include/video/sh_mobile_meram.h index 29b2fd3b147e..062e6e7f955c 100644 --- a/include/video/sh_mobile_meram.h +++ b/include/video/sh_mobile_meram.h | |||
@@ -15,7 +15,6 @@ enum { | |||
15 | 15 | ||
16 | 16 | ||
17 | struct sh_mobile_meram_priv; | 17 | struct sh_mobile_meram_priv; |
18 | struct sh_mobile_meram_ops; | ||
19 | 18 | ||
20 | /* | 19 | /* |
21 | * struct sh_mobile_meram_info - MERAM platform data | 20 | * struct sh_mobile_meram_info - MERAM platform data |
@@ -24,7 +23,6 @@ struct sh_mobile_meram_ops; | |||
24 | struct sh_mobile_meram_info { | 23 | struct sh_mobile_meram_info { |
25 | int addr_mode; | 24 | int addr_mode; |
26 | u32 reserved_icbs; | 25 | u32 reserved_icbs; |
27 | struct sh_mobile_meram_ops *ops; | ||
28 | struct sh_mobile_meram_priv *priv; | 26 | struct sh_mobile_meram_priv *priv; |
29 | struct platform_device *pdev; | 27 | struct platform_device *pdev; |
30 | }; | 28 | }; |
@@ -38,26 +36,59 @@ struct sh_mobile_meram_cfg { | |||
38 | struct sh_mobile_meram_icb_cfg icb[2]; | 36 | struct sh_mobile_meram_icb_cfg icb[2]; |
39 | }; | 37 | }; |
40 | 38 | ||
41 | struct module; | 39 | #if defined(CONFIG_FB_SH_MOBILE_MERAM) || \ |
42 | struct sh_mobile_meram_ops { | 40 | defined(CONFIG_FB_SH_MOBILE_MERAM_MODULE) |
43 | struct module *module; | 41 | unsigned long sh_mobile_meram_alloc(struct sh_mobile_meram_info *meram_dev, |
44 | /* register usage of meram */ | 42 | size_t size); |
45 | void *(*meram_register)(struct sh_mobile_meram_info *meram_dev, | 43 | void sh_mobile_meram_free(struct sh_mobile_meram_info *meram_dev, |
46 | const struct sh_mobile_meram_cfg *cfg, | 44 | unsigned long mem, size_t size); |
47 | unsigned int xres, unsigned int yres, | 45 | void *sh_mobile_meram_cache_alloc(struct sh_mobile_meram_info *dev, |
48 | unsigned int pixelformat, | 46 | const struct sh_mobile_meram_cfg *cfg, |
49 | unsigned int *pitch); | 47 | unsigned int xres, unsigned int yres, |
50 | 48 | unsigned int pixelformat, | |
51 | /* unregister usage of meram */ | 49 | unsigned int *pitch); |
52 | void (*meram_unregister)(struct sh_mobile_meram_info *meram_dev, | 50 | void sh_mobile_meram_cache_free(struct sh_mobile_meram_info *dev, void *data); |
53 | void *data); | 51 | void sh_mobile_meram_cache_update(struct sh_mobile_meram_info *dev, void *data, |
54 | 52 | unsigned long base_addr_y, | |
55 | /* update meram settings */ | 53 | unsigned long base_addr_c, |
56 | void (*meram_update)(struct sh_mobile_meram_info *meram_dev, void *data, | 54 | unsigned long *icb_addr_y, |
55 | unsigned long *icb_addr_c); | ||
56 | #else | ||
57 | static inline unsigned long | ||
58 | sh_mobile_meram_alloc(struct sh_mobile_meram_info *meram_dev, size_t size) | ||
59 | { | ||
60 | return 0; | ||
61 | } | ||
62 | |||
63 | static inline void | ||
64 | sh_mobile_meram_free(struct sh_mobile_meram_info *meram_dev, | ||
65 | unsigned long mem, size_t size) | ||
66 | { | ||
67 | } | ||
68 | |||
69 | static inline void * | ||
70 | sh_mobile_meram_cache_alloc(struct sh_mobile_meram_info *dev, | ||
71 | const struct sh_mobile_meram_cfg *cfg, | ||
72 | unsigned int xres, unsigned int yres, | ||
73 | unsigned int pixelformat, | ||
74 | unsigned int *pitch) | ||
75 | { | ||
76 | return ERR_PTR(-ENODEV); | ||
77 | } | ||
78 | |||
79 | static inline void | ||
80 | sh_mobile_meram_cache_free(struct sh_mobile_meram_info *dev, void *data) | ||
81 | { | ||
82 | } | ||
83 | |||
84 | static inline void | ||
85 | sh_mobile_meram_cache_update(struct sh_mobile_meram_info *dev, void *data, | ||
57 | unsigned long base_addr_y, | 86 | unsigned long base_addr_y, |
58 | unsigned long base_addr_c, | 87 | unsigned long base_addr_c, |
59 | unsigned long *icb_addr_y, | 88 | unsigned long *icb_addr_y, |
60 | unsigned long *icb_addr_c); | 89 | unsigned long *icb_addr_c) |
61 | }; | 90 | { |
91 | } | ||
92 | #endif | ||
62 | 93 | ||
63 | #endif /* __VIDEO_SH_MOBILE_MERAM_H__ */ | 94 | #endif /* __VIDEO_SH_MOBILE_MERAM_H__ */ |