boards: arm: mimxrt595_evk_cm33: enable reboot support
The RT595 EVK needs the ROM to toggle the reset pin of the external flash chip during a warm reset, in order to make sure the flash is in a valid state. Add a write to the one time programmable shadow registers when CONFIG_REBOOT=y in order to make sure the ROM will toggle this pin. Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
6051823f6d
commit
67ca6e5f01
1 changed files with 13 additions and 0 deletions
|
@ -124,6 +124,19 @@ static int mimxrt595_evk_init(void)
|
|||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CONFIG_REBOOT
|
||||
/*
|
||||
* The sys_reboot API calls NVIC_SystemReset. On the RT595, the warm
|
||||
* reset will not complete correctly unless the ROM toggles the
|
||||
* flash reset pin. We can control this behavior using the OTP shadow
|
||||
* register for OPT word BOOT_CFG1
|
||||
*
|
||||
* Set FLEXSPI_RESET_PIN_ENABLE=1, FLEXSPI_RESET_PIN= PIO4_5
|
||||
*/
|
||||
OCOTP0->OTP_SHADOW[97] = 0x164000;
|
||||
#endif /* CONFIG_REBOOT */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue