clk: bcm2835: Clamp the PLL's requested rate to the hardware limits.
authorEric Anholt <eric@anholt.net>
Fri, 30 Sep 2016 17:07:27 +0000 (10:07 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 17 Oct 2016 22:34:36 +0000 (15:34 -0700)
commitc4e634ce412d97f0e61223b2a5b3f8f9600cd4dc
tree6a6496905df153f26dae703b28b82d907885bee5
parent1c7032258d568f9a7aeb4c541786699d9a219a2a
clk: bcm2835: Clamp the PLL's requested rate to the hardware limits.

Fixes setting low-resolution video modes on HDMI.  Now the PLLH_PIX
divider adjusts itself until the PLLH is within bounds.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/bcm/clk-bcm2835.c