]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
clk: pxa: b bit of clkcfg means fast bus
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sun, 23 Oct 2016 12:19:28 +0000 (14:19 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 2 Nov 2016 00:46:53 +0000 (17:46 -0700)
The meaning of this bit was inverted :
 - when set to 0, system bus clock is half of the CPU run clock
 - when set to 1, system bus clock is the CPU run clock

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/pxa/clk-pxa27x.c

index 3930053543a367804e881af0a1d2e9784846dbf0..3b36e8d0f81ef21fc052e06babd724ad033f2565 100644 (file)
@@ -291,9 +291,9 @@ static unsigned long clk_pxa27x_system_bus_get_rate(struct clk_hw *hw,
        if (osc_forced)
                return parent_rate;
        if (b)
-               return parent_rate / 2;
-       else
                return parent_rate;
+       else
+               return parent_rate / 2;
 }
 
 static u8 clk_pxa27x_system_bus_get_parent(struct clk_hw *hw)