]> git.dujemihanovic.xyz Git - u-boot.git/commit
memory: ti-gpmc: Fix lock up at A53 SPL during NAND boot on AM64-EVM
authorRoger Quadros <rogerq@kernel.org>
Tue, 6 Feb 2024 14:02:51 +0000 (16:02 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 13 Feb 2024 20:38:11 +0000 (15:38 -0500)
commitef473d541d8a5453ce66b3c72f7e5577a7ea6aff
treef67c5628a47c554be7febb6518114443219a3cb3
parentb12883fc38adca78800f7a60f3f2f3053635d598
memory: ti-gpmc: Fix lock up at A53 SPL during NAND boot on AM64-EVM

AM64 ES2.0 bootrom seems to enable WAIT0EDGEDETECTION interrupt.
This causes a lockup at A53 SPL when accessing NAND controller
or ELM registers.

A good option would be to softrest GPMC block at probe
but this cannot be done for AM64 as SOFTRESET bit is marked
as reserved in SYSCONFIG register.

Fix the issue by disabling all IRQs at probe.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
drivers/memory/ti-gpmc.c