]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stm32mp1: change STGEN clock source to HSE
authorPatrick Delaunay <patrick.delaunay@st.com>
Tue, 20 Mar 2018 10:41:26 +0000 (11:41 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 7 Apr 2018 00:45:28 +0000 (20:45 -0400)
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
include/configs/stm32mp1.h

index 5d43753804523606f7ea5ba4ed802049c106e6e4..2caa939760d546c38b65736c6a4cd92055933b5e 100644 (file)
@@ -76,6 +76,7 @@
        st,pkcs = <
                CLK_CKPER_DISABLED
                CLK_SDMMC12_PLL3R
+               CLK_STGEN_HSE
                CLK_I2C46_PCLK5
                CLK_I2C12_PCLK1
                CLK_SDMMC3_PLL3R
index 815910128e55cfb7aa5427086a1e7dfb815ef568..da0e259736a6bec9538699c255adb9cd10a3e22b 100644 (file)
@@ -18,7 +18,6 @@
  */
 #define CONFIG_SYS_HZ                          1000
 #define CONFIG_SYS_ARCH_TIMER
-#define CONFIG_SYS_HZ_CLOCK                    64000000
 
 /*
  * malloc() pool size