]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: improve DPI clock selection on DRA7xx
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 10 Aug 2016 08:04:29 +0000 (11:04 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Apr 2017 09:36:40 +0000 (12:36 +0300)
commit5e5358e2826d2de71da4c54bb91d7170aedf4032
tree3216dbab4368a5f7e0e53c49520530e2aec73626
parentc36aae8cebd20c0ebf46e467e427fec47c34d6c7
drm/omap: improve DPI clock selection on DRA7xx

The clock source selection for the LCD outputs is too hardcoded at the
moment. For example, LCD3 is set to use PLL2_1, and PLL2 doesn't exist
on DRA72x SoCs.

There are quite many ways to configure the clocks, even using HDMI PLL
for LCD outputs, but enabling full configuration of the clocks is rather
tricky.

This patch improves the situation a bit by checking if the PLL about to
be used exists, and if not, tries another one.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/dpi.c