diff options
author | Marek Vasut <marex@denx.de> | 2015-12-20 04:00:42 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-12-22 21:30:02 +0100 |
commit | ac242e16258c943f6d2e0dd10898e4cc6a6339ca (patch) | |
tree | 0441067accd04fb606bf5567d60f266dae9e6e0f /arch/arm/mach-socfpga/spl.c | |
parent | f2f3782eadc7a958b0d33e9746640b874b5eefcc (diff) | |
download | u-boot-ac242e16258c943f6d2e0dd10898e4cc6a6339ca.tar.gz u-boot-ac242e16258c943f6d2e0dd10898e4cc6a6339ca.tar.xz u-boot-ac242e16258c943f6d2e0dd10898e4cc6a6339ca.zip |
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.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Diffstat (limited to 'arch/arm/mach-socfpga/spl.c')
-rw-r--r-- | arch/arm/mach-socfpga/spl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/spl.c b/arch/arm/mach-socfpga/spl.c index 775a82780f..98c16a000d 100644 --- a/arch/arm/mach-socfpga/spl.c +++ b/arch/arm/mach-socfpga/spl.c @@ -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) */ |