| 4198fa1d | 25-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): avoid arithmetics on pointers
This corrects MISRA C2012-18.4: The +, -, += and -= operators should not be applied to an expression of pointer type.
Signed-off-by: Yann Gautier <yann.
fix(st-clock): avoid arithmetics on pointers
This corrects MISRA C2012-18.4: The +, -, += and -= operators should not be applied to an expression of pointer type.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I9128f567a7c83d8e3381428b07e6bd785be2703b
show more ...
|
| ee21709e | 25-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): give the size for parent_mp13 and dividers_mp13 tables
This corrects MISRA C2012-9.5: Where designated initializers are used to initialize an array object the size of the array shall
fix(st-clock): give the size for parent_mp13 and dividers_mp13 tables
This corrects MISRA C2012-9.5: Where designated initializers are used to initialize an array object the size of the array shall be specified explicitly.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I4c331b0225af975fd022ffe9e5fd1d536ed59879
show more ...
|
| 69a2e320 | 25-Nov-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): remove useless switch
This corrects MISRA C2012-16.6: Every switch statement shall have at least two switch-clauses. While at it, remove useless rate variable.
Signed-off-by: Yann Ga
fix(st-clock): remove useless switch
This corrects MISRA C2012-16.6: Every switch statement shall have at least two switch-clauses. While at it, remove useless rate variable.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: I123784e7184dbf4146fd0d7faeffd6a0382fc6a1
show more ...
|
| 3ff1ff40 | 21-Jun-2022 |
Gabriel Fernandez <gabriel.fernandez@foss.st.com> |
refactor(st-clock): code size optimization
Clock name is not used and can be removed for code size optimization.
Change-Id: I75f6a1828e4374004e31a7ce13fa6885c52bbac3 Signed-off-by: Gabriel Fernande
refactor(st-clock): code size optimization
Clock name is not used and can be removed for code size optimization.
Change-Id: I75f6a1828e4374004e31a7ce13fa6885c52bbac3 Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
show more ...
|
| 56f895ed | 21-Jun-2022 |
Yann Gautier <yann.gautier@st.com> |
fix(st-clock): correct MISRA C2012 15.6
Add braces to correct MISRA C2012 15.6 warning: The body of an iteration-statement or a selection-statement shall be a compound-statement.
Signed-off-by: Yan
fix(st-clock): correct MISRA C2012 15.6
Add braces to correct MISRA C2012 15.6 warning: The body of an iteration-statement or a selection-statement shall be a compound-statement.
Signed-off-by: Yann Gautier <yann.gautier@st.com> Change-Id: If26f3732d31df11bf389a16298ec9e9d8a4a2279
show more ...
|
| 7417cda6 | 05-Apr-2022 |
Yann Gautier <yann.gautier@foss.st.com> |
fix(st-clock): correct stm32_clk_parse_fdt_by_name
The fdt_getprop() function sets the length to -1 if the property is not found. We should then not use it later in stm32_clk_parse_fdt_by_name() in
fix(st-clock): correct stm32_clk_parse_fdt_by_name
The fdt_getprop() function sets the length to -1 if the property is not found. We should then not use it later in stm32_clk_parse_fdt_by_name() in that case. Directly set *nb to 0U and return 0 if the property is not found.
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I19c5c953f392cdc768e0b1f3f240fc99a73a049c
show more ...
|
| 591d80c8 | 04-Dec-2019 |
Lionel Debieve <lionel.debieve@st.com> |
refactor(st-clock): update STGEN management
Rework STGEN config function, and move it to stm32mp_clkfunc.c file.
Change-Id: I7784a79c486d1b8811f6f8d123e49ea34899e9b6 Signed-off-by: Lionel Debieve <
refactor(st-clock): update STGEN management
Rework STGEN config function, and move it to stm32mp_clkfunc.c file.
Change-Id: I7784a79c486d1b8811f6f8d123e49ea34899e9b6 Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 7418cf39 | 17-Jan-2020 |
Yann Gautier <yann.gautier@st.com> |
feat(st-clock): assign clocks to the correct BL
Some clocks are only required in BL2, like boot devices clocks: FMC, QSPI. Some clocks are only used in BL32: Timers, devices that need special care f
feat(st-clock): assign clocks to the correct BL
Some clocks are only required in BL2, like boot devices clocks: FMC, QSPI. Some clocks are only used in BL32: Timers, devices that need special care for independent reset.
Change-Id: Id4ba99afeea5095f419a86f7dc6423192c628d82 Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 3d69149a | 27-Oct-2021 |
Yann Gautier <yann.gautier@st.com> |
feat(st-clock): do not refcount on non-secure clocks in bl32
This change removes reference counting support in clock gating implementation for clocks that rely on non-secure only RCC resources. As R
feat(st-clock): do not refcount on non-secure clocks in bl32
This change removes reference counting support in clock gating implementation for clocks that rely on non-secure only RCC resources. As RCC registers are accessed straight by non-secure world for these clocks, secure world cannot safely store the clock state and even disabling such clock from secure world can jeopardize the non-secure world clock management framework and drivers.
As a consequence, for such clocks, stm32_clock_enable() forces the clock ON without any increment of a refcount and stm32_clock_disable() does not disable the clock.
Change-Id: I0cc159b36a25dbc8676f05edf2668ae63c640537 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
show more ...
|
| aaa09b71 | 27-Oct-2021 |
Yann Gautier <yann.gautier@st.com> |
feat(st-clock): define secure and non-secure gate clocks
Array stm32mp1_clk_gate[] defines the clock resources. This change add a secure attribute to the clock: secure upon RCC[TZEN] (SEC), secure u
feat(st-clock): define secure and non-secure gate clocks
Array stm32mp1_clk_gate[] defines the clock resources. This change add a secure attribute to the clock: secure upon RCC[TZEN] (SEC), secure upon RCC[TZEN] and RCC[MCKPROT] (MKP) or always accessible from non-secure (N_S).
At init, lookup clock tree to check if any of the secure clocks is derived from PLL3 in which case PLL3 shall be secure.
Note that this change does not grow byte size of stm32mp1_clk_gate[].
Change-Id: I933d8a30007f3c72f755aa1ef6d7e6bcfabbfa9e Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com>
show more ...
|
| 44fb470b | 07-Sep-2021 |
Yann Gautier <yann.gautier@foss.st.com> |
fix(st-clock): correct types in error messages
Replace wrong %d with the correct types. This issue was found with the compilation flag: -Wformat-signedness
Change-Id: Iec3817a245f964ce444b59561b777
fix(st-clock): correct types in error messages
Replace wrong %d with the correct types. This issue was found with the compilation flag: -Wformat-signedness
Change-Id: Iec3817a245f964ce444b59561b777ce06c51a60a Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
show more ...
|
| b208e3da | 15-May-2020 |
Gabriel Fernandez <gabriel.fernandez@st.com> |
refactor(st-clock): directly use oscillator name
Instead of transmitting an 'enum stm32mp_osc_id', just send directly the clock name with a 'const char *'
Change-Id: I866b05cbb1685a9b9f80e63dcd5ba7
refactor(st-clock): directly use oscillator name
Instead of transmitting an 'enum stm32mp_osc_id', just send directly the clock name with a 'const char *'
Change-Id: I866b05cbb1685a9b9f80e63dcd5ba7b1d35fc932 Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
show more ...
|
| 31e9750b | 02-Jul-2019 |
Lionel Debieve <lionel.debieve@st.com> |
feat(st-clock): check HSE configuration in serial boot
In case of programmer mode, the bootrom manages to auto-detect HSE clock configuration. In order to detect a bad device tree setting in BL2, it
feat(st-clock): check HSE configuration in serial boot
In case of programmer mode, the bootrom manages to auto-detect HSE clock configuration. In order to detect a bad device tree setting in BL2, it will crash during programming if the configuration is not aligned with the auto-detection.
Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Change-Id: I230697695745d6282d14b1ebfa6e4c4caa0cd8e2
show more ...
|
| bcccdacc | 01-Jul-2019 |
Patrick Delaunay <patrick.delaunay@st.com> |
feat(st-clock): manage disabled oscillator
Support "disabled" status for oscillator in device tree.
At boot time, the clock tree initialization performs the following tasks: - enabling of the oscil
feat(st-clock): manage disabled oscillator
Support "disabled" status for oscillator in device tree.
At boot time, the clock tree initialization performs the following tasks: - enabling of the oscillators present in the device tree and not disabled, - disabling of the HSI oscillator if the node is absent or disabled (always activated by bootROM).
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Change-Id: I176276022334f3d97ba0250b54062f0ae970e239
show more ...
|