soc: arm: stm32h7: implement workaround for AXI SRAM data corruption
Errata ES0392 Rev 8: 2.2.9: Reading from AXI SRAM may lead to data read corruption Workaround: Set the READ_ISS_OVERRIDE bit in the AXI_TARG7_FN_MOD register. This is applicable only to RevY (REV_ID 0x1003) Fixes #38933 Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
parent
82ce5c57ef
commit
2d4b1b6cba
1 changed files with 10 additions and 0 deletions
|
@ -89,6 +89,16 @@ static int stm32h7_init(const struct device *arg)
|
|||
while (LL_PWR_IsActiveFlag_VOS() == 0) {
|
||||
}
|
||||
|
||||
/* Errata ES0392 Rev 8:
|
||||
* 2.2.9: Reading from AXI SRAM may lead to data read corruption
|
||||
* Workaround: Set the READ_ISS_OVERRIDE bit in the AXI_TARG7_FN_MOD
|
||||
* register.
|
||||
* Applicable only to RevY (REV_ID 0x1003)
|
||||
*/
|
||||
if (LL_DBGMCU_GetRevisionID() == 0x1003) {
|
||||
MODIFY_REG(GPV->AXI_TARG7_FN_MOD, 0x1, 0x1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue