| 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 ...
|
| 9cd784db | 01-Feb-2023 |
Yann Gautier <yann.gautier@foss.st.com> |
refactor(st): update test for closed chip
The function stm32mp_is_closed_device() is replaced with stm32mp_check_closed_device(), which return an uint32_t, either STM32MP_CHIP_SEC_OPEN or STM32MP_CH
refactor(st): update test for closed chip
The function stm32mp_is_closed_device() is replaced with stm32mp_check_closed_device(), which return an uint32_t, either STM32MP_CHIP_SEC_OPEN or STM32MP_CHIP_SEC_CLOSED.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: Ie0790cdc36c4b6522083bc1f0e7c38e8061e6adf
show more ...
|
| 379d77b3 | 10-Jan-2023 |
Yann Gautier <yann.gautier@foss.st.com> |
fix(st-crypto): use GENMASK_32 to define PKA registers masks
When compiling the driver in aarch64, and with LOG_LEVEL_VERBOSE, there is a compilation error on the message displaying the version of t
fix(st-crypto): use GENMASK_32 to define PKA registers masks
When compiling the driver in aarch64, and with LOG_LEVEL_VERBOSE, there is a compilation error on the message displaying the version of the peripheral. The masks are making the variable unsigned long, whereas we want to display an unsigned int. As the registers are 32-bit, we should use GENMASK_32 instead of GENMASK.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I002dd5ad901f68a9480f758eaaa4428f969813c1
show more ...
|