mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 22:35:42 +00:00
feat(stm32mp1): use clk_enable/disable functions
Use the clock framework functions in SYSCFG driver instead of dedicated functions. Change-Id: Ifb50a5207e8cecef1c80d86e2de4d70ab6bf8b8b Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
de02e9b0ec
commit
c7a66e720a
1 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <common/debug.h>
|
||||
#include <drivers/clk.h>
|
||||
#include <drivers/delay_timer.h>
|
||||
#include <drivers/st/bsec.h>
|
||||
#include <drivers/st/stpmic1.h>
|
||||
|
@ -138,7 +139,7 @@ void stm32mp1_syscfg_enable_io_compensation(void)
|
|||
* Warning: need to ensure CSI enabled and ready in clock driver.
|
||||
* Enable non-secure clock, we assume non-secure is suspended.
|
||||
*/
|
||||
stm32mp1_clk_enable_non_secure(SYSCFG);
|
||||
clk_enable(SYSCFG);
|
||||
|
||||
mmio_setbits_32(SYSCFG_BASE + SYSCFG_CMPENSETR,
|
||||
SYSCFG_CMPENSETR_MPU_EN);
|
||||
|
@ -183,5 +184,5 @@ void stm32mp1_syscfg_disable_io_compensation(void)
|
|||
|
||||
mmio_setbits_32(SYSCFG_BASE + SYSCFG_CMPENCLRR, SYSCFG_CMPENSETR_MPU_EN);
|
||||
|
||||
stm32mp1_clk_disable_non_secure(SYSCFG);
|
||||
clk_disable(SYSCFG);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue