clk: bcm2835: Fix setting of PLL divider clock rates
authorEric Anholt <eric@anholt.net>
Tue, 16 Feb 2016 03:03:57 +0000 (19:03 -0800)
committerMichael Turquette <mturquette@baylibre.com>
Tue, 16 Feb 2016 20:30:07 +0000 (12:30 -0800)
commit773b3966dd3cdaeb68e7f2edfe5656abac1dc411
tree6edbff0b9df944573eb678d5cb040430063c5a6d
parent92e963f50fc74041b5e9e744c330dca48e04f08d
clk: bcm2835: Fix setting of PLL divider clock rates

Our dividers weren't being set successfully because CM_PASSWORD wasn't
included in the register write.  It looks easier to just compute the
divider to write ourselves than to update clk-divider for the ability
to OR in some arbitrary bits on write.

Fixes about half of the video modes on my HDMI monitor (everything
except 720x400).

Cc: stable@vger.kernel.org
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
drivers/clk/bcm/clk-bcm2835.c