diff options
| -rw-r--r-- | arch/arm/mach-omap2/dss-common.c | 2 | ||||
| -rw-r--r-- | drivers/video/mxsfb.c | 26 | ||||
| -rw-r--r-- | drivers/video/omap2/displays-new/connector-analog-tv.c | 18 |
3 files changed, 17 insertions, 29 deletions
diff --git a/arch/arm/mach-omap2/dss-common.c b/arch/arm/mach-omap2/dss-common.c index 393aeefaebb0..043e5705f2a6 100644 --- a/arch/arm/mach-omap2/dss-common.c +++ b/arch/arm/mach-omap2/dss-common.c | |||
| @@ -42,7 +42,7 @@ | |||
| 42 | 42 | ||
| 43 | /* Using generic display panel */ | 43 | /* Using generic display panel */ |
| 44 | static struct tfp410_platform_data omap4_dvi_panel = { | 44 | static struct tfp410_platform_data omap4_dvi_panel = { |
| 45 | .i2c_bus_num = 3, | 45 | .i2c_bus_num = 2, |
| 46 | .power_down_gpio = PANDA_DVI_TFP410_POWER_DOWN_GPIO, | 46 | .power_down_gpio = PANDA_DVI_TFP410_POWER_DOWN_GPIO, |
| 47 | }; | 47 | }; |
| 48 | 48 | ||
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 3ba37713b1f9..dc09ebe4aba5 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c | |||
| @@ -239,24 +239,6 @@ static const struct fb_bitfield def_rgb565[] = { | |||
| 239 | } | 239 | } |
| 240 | }; | 240 | }; |
| 241 | 241 | ||
| 242 | static const struct fb_bitfield def_rgb666[] = { | ||
| 243 | [RED] = { | ||
| 244 | .offset = 16, | ||
| 245 | .length = 6, | ||
| 246 | }, | ||
| 247 | [GREEN] = { | ||
| 248 | .offset = 8, | ||
| 249 | .length = 6, | ||
| 250 | }, | ||
| 251 | [BLUE] = { | ||
| 252 | .offset = 0, | ||
| 253 | .length = 6, | ||
| 254 | }, | ||
| 255 | [TRANSP] = { /* no support for transparency */ | ||
| 256 | .length = 0, | ||
| 257 | } | ||
| 258 | }; | ||
| 259 | |||
| 260 | static const struct fb_bitfield def_rgb888[] = { | 242 | static const struct fb_bitfield def_rgb888[] = { |
| 261 | [RED] = { | 243 | [RED] = { |
| 262 | .offset = 16, | 244 | .offset = 16, |
| @@ -309,9 +291,6 @@ static int mxsfb_check_var(struct fb_var_screeninfo *var, | |||
| 309 | break; | 291 | break; |
| 310 | case STMLCDIF_16BIT: | 292 | case STMLCDIF_16BIT: |
| 311 | case STMLCDIF_18BIT: | 293 | case STMLCDIF_18BIT: |
| 312 | /* 24 bit to 18 bit mapping */ | ||
| 313 | rgb = def_rgb666; | ||
| 314 | break; | ||
| 315 | case STMLCDIF_24BIT: | 294 | case STMLCDIF_24BIT: |
| 316 | /* real 24 bit */ | 295 | /* real 24 bit */ |
| 317 | rgb = def_rgb888; | 296 | rgb = def_rgb888; |
| @@ -453,11 +432,6 @@ static int mxsfb_set_par(struct fb_info *fb_info) | |||
| 453 | return -EINVAL; | 432 | return -EINVAL; |
| 454 | case STMLCDIF_16BIT: | 433 | case STMLCDIF_16BIT: |
| 455 | case STMLCDIF_18BIT: | 434 | case STMLCDIF_18BIT: |
| 456 | /* 24 bit to 18 bit mapping */ | ||
| 457 | ctrl |= CTRL_DF24; /* ignore the upper 2 bits in | ||
| 458 | * each colour component | ||
| 459 | */ | ||
| 460 | break; | ||
| 461 | case STMLCDIF_24BIT: | 435 | case STMLCDIF_24BIT: |
| 462 | /* real 24 bit */ | 436 | /* real 24 bit */ |
| 463 | break; | 437 | break; |
diff --git a/drivers/video/omap2/displays-new/connector-analog-tv.c b/drivers/video/omap2/displays-new/connector-analog-tv.c index 5338f362293b..1b60698f141e 100644 --- a/drivers/video/omap2/displays-new/connector-analog-tv.c +++ b/drivers/video/omap2/displays-new/connector-analog-tv.c | |||
| @@ -28,6 +28,20 @@ struct panel_drv_data { | |||
| 28 | bool invert_polarity; | 28 | bool invert_polarity; |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | static const struct omap_video_timings tvc_pal_timings = { | ||
| 32 | .x_res = 720, | ||
| 33 | .y_res = 574, | ||
| 34 | .pixel_clock = 13500, | ||
| 35 | .hsw = 64, | ||
| 36 | .hfp = 12, | ||
| 37 | .hbp = 68, | ||
| 38 | .vsw = 5, | ||
| 39 | .vfp = 5, | ||
| 40 | .vbp = 41, | ||
| 41 | |||
| 42 | .interlace = true, | ||
| 43 | }; | ||
| 44 | |||
| 31 | #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) | 45 | #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev) |
| 32 | 46 | ||
| 33 | static int tvc_connect(struct omap_dss_device *dssdev) | 47 | static int tvc_connect(struct omap_dss_device *dssdev) |
| @@ -212,14 +226,14 @@ static int tvc_probe(struct platform_device *pdev) | |||
| 212 | return -ENODEV; | 226 | return -ENODEV; |
| 213 | } | 227 | } |
| 214 | 228 | ||
| 215 | ddata->timings = omap_dss_pal_timings; | 229 | ddata->timings = tvc_pal_timings; |
| 216 | 230 | ||
| 217 | dssdev = &ddata->dssdev; | 231 | dssdev = &ddata->dssdev; |
| 218 | dssdev->driver = &tvc_driver; | 232 | dssdev->driver = &tvc_driver; |
| 219 | dssdev->dev = &pdev->dev; | 233 | dssdev->dev = &pdev->dev; |
| 220 | dssdev->type = OMAP_DISPLAY_TYPE_VENC; | 234 | dssdev->type = OMAP_DISPLAY_TYPE_VENC; |
| 221 | dssdev->owner = THIS_MODULE; | 235 | dssdev->owner = THIS_MODULE; |
| 222 | dssdev->panel.timings = omap_dss_pal_timings; | 236 | dssdev->panel.timings = tvc_pal_timings; |
| 223 | 237 | ||
| 224 | r = omapdss_register_display(dssdev); | 238 | r = omapdss_register_display(dssdev); |
| 225 | if (r) { | 239 | if (r) { |
