[PATCH 0/2] ARM: at91: sama7g5: Reset external devices at software reset

Tudor Ambarus tudor.ambarus at microchip.com
Fri Feb 25 09:13:55 CET 2022


This fixes the following:
=> sf probe
SF: Detected mx66lm1g45g with page size 256 Bytes, erase size 4 KiB, total 128 MiB
=> reset
resetting ...
RomBOOT

What happened is that in u-boot the mx66lm1g45g NOR flash enters in Octal
DTR mode. The user reset calls do_reset() method which does not call any
driver's remove method, but merely resets the CPU. The flash remains in
Octal DTR mode and RomCode can't recognize it, thus the boot will fail.
More details in the commit messages.

Tested after software reset the mx66lm1g45g NOR flash, but also GMAC0/1,
all went fine.

Tudor Ambarus (2):
  configs: Convert AT91RESET_EXTRST to Kconfig
  ARM: at91: sama7g5: Reset external devices at software reset

 arch/arm/mach-at91/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.25.1



More information about the U-Boot mailing list