]> git.sur5r.net Git - u-boot/commit
am335x-fb: setup display PLL
authorHannes Schmelzer <oe5hpm@oevsv.at>
Tue, 9 Jan 2018 18:01:34 +0000 (19:01 +0100)
committerAnatolij Gustschin <agust@denx.de>
Thu, 11 Jan 2018 14:19:12 +0000 (15:19 +0100)
commit8a094f508c4576626cdcc1b5a7513066180cd798
treefdc702896a5f0b811449b206bf5bdcb807143a81
parent0d8a7d6fa8b09f940b2087b3bc5696b59dd049df
am335x-fb: setup display PLL

The LCDC IP-core an be feed from several clock sources, one of those is
a dedicated DPLL for generating a dividable base-clock for this IP-core.

The TRM specifies the maximum input frequency for the LCCD with 200 MHz,
so we must not exceed this value with the PLL frequency (which can lock
much higher).

This patch tries every combination of multipliers and divisors of the
PLL and the IP-core itself for getting as near as possible the the
requested panel->pxl_clk.

Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
drivers/video/am335x-fb.c
drivers/video/am335x-fb.h