clk: bcm2835: Skip PLLC clocks when deciding on a new clock parent
authorEric Anholt <eric@anholt.net>
Wed, 1 Jun 2016 19:05:36 +0000 (12:05 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 7 Sep 2016 15:57:44 +0000 (08:57 -0700)
commit67615c588a059b731df9d019edc3c561d8006ec9
tree8451bec87070b3d25d439bab286799242cca56de
parent9e400c5cc5c105e35216ac59a346f20cdd7613be
clk: bcm2835: Skip PLLC clocks when deciding on a new clock parent

If the firmware had set up a clock to source from PLLC, go along with
it.  But if we're looking for a new parent, we don't want to switch it
to PLLC because the firmware will force PLLC (and thus the AXI bus
clock) to different frequencies during over-temp/under-voltage,
without notification to Linux.

On my system, this moves the Linux-enabled HDMI state machine and DSI1
escape clock over to plld_per from pllc_per.  EMMC still ends up on
pllc_per, because the firmware had set it up to use that.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 41691b8862e2 ("clk: bcm2835: Add support for programming the audio domain clocks")
Acked-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/bcm/clk-bcm2835.c