Skip to content
Commit aaa09b71 authored by Yann Gautier's avatar Yann Gautier
Browse files

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's avatarEtienne Carriere <etienne.carriere@st.com>
Signed-off-by: default avatarYann Gautier <yann.gautier@st.com>
parent e1bfbf8a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment