diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 18:51:32 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 18:51:32 -0400 |
| commit | 5f097cd249f00683442c3e265d6f27d80fc83563 (patch) | |
| tree | 6b354913fcb2a099aa26e017895e1e6fdf6385e2 /include/video | |
| parent | a82a729f04232ccd0b59406574ba4cf20027a49d (diff) | |
| parent | 1b6c79361ba5ce30b40f0f7d6fc2421dc5fcbe0c (diff) | |
Merge tag 'fbdev-for-3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/plagnioj/linux-fbdev
Pull fbdev update from Jean-Christophe PLAGNIOL-VILLARD:
"Various fbdev changes for 3.11
- xilinxfb updates
- Small cleanups and fixes to multiple drivers
- OMAP display subsystem bug updates
- imxfb dt support"
* tag 'fbdev-for-3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/plagnioj/linux-fbdev: (95 commits)
video: imxfb: Add DT support
video: i740fb: Make i740fb_init static
fb: make fp_get_options name argument const
video: mmp: fix graphics/video layer enable/mask swap issue
video: mmp: fix memcpy wrong size for mmp_addr issue
radeon: use pdev->pm_cap instead of pci_find_capability(..,PCI_CAP_ID_PM)
aty128fb: use pdev->pm_cap instead of pci_find_capability(..,PCI_CAP_ID_PM)
video: of_display_timing.h: Declare 'display_timing'
fbdev: bfin-lq035q1-fb: Use dev_pm_ops
fbmem: return -EFAULT on copy_to_user() failure
OMAPDSS: DPI: Fix wrong pixel clock limit
video: replace strict_strtoul() with kstrtoul()
uvesafb: Correct/simplify warning message
fb: fix atyfb unused data warnings
fb: fix atyfb build warning
video: imxfb: Make local symbols static
video: udlfb: Make local symbol static
video: udlfb: Use NULL instead of 0
video: smscufx: Use NULL instead of 0
video: remove unnecessary platform_set_drvdata()
...
Diffstat (limited to 'include/video')
| -rw-r--r-- | include/video/of_display_timing.h | 3 | ||||
| -rw-r--r-- | include/video/omap-panel-data.h | 209 | ||||
| -rw-r--r-- | include/video/omapdss.h | 293 |
3 files changed, 463 insertions, 42 deletions
diff --git a/include/video/of_display_timing.h b/include/video/of_display_timing.h index 8016eb727cf3..79e6697af6cf 100644 --- a/include/video/of_display_timing.h +++ b/include/video/of_display_timing.h | |||
| @@ -10,10 +10,13 @@ | |||
| 10 | #define __LINUX_OF_DISPLAY_TIMING_H | 10 | #define __LINUX_OF_DISPLAY_TIMING_H |
| 11 | 11 | ||
| 12 | struct device_node; | 12 | struct device_node; |
| 13 | struct display_timing; | ||
| 13 | struct display_timings; | 14 | struct display_timings; |
| 14 | 15 | ||
| 15 | #define OF_USE_NATIVE_MODE -1 | 16 | #define OF_USE_NATIVE_MODE -1 |
| 16 | 17 | ||
| 18 | int of_get_display_timing(struct device_node *np, const char *name, | ||
| 19 | struct display_timing *dt); | ||
| 17 | struct display_timings *of_get_display_timings(struct device_node *np); | 20 | struct display_timings *of_get_display_timings(struct device_node *np); |
| 18 | int of_display_timings_exist(struct device_node *np); | 21 | int of_display_timings_exist(struct device_node *np); |
| 19 | 22 | ||
diff --git a/include/video/omap-panel-data.h b/include/video/omap-panel-data.h index 0c3b46d3daf3..6b2366fb6e53 100644 --- a/include/video/omap-panel-data.h +++ b/include/video/omap-panel-data.h | |||
| @@ -27,6 +27,9 @@ | |||
| 27 | #ifndef __OMAP_PANEL_DATA_H | 27 | #ifndef __OMAP_PANEL_DATA_H |
| 28 | #define __OMAP_PANEL_DATA_H | 28 | #define __OMAP_PANEL_DATA_H |
| 29 | 29 | ||
| 30 | #include <video/omapdss.h> | ||
| 31 | #include <video/display_timing.h> | ||
| 32 | |||
| 30 | struct omap_dss_device; | 33 | struct omap_dss_device; |
| 31 | 34 | ||
| 32 | /** | 35 | /** |
| @@ -147,4 +150,210 @@ struct panel_tpo_td043_data { | |||
| 147 | int nreset_gpio; | 150 | int nreset_gpio; |
| 148 | }; | 151 | }; |
| 149 | 152 | ||
| 153 | /** | ||
| 154 | * encoder_tfp410 platform data | ||
| 155 | * @name: name for this display entity | ||
| 156 | * @power_down_gpio: gpio number for PD pin (or -1 if not available) | ||
| 157 | * @data_lines: number of DPI datalines | ||
| 158 | */ | ||
| 159 | struct encoder_tfp410_platform_data { | ||
| 160 | const char *name; | ||
| 161 | const char *source; | ||
| 162 | int power_down_gpio; | ||
| 163 | int data_lines; | ||
| 164 | }; | ||
| 165 | |||
| 166 | /** | ||
| 167 | * encoder_tpd12s015 platform data | ||
| 168 | * @name: name for this display entity | ||
| 169 | * @ct_cp_hpd_gpio: CT_CP_HPD gpio number | ||
| 170 | * @ls_oe_gpio: LS_OE gpio number | ||
| 171 | * @hpd_gpio: HPD gpio number | ||
| 172 | */ | ||
| 173 | struct encoder_tpd12s015_platform_data { | ||
| 174 | const char *name; | ||
| 175 | const char *source; | ||
| 176 | |||
| 177 | int ct_cp_hpd_gpio; | ||
| 178 | int ls_oe_gpio; | ||
| 179 | int hpd_gpio; | ||
| 180 | }; | ||
| 181 | |||
| 182 | /** | ||
| 183 | * connector_dvi platform data | ||
| 184 | * @name: name for this display entity | ||
| 185 | * @source: name of the display entity used as a video source | ||
| 186 | * @i2c_bus_num: i2c bus number to be used for reading EDID | ||
| 187 | */ | ||
| 188 | struct connector_dvi_platform_data { | ||
| 189 | const char *name; | ||
| 190 | const char *source; | ||
| 191 | int i2c_bus_num; | ||
| 192 | }; | ||
| 193 | |||
| 194 | /** | ||
| 195 | * connector_hdmi platform data | ||
| 196 | * @name: name for this display entity | ||
| 197 | * @source: name of the display entity used as a video source | ||
| 198 | */ | ||
| 199 | struct connector_hdmi_platform_data { | ||
| 200 | const char *name; | ||
| 201 | const char *source; | ||
| 202 | }; | ||
| 203 | |||
| 204 | /** | ||
| 205 | * connector_atv platform data | ||
| 206 | * @name: name for this display entity | ||
| 207 | * @source: name of the display entity used as a video source | ||
| 208 | * @connector_type: composite/svideo | ||
| 209 | * @invert_polarity: invert signal polarity | ||
| 210 | */ | ||
| 211 | struct connector_atv_platform_data { | ||
| 212 | const char *name; | ||
| 213 | const char *source; | ||
| 214 | |||
| 215 | enum omap_dss_venc_type connector_type; | ||
| 216 | bool invert_polarity; | ||
| 217 | }; | ||
| 218 | |||
| 219 | /** | ||
| 220 | * panel_dpi platform data | ||
| 221 | * @name: name for this display entity | ||
| 222 | * @source: name of the display entity used as a video source | ||
| 223 | * @data_lines: number of DPI datalines | ||
| 224 | * @display_timing: timings for this panel | ||
| 225 | * @backlight_gpio: gpio to enable/disable the backlight (or -1) | ||
| 226 | * @enable_gpio: gpio to enable/disable the panel (or -1) | ||
| 227 | */ | ||
| 228 | struct panel_dpi_platform_data { | ||
| 229 | const char *name; | ||
| 230 | const char *source; | ||
| 231 | |||
| 232 | int data_lines; | ||
| 233 | |||
| 234 | const struct display_timing *display_timing; | ||
| 235 | |||
| 236 | int backlight_gpio; | ||
| 237 | int enable_gpio; | ||
| 238 | }; | ||
| 239 | |||
| 240 | /** | ||
| 241 | * panel_dsicm platform data | ||
| 242 | * @name: name for this display entity | ||
| 243 | * @source: name of the display entity used as a video source | ||
| 244 | * @reset_gpio: gpio to reset the panel (or -1) | ||
| 245 | * @use_ext_te: use external TE GPIO | ||
| 246 | * @ext_te_gpio: external TE GPIO | ||
| 247 | * @ulps_timeout: time to wait before entering ULPS, 0 = disabled (ms) | ||
| 248 | * @use_dsi_backlight: true if panel uses DSI command to control backlight | ||
| 249 | * @pin_config: DSI pin configuration | ||
| 250 | */ | ||
| 251 | struct panel_dsicm_platform_data { | ||
| 252 | const char *name; | ||
| 253 | const char *source; | ||
| 254 | |||
| 255 | int reset_gpio; | ||
| 256 | |||
| 257 | bool use_ext_te; | ||
| 258 | int ext_te_gpio; | ||
| 259 | |||
| 260 | unsigned ulps_timeout; | ||
| 261 | |||
| 262 | bool use_dsi_backlight; | ||
| 263 | |||
| 264 | struct omap_dsi_pin_config pin_config; | ||
| 265 | }; | ||
| 266 | |||
| 267 | /** | ||
| 268 | * panel_acx565akm platform data | ||
| 269 | * @name: name for this display entity | ||
| 270 | * @source: name of the display entity used as a video source | ||
| 271 | * @reset_gpio: gpio to reset the panel (or -1) | ||
| 272 | * @datapairs: number of SDI datapairs | ||
| 273 | */ | ||
| 274 | struct panel_acx565akm_platform_data { | ||
| 275 | const char *name; | ||
| 276 | const char *source; | ||
| 277 | |||
| 278 | int reset_gpio; | ||
| 279 | |||
| 280 | int datapairs; | ||
| 281 | }; | ||
| 282 | |||
| 283 | /** | ||
| 284 | * panel_lb035q02 platform data | ||
| 285 | * @name: name for this display entity | ||
| 286 | * @source: name of the display entity used as a video source | ||
| 287 | * @data_lines: number of DPI datalines | ||
| 288 | * @backlight_gpio: gpio to enable/disable the backlight (or -1) | ||
| 289 | * @enable_gpio: gpio to enable/disable the panel (or -1) | ||
| 290 | */ | ||
| 291 | struct panel_lb035q02_platform_data { | ||
| 292 | const char *name; | ||
| 293 | const char *source; | ||
| 294 | |||
| 295 | int data_lines; | ||
| 296 | |||
| 297 | int backlight_gpio; | ||
| 298 | int enable_gpio; | ||
| 299 | }; | ||
| 300 | |||
| 301 | /** | ||
| 302 | * panel_sharp_ls037v7dw01 platform data | ||
