]> Git Repo - linux.git/commitdiff
ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL
authorAlexandre Belloni <[email protected]>
Wed, 3 Feb 2021 09:03:20 +0000 (10:03 +0100)
committerArnd Bergmann <[email protected]>
Wed, 3 Feb 2021 10:15:08 +0000 (11:15 +0100)
This reverts commit c17e9377aa81664d94b4f2102559fcf2a01ec8e7.

The lpc32xx clock driver is not able to actually change the PLL rate as
this would require reparenting ARM_CLK, DDRAM_CLK, PERIPH_CLK to SYSCLK,
then stop the PLL, update the register, restart the PLL and wait for the
PLL to lock and finally reparent ARM_CLK, DDRAM_CLK, PERIPH_CLK to HCLK
PLL.

Currently, the HCLK driver simply updates the registers but this has no
real effect and all the clock rate calculation end up being wrong. This is
especially annoying for the peripheral (e.g. UARTs, I2C, SPI).

Signed-off-by: Alexandre Belloni <[email protected]>
Tested-by: Gregory CLEMENT <[email protected]>
Link: https://lore.kernel.org/r/[email protected]'
Signed-off-by: Arnd Bergmann <[email protected]>
arch/arm/boot/dts/lpc32xx.dtsi

index 3a5cfb0ddb20ae691b38ceb1b2a3d1ac44a45a22..c87066d6c9950c51fce95b6681379eb446bfcf2f 100644 (file)
 
                                        clocks = <&xtal_32k>, <&xtal>;
                                        clock-names = "xtal_32k", "xtal";
-
-                                       assigned-clocks = <&clk LPC32XX_CLK_HCLK_PLL>;
-                                       assigned-clock-rates = <208000000>;
                                };
                        };
 
This page took 0.061654 seconds and 4 git commands to generate.