]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clk: bcm2835: Mark the CM SDRAM clock's parent as critical
authorEric Anholt <eric@anholt.net>
Wed, 1 Jun 2016 19:05:35 +0000 (12:05 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 7 Sep 2016 15:57:35 +0000 (08:57 -0700)
commit9e400c5cc5c105e35216ac59a346f20cdd7613be
treec47c237bebbf70d1cf67fab3f689e43da1bb5513
parenteddcbe8398fc7103fccd22aa6df6917caf0123bf
clk: bcm2835: Mark the CM SDRAM clock's parent as critical

While the SDRAM is being driven by its dedicated PLL most of the time,
there is a little loop running in the firmware that periodically turns
on the CM SDRAM clock (using its pre-initialized parent) and switches
SDRAM to using the CM clock to do PVT recalibration.

This avoids system hangs if we choose SDRAM's parent for some other
clock, then disable that clock.

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