Skip to content
Snippets Groups Projects
Commit 7098be12 authored by Lionel Debieve's avatar Lionel Debieve Committed by Sebastien Pasdeloup
Browse files

stm32mp1: move the MCU security management to BL32


Change the MCKPROT control management. Now, the MCU subsystem
is done in the BL32 using the dedicated clock function.

Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
Change-Id: I59f90ace750aa93f674389f881e2fe14ad334a72
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/188431


Reviewed-by: default avatarCITOOLS <smet-aci-reviews@lists.codex.cro.st.com>
Reviewed-by: default avatarGabriel FERNANDEZ <gabriel.fernandez@st.com>
Reviewed-by: default avatarEtienne CARRIERE <etienne.carriere@st.com>
Reviewed-by: default avatarYann GAUTIER <yann.gautier@st.com>
parent e1cabb62
No related branches found
No related tags found
No related merge requests found
......@@ -380,9 +380,6 @@ void bl2_el3_plat_arch_setup(void)
mmio_clrbits_32(rcc_base + RCC_BDCR, RCC_BDCR_VSWRST);
}
/* Disable MCKPROT */
mmio_clrbits_32(rcc_base + RCC_TZCR, RCC_TZCR_MCKPROT);
/* Enable BKP Register protection */
mmio_write_32(TAMP_SMCR,
TAMP_BKP_SEC_NUMBER << TAMP_BKP_SEC_WDPROT_SHIFT |
......
......@@ -535,6 +535,9 @@ static void init_sec_peripherals(void)
uint32_t active_conf = 0;
int ret;
/* Disable MCU subsystem protection */
stm32mp1_clk_mcuss_protect(false);
/* Init rtc driver */
ret = stm32_rtc_init();
if (ret < 0) {
......
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