]> git.sur5r.net Git - u-boot/commitdiff
arm: socfpga: Unreset NAND in SPL
authorMarek Vasut <marex@denx.de>
Sun, 20 Dec 2015 03:00:42 +0000 (04:00 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 22 Dec 2015 20:30:02 +0000 (21:30 +0100)
If the system boots from NAND, make sure to de-assert the NAND IP
reset, otherwise the system will get stuck.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/mach-socfpga/spl.c

index 775a82780f7fb9b2aac63d859f829ca08f2c125f..98c16a000d83375b4b963511a802ab945a4f5c66 100644 (file)
@@ -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) */