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:
Etienne Carriere 2020-02-07 13:38:30 +01:00 committed by Yann Gautier
parent de02e9b0ec
commit c7a66e720a

View file

@ -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);
}