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

stm32mp1: call system reset in case of tamper


Rather that a CPU reset, tamper must call the system
reset to restart from a clean environment.

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


Reviewed-by: default avatarCITOOLS <smet-aci-reviews@lists.codex.cro.st.com>
Reviewed-by: default avatarYann GAUTIER <yann.gautier@st.com>
parent 47d53dc2
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@
#include <drivers/st/stm32_timer.h>
#include <drivers/st/stm32mp_clkfunc.h>
#include <drivers/st/stm32mp_pmic.h>
#include <drivers/st/stm32mp_reset.h>
#include <drivers/st/stm32mp1_clk.h>
#include <drivers/st/stm32mp1_ddr_helpers.h>
#include <drivers/st/stpmic1.h>
......@@ -116,7 +117,7 @@ static void stm32_sgi1_it_handler(void)
static void stm32mp1_tamper_action(int id)
{
ERROR("Tamper %s occurs\n", tamper_name[id]);
stm32mp_plat_reset(plat_my_core_pos());
stm32mp_system_reset();
}
static void configure_wakeup_interrupt(void)
......
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