Error in stm32_tamp.c driver
Hello,
I just wanted to let you know there is an error in the tamper driver written for Tamper configuration in TF-A fork repository.
When enabling an external tamper in passive mode, the configuration is writting the passive mode in the wrong register, disabling the external tamper. This should be written in the atcr1 register but it is being written in the cr1 register.
if ((tamp_ext->mode & TAMP_ACTIVE) == TAMP_ACTIVE)
{
SETBITS(*cr1atcr1, _TAMP_ATCR1_ETAMPAM(id));
}
else
{
CLRBITS(*cr1atcr1, _TAMP_ATCR1_ETAMPAM(id));
}
PS: I am not sure this is the right place to put this kind of messages, where should I contact you if I find any other error/bug?
Best regards
