u-boot/arch
Ye Li 64fe0ffca0 mx7ulp: Update wdog disable sequence
Update the mx7ulp wdog disable sequence to avoid potential reset
issue in unlock or refresh sequence. Both sequence need two words
write to wdog CNT register in 16 bus clocks window, if miss the
window, the write will cause violation in wdog and reset the chip.

Current u-boot code is using writel() function which has a DMB
barrier to order the memory access. The DMB between two words write
may introduce some delay in certain circumstance, causing the wdog
reset due to 16 bus clock window requirement.

Also, WDOG1 might have been enabled already depending on FUSE hence
we need to be as close as possible to its reconfiguration timing
requirement of 128 bus clock limit.

This patch replaces writel() function by __raw_writel() to avoid such
issue, and improve to check if watchdog is already disabled or
unlocked.

Signed-off-by: Ye Li <ye.li@nxp.com>
Co-developed-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Co-developed-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
2021-10-07 16:53:50 +02:00
..
arc WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
arm mx7ulp: Update wdog disable sequence 2021-10-07 16:53:50 +02:00
m68k WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
microblaze lmb: Switch to generic arch_lmb_reserve_generic() 2021-09-23 14:15:32 -04:00
mips WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
nds32 WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
nios2 lmb: nios2: Add arch_lmb_reserve() 2021-09-23 14:15:32 -04:00
powerpc Convert CONFIG_NAND_FSL_ELBC et al to Kconfig 2021-10-06 09:16:24 -04:00
riscv lmb: riscv: Add arch_lmb_reserve() 2021-09-23 14:15:32 -04:00
sandbox WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
sh WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
x86 WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
xtensa WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
.gitignore
Kconfig Prepare v2021.10-rc4 2021-09-16 10:29:40 -04:00
u-boot-elf.lds arch: Add explicit linker script for u-boot-elf 2020-04-03 11:52:55 -04:00