diff mbox series

[U-Boot,4/4] stm32mp1: change STGEN clock source to HSE

Message ID 1521542486-4827-4-git-send-email-patrick.delaunay@st.com
State Accepted
Commit b90f0e7c37f30868786e560fed80e487b39b3761
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/4] arm: timer: get frequency for arch timer armv7 in cp15 cntfrq | expand

Commit Message

Patrick DELAUNAY March 20, 2018, 10:41 a.m. UTC
No more use static frequency HSI = 64MHz for STGEN clock
but HSE (with higher accurency) by default.

Need to remove CONFIG_SYS_HZ_CLOCK as arch timer frequency
is provided at boot by BootRom and cp15 cntfrq and modified
during clock tree initialization if needed.

When HSI is no more used by any device, this internal
oscillator can be switched off to reduce consumption.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi | 1 +
 include/configs/stm32mp1.h               | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini April 7, 2018, 1:25 p.m. UTC | #1
On Tue, Mar 20, 2018 at 11:41:26AM +0100, Patrick Delaunay wrote:

> No more use static frequency HSI = 64MHz for STGEN clock
> but HSE (with higher accurency) by default.
> 
> Need to remove CONFIG_SYS_HZ_CLOCK as arch timer frequency
> is provided at boot by BootRom and cp15 cntfrq and modified
> during clock tree initialization if needed.
> 
> When HSI is no more used by any device, this internal
> oscillator can be switched off to reduce consumption.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi b/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
index 5d43753..2caa939 100644
--- a/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
+++ b/arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
@@ -76,6 +76,7 @@ 
 	st,pkcs = <
 		CLK_CKPER_DISABLED
 		CLK_SDMMC12_PLL3R
+		CLK_STGEN_HSE
 		CLK_I2C46_PCLK5
 		CLK_I2C12_PCLK1
 		CLK_SDMMC3_PLL3R
diff --git a/include/configs/stm32mp1.h b/include/configs/stm32mp1.h
index 8159101..da0e259 100644
--- a/include/configs/stm32mp1.h
+++ b/include/configs/stm32mp1.h
@@ -18,7 +18,6 @@ 
  */
 #define CONFIG_SYS_HZ				1000
 #define CONFIG_SYS_ARCH_TIMER
-#define CONFIG_SYS_HZ_CLOCK			64000000
 
 /*
  * malloc() pool size