forked from luck/tmp_suning_uos_patched
fbdev fixes for 4.4
* OMAP: fix analog tv-out when using omapdrm * fsl: Fix kernel crash when diu_ops is not implemented -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJWcCqqAAoJEPo9qoy8lh71QZoP/0Rftvw/AYsFMFaOyJALIguI ou0PtZkAgAj5snmXcTcytTG7ifP1wyeJTh97SCStA8UmpbZ3o0DWkZrEMNM636Nv iUS/TjDeJRYHZc/KJhfLQA2M3rNCIHv9YbdptXWzBzk73bp3LvAnutp5I0J2wDT6 zQdvRlIj0BYTBFJIl5UXnm/yVUcD3bEO79ezuwWPQ0wELl5iLRzkS0QHMvEpBe1k u2+9iM7wz/6kk9jetrffbV6Jg0Pr3ASHR22Dzvq55RWAMZBhnOpcSpK9T6OyiByB fmt5jguAAmxYDkPEPGEhSHTUcznkK/1Wmy3xRmR+DwOcQ9yjUj2/ThlQD4tsdlYu +uF2lngXfi2ZK0dsYVStEL8KvoxVWIJEcqregjgEeBQ46t5OPgecd5YOpMNDa2v+ huHQpQ5ag7SBYl7EzaBTaO9gyxDJF9lupi1SvY3GRHugwkMqOQIT32lu2wtVTz59 h2h6y726Jtc1RedervwwmviaEa772ZQpUIEC7i0zsHazsBNaicb0CoxxsMXD+F5D 3BFsREZ+Bit/9f0Th540ar4EBlu2rFsqUspnJFWX15ITlIlbLc2cEqD+LeGnxlYL ims/iQYpznwwc0nICSBNMIDh+tzMDdgjG8P+IV0qnv8SHYgYc+ceMfERij+gGQrS e9grM4yFCWd51G8eu8/o =q7XP -----END PGP SIGNATURE----- Merge tag 'fbdev-fixes-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux Pull two fbdev fixes from Tomi Valkeinen: - OMAP: fix analog tv-out when using omapdrm - fsl: Fix kernel crash when diu_ops is not implemented * tag 'fbdev-fixes-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: OMAPDSS: fix timings for VENC to match what omapdrm expects video: fbdev: fsl: Fix kernel crash when diu_ops is not implemented
This commit is contained in:
commit
8c2b759efa
|
@ -479,7 +479,10 @@ static enum fsl_diu_monitor_port fsl_diu_name_to_port(const char *s)
|
|||
port = FSL_DIU_PORT_DLVDS;
|
||||
}
|
||||
|
||||
return diu_ops.valid_monitor_port(port);
|
||||
if (diu_ops.valid_monitor_port)
|
||||
port = diu_ops.valid_monitor_port(port);
|
||||
|
||||
return port;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1915,6 +1918,14 @@ static int __init fsl_diu_init(void)
|
|||
#else
|
||||
monitor_port = fsl_diu_name_to_port(monitor_string);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Must to verify set_pixel_clock. If not implement on platform,
|
||||
* then that means that there is no platform support for the DIU.
|
||||
*/
|
||||
if (!diu_ops.set_pixel_clock)
|
||||
return -ENODEV;
|
||||
|
||||
pr_info("Freescale Display Interface Unit (DIU) framebuffer driver\n");
|
||||
|
||||
#ifdef CONFIG_NOT_COHERENT_CACHE
|
||||
|
|
|
@ -275,6 +275,12 @@ const struct omap_video_timings omap_dss_pal_timings = {
|
|||
.vbp = 41,
|
||||
|
||||
.interlace = true,
|
||||
|
||||
.hsync_level = OMAPDSS_SIG_ACTIVE_LOW,
|
||||
.vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
|
||||
.data_pclk_edge = OMAPDSS_DRIVE_SIG_RISING_EDGE,
|
||||
.de_level = OMAPDSS_SIG_ACTIVE_HIGH,
|
||||
.sync_pclk_edge = OMAPDSS_DRIVE_SIG_FALLING_EDGE,
|
||||
};
|
||||
EXPORT_SYMBOL(omap_dss_pal_timings);
|
||||
|
||||
|
@ -290,6 +296,12 @@ const struct omap_video_timings omap_dss_ntsc_timings = {
|
|||
.vbp = 31,
|
||||
|
||||
.interlace = true,
|
||||
|
||||
.hsync_level = OMAPDSS_SIG_ACTIVE_LOW,
|
||||
.vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
|
||||
.data_pclk_edge = OMAPDSS_DRIVE_SIG_RISING_EDGE,
|
||||
.de_level = OMAPDSS_SIG_ACTIVE_HIGH,
|
||||
.sync_pclk_edge = OMAPDSS_DRIVE_SIG_FALLING_EDGE,
|
||||
};
|
||||
EXPORT_SYMBOL(omap_dss_ntsc_timings);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user