]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17ba60ceae007a6bf2afbbfbf77147ec2bab6553
tree5114d21f48e482d03abfddfeaeaccb54294060d9
parentd7b6772fbdce43741e53f333a37ef5dc3e97658d
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