Skip to contentSkip to conversation

arm: socfpga: Unreset NAND in SPL

PATCH New Marek Vasut 1 participant 1 message Dec 19, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: Unreset NAND in SPL

If the system boots from NAND, make sure to de-assert the NAND IP reset, otherwise the system will get stuck.

---
 arch/arm/mach-socfpga/spl.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-socfpga/spl.c +1 -0
index 775a827..98c16a0 100644
@@ -40,6 +40,7 @@ u32 spl_boot_device(void)
 		return BOOT_DEVICE_RAM;
 	case 0x2:	/* NAND Flash (1.8V) */
 	case 0x3:	/* NAND Flash (3.0V) */
+		socfpga_per_reset(SOCFPGA_RESET(NAND), 0);
 		return BOOT_DEVICE_NAND;
 	case 0x4:	/* SD/MMC External Transceiver (1.8V) */
 	case 0x5:	/* SD/MMC Internal Transceiver (3.0V) */
Signature · 1 line
2.1.4