]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 3 Feb 2021 09:03:20 +0000 (10:03 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 3 Feb 2021 10:15:08 +0000 (11:15 +0100)
commit647d155e64ac35f0a1b76ee469d03b7baf4c1ee3
treeb41be46d34ca8efc0e5d4ff058b0a83aa6232c27
parenta9f3a01b5ad1ae0a10716c2fb23bb7a77237ec36
ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL

This reverts commit 90cc89adeea5b36c882ff5f31523408d904e28e9.

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 <alexandre.belloni@bootlin.com>
Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/r/20210203090320.GA3760268@piout.net'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/lpc32xx.dtsi