OSDN Git Service

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)
commit7bbdef2b4b77be09910b9ae71b27ee29a8cdad0c
tree3216dbab4368a5f7e0e53c49520530e2aec73626
parent1e90711d237fef7b3781706d8202304b1e646271
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