stm32mp1: use a common function to check spinlock is available
authorYann Gautier <yann.gautier@st.com>
Wed, 22 May 2019 17:13:51 +0000 (19:13 +0200)
committerYann Gautier <yann.gautier@st.com>
Mon, 2 Sep 2019 15:51:57 +0000 (17:51 +0200)
commite463d3f43e0115fbafd7a17f7ba550fc8e9a2ae0
treea0336d26163c963895f97d81ce01a4b5e54837ab
parent6cb45f8984af596fc5460204e9be1d85de79cf5e
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>
drivers/st/bsec/bsec.c
drivers/st/clk/stm32mp1_clk.c
plat/st/common/include/stm32mp_common.h
plat/st/common/stm32mp_common.c