| 6fb522de | 11-Aug-2025 |
Gabriel Fernandez <gabriel.fernandez@foss.st.com> |
fix(st-clock): prevent panic when external oscillator is absent
To deactivate the external oscillator, the frequency must be set to 0 in the device tree. The frequency check for 0 was implemented in
fix(st-clock): prevent panic when external oscillator is absent
To deactivate the external oscillator, the frequency must be set to 0 in the device tree. The frequency check for 0 was implemented in clk_stm32_osc_gate_enable() and clk_stm32_osc_gate_disable(), but missing in clk_stm32_osc_gate_is_enabled(). Since clk_stm32_osc_gate_is_enabled() is called by clk_enable() to verify if the clock is actually enabled, this fix prevents a panic when the oscillator is not present.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Change-Id: I90dc671f39bd46d0db19d7532aee9ec7b449ba9d
show more ...
|
| 1a25db19 | 02-Nov-2023 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(st-clock): use early traces
Replace trace macros with their corresponding EARLY_* macros.
Change-Id: I39b163964fa3129be38e58352b5dee9b4081675b Signed-off-by: Yann Gautier <yann.gautier@foss.st
feat(st-clock): use early traces
Replace trace macros with their corresponding EARLY_* macros.
Change-Id: I39b163964fa3129be38e58352b5dee9b4081675b Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| eca51034 | 30-Nov-2023 |
Christoph Fritz <chf@fritzc.com> |
fix(st-clock): adapt order of CSS on LSE and HSE
Fix the activation order of the CSS to prevent a faulty halt, according to the reference manual (RM0442 Rev 6, Chapter: 10.4.3 Clock security system
fix(st-clock): adapt order of CSS on LSE and HSE
Fix the activation order of the CSS to prevent a faulty halt, according to the reference manual (RM0442 Rev 6, Chapter: 10.4.3 Clock security system CSS) it must be done after selecting the LSE clock via the RTCSRC field. For the HSE clock, this can be activated even when HSEON is '0'.
Signed-off-by: Christoph Fritz <chf@fritzc.com> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Change-Id: Ied01baac1ccc63dcef78bf5f9180bb8628cce2d0
show more ...
|
| 3201497e | 21-Dec-2023 |
Yann Gautier <yann.gautier@foss.st.com> |
refactor(st-clock): remove unused struct
The struct clk_fixed_rate is used nowhere in the code, remove its definition.
Change-Id: I139ad05a249357da96a996feabd4b1f53e290f2a Signed-off-by: Yann Gauti
refactor(st-clock): remove unused struct
The struct clk_fixed_rate is used nowhere in the code, remove its definition.
Change-Id: I139ad05a249357da96a996feabd4b1f53e290f2a Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| 1be399b8 | 25-Oct-2023 |
Yann Gautier <yann.gautier@foss.st.com> |
refactor(st-clock): move stm32mp1_clk_rcc_regs_*lock
Those functions are only used on MP1, they should not be in STM32 clock core. Move them to MP13 driver (they are already in MP15 driver). Redefin
refactor(st-clock): move stm32mp1_clk_rcc_regs_*lock
Those functions are only used on MP1, they should not be in STM32 clock core. Move them to MP13 driver (they are already in MP15 driver). Redefine new clk_stm32_rcc_regs_*lock() functions in clock core. This change avoid sparse warning: drivers/st/clk/clk-stm32-core.c:46:6: warning: symbol 'stm32mp1_clk_rcc_regs_lock' was not declared. Should it be static? drivers/st/clk/clk-stm32-core.c:51:6: warning: symbol 'stm32mp1_clk_rcc_regs_unlock' was not declared. Should it be static?
Change-Id: I9f255acaa843e41fc14267c1a8091f93bd029796 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| d9a7ddeb | 21-Aug-2023 |
Gabriel Fernandez <gabriel.fernandez@foss.st.com> |
refactor(st-clock): driver size optimization
Re-ordering structures to avoid gaps and minimize data. Reduce type of gate_refcounts[], uint8_t is enough. Re-ordering structures to avoid gaps and mini
refactor(st-clock): driver size optimization
Re-ordering structures to avoid gaps and minimize data. Reduce type of gate_refcounts[], uint8_t is enough. Re-ordering structures to avoid gaps and minimize data. Use an unsigned char to define a clock ops type.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Change-Id: I6b793dc34abdd6ef013609fc0f122da5d1824a34
show more ...
|
| 698bba5e | 11-Jan-2023 |
Yann Gautier <yann.gautier@st.com> |
refactor(st-clock): remove BL32 support on STM32MP13
TF-A BL32 (SP_MIN) is not supported on STM32MP13. Only OP-TEE is used as BL32. Remove the code under IMAGE_BL32 flag in STM32MP13 driver.
Signed
refactor(st-clock): remove BL32 support on STM32MP13
TF-A BL32 (SP_MIN) is not supported on STM32MP13. Only OP-TEE is used as BL32. Remove the code under IMAGE_BL32 flag in STM32MP13 driver.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I6cc9f230782c44129b205e66a44cdb4bcb5f95c3
show more ...
|
| f6559227 | 12-Sep-2022 |
Yann Gautier <yann.gautier@st.com> |
feat(stm32mp1): always boot at 650MHz
Switching to higher CPU frequencies requires a dedicated chip version (STM32MP1xxD or STM32MP1xxF), and increase CPU voltage. To avoid re-configuring I2C and PM
feat(stm32mp1): always boot at 650MHz
Switching to higher CPU frequencies requires a dedicated chip version (STM32MP1xxD or STM32MP1xxF), and increase CPU voltage. To avoid re-configuring I2C and PMIC before and after applying clock tree, always boot at 650MHz, which is the frequency for nominal voltage.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: Id05a3ee17e7dd57e2d64dc06f8f1e7f9cb21e110
show more ...
|
| 6583da67 | 24-Apr-2024 |
Gabriel Fernandez <gabriel.fernandez@foss.st.com> |
refactor(st-clock): remove LSEDRV_MEDIUM_HIGH for STM32MP13
Remove useless LSEDRV_MEDIUM_HIGH definition in clk-stm32mp13.c. It's already defined in include/dt-bindings/clock/stm32mp13-clksrc.h.
Si
refactor(st-clock): remove LSEDRV_MEDIUM_HIGH for STM32MP13
Remove useless LSEDRV_MEDIUM_HIGH definition in clk-stm32mp13.c. It's already defined in include/dt-bindings/clock/stm32mp13-clksrc.h.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com> Change-Id: Ie3fa4711930f922fa0733ba7c76d72ec9639e9a5
show more ...
|
| 039b7d46 | 22-May-2024 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
fix(st-clock): display proper PLL number for STM32MP13
The PLL clk_id does not start at 0, but it is in the enum listing all clocks. To have a better display of the PLL number, start at PLL1, by cha
fix(st-clock): display proper PLL number for STM32MP13
The PLL clk_id does not start at 0, but it is in the enum listing all clocks. To have a better display of the PLL number, start at PLL1, by changing pll->clk_id in messages with pll->clk_id - _CK_PLL1 + 1.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: Ic09195ae6fe5f8d3a87e69962425f7c826f3670b
show more ...
|
| f4a2bb98 | 21-Mar-2022 |
Yann Gautier <yann.gautier@foss.st.com> |
fix(st-clock): do not reconfigure LSE
If LSE oscillator is already ON, which is the case when returning from low-power state or if we are on VBAT, it mustn't be reconfigured.
Signed-off-by: Yann Ga
fix(st-clock): do not reconfigure LSE
If LSE oscillator is already ON, which is the case when returning from low-power state or if we are on VBAT, it mustn't be reconfigured.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: Ie75f2b0b42aeb3d95e2266e1fca811a2f2b3e29f
show more ...
|
| caa12957 | 11-Oct-2023 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
refactor(st-clock): remove unused clk function in API
Remove the unused functions in stm32mp clk API: - stm32mp_stgen_get_counter (change to static, no more exported) - stm32mp_stgen_restore_counter
refactor(st-clock): remove unused clk function in API
Remove the unused functions in stm32mp clk API: - stm32mp_stgen_get_counter (change to static, no more exported) - stm32mp_stgen_restore_counter
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: Ib6ca72723eac3e133f1ca0dee504ef344c72e0bf
show more ...
|
| 3b3a9afd | 11-Oct-2023 |
Patrick Delaunay <patrick.delaunay@foss.st.com> |
refactor(st-clock): support deactivated STGEN in stm32mp_stgen_config
Update function stm32mp_stgen_config() to support deactivated STGEN when frequency is 0, for example on STOP2 exit for STM32MP25
refactor(st-clock): support deactivated STGEN in stm32mp_stgen_config
Update function stm32mp_stgen_config() to support deactivated STGEN when frequency is 0, for example on STOP2 exit for STM32MP25.
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Change-Id: Id371c4602a614bbfa0ecc7ce2d2e0ac5261e1d52
show more ...
|
| 19c38081 | 13-Jun-2023 |
Yann Gautier <yann.gautier@foss.st.com> |
feat(st-clock): stub fdt_get_rcc_secure_state
The function fdt_get_rcc_secure_state() is only used in BL32. Put it under flag to avoid compilation errors.
Signed-off-by: Yann Gautier <yann.gautier@
feat(st-clock): stub fdt_get_rcc_secure_state
The function fdt_get_rcc_secure_state() is only used in BL32. Put it under flag to avoid compilation errors.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: If57c65bef0b1a3f7349527720f94fde26edbb73c
show more ...
|