drm: rcar-du: Rework clock configuration based on hardware limits
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 27 Jul 2018 12:29:08 +0000 (15:29 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 15 Sep 2018 14:28:25 +0000 (17:28 +0300)
commit7281e6c6a5bdbde9cae6eb3c6d2bf2706b94807d
tree5114d21f48e482d03abfddfeaeaccb54294060d9
parentc6e3194a3b55a9365e40c3a25f8e31afa154c26c
drm: rcar-du: Rework clock configuration based on hardware limits

The DU channels that have a display PLL (DPLL) can only use external
clock sources, and don't have an internal clock divider (with the
exception of H3 ES1.x where the post-divider is present and needs to be
used as a workaround for a DPLL silicon issue).

Rework the clock configuration to take this into account, avoiding
selection of non-existing clock sources or usage of a missing
post-divider.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
drivers/gpu/drm/rcar-du/rcar_du_crtc.c