]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Thu, 21 Apr 2016 12:53:46 +0000 (06:53 -0600)
commit28d73507b5dd9dfd80dcaf95f3fc7a09d9f0f563
treec2850bccee2f869fc5ae9388bfae9334a61f0d78
parent6c5f1916f813f649a65b20dd09bd3d24632b97ca
clk: bcm2835: Fix setting of PLL divider clock rates

BugLink: http://bugs.launchpad.net/bugs/1572722
commit 773b3966dd3cdaeb68e7f2edfe5656abac1dc411 upstream.

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).

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/clk/bcm/clk-bcm2835.c