stm32mp1: use a common function to check spinlock is available
To use spinlocks, MMU should be enabled, as well as data cache.
A common function is created (moved from clock file).
It is then used whenever a spinlock has to be taken, in BSEC and clock
drivers.

Change-Id: I94baed0114a2061ad71bd5287a91bf7f1c6821f6
Signed-off-by: Yann Gautier <yann.gautier@st.com>
1 parent 6cb45f8 commit e463d3f43e0115fbafd7a17f7ba550fc8e9a2ae0
@Yann Gautier Yann Gautier authored on 22 May 2019
Showing 4 changed files
View
drivers/st/bsec/bsec.c
View
drivers/st/clk/stm32mp1_clk.c
View
plat/st/common/include/stm32mp_common.h
View
plat/st/common/stm32mp_common.c