]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: socfpga: Unreset NAND in SPL on Gen5
authorMarek Vasut <marex@denx.de>
Wed, 20 Nov 2019 21:36:24 +0000 (22:36 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 25 Nov 2019 12:12:56 +0000 (13:12 +0100)
In case the SPL on Gen5 loads U-Boot from NAND, unreset the NAND IP
explicitly in the platform code as the denali-spl driver is not aware
of DM at all.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <chin.liang.see@intel.com>
Cc: Dalon Westergreen <dwesterg@gmail.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Cc: Tien Fong Chee <tien.fong.chee@intel.com>
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
arch/arm/mach-socfpga/spl_gen5.c

index 47e63709ad88dabd132cc0b94ab42d151ebfdf9b..408e4093754ab5638f707ffdf6af8ac2da811a27 100644 (file)
@@ -138,6 +138,13 @@ void board_init_f(ulong dummy)
        if (ret)
                debug("Reset init failed: %d\n", ret);
 
+#ifdef CONFIG_SPL_NAND_DENALI
+       struct socfpga_reset_manager *reset_manager_base =
+               (struct socfpga_reset_manager *)SOCFPGA_RSTMGR_ADDRESS;
+
+       clrbits_le32(&reset_manager_base->per_mod_reset, BIT(4));
+#endif
+
        /* enable console uart printing */
        preloader_console_init();