]> git.baikalelectronics.ru Git - kernel.git/commit
clk: pistachio: Add sanity checks on PLL configuration
authorKevin Cernekee <cernekee@chromium.org>
Tue, 26 May 2015 22:01:09 +0000 (19:01 -0300)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 4 Jun 2015 19:43:39 +0000 (12:43 -0700)
commitf738e2054b7ca62a87c4616de6188399013c3c73
treec24c733c8b2d1eaffb88bfdcc2054669e73af989
parent087ca11789457536fad0d2b47174dc14c0625b71
clk: pistachio: Add sanity checks on PLL configuration

When setting the PLL rates, check that:

 - VCO is within range
 - PFD is within range
 - PLL is disabled when postdiv is changed
 - postdiv2 <= postdiv1

Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Kevin Cernekee <cernekee@chromium.org>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/pistachio/clk-pll.c