summaryrefslogtreecommitdiff
path: root/arch/arm/mach-socfpga/spl.c
diff options
context:
space:
mode:
authorTien Fong Chee <tien.fong.chee@intel.com>2017-12-05 15:58:08 +0800
committerMarek Vasut <marex@denx.de>2018-05-18 10:30:47 +0200
commit011fa5f33dac4f5d7998cf7e9da904b5565691e5 (patch)
treec627accf6fb43f172d7dbe9df533a10a9305b08c /arch/arm/mach-socfpga/spl.c
parentc960ef29cd1bffccb84366cc6ca9c290cb3c36a0 (diff)
ARM: socfpga: Adding SoCFPGA info for both SPL and U-Boot
SoC FPGA info is required in both SPL and U-Boot. Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Diffstat (limited to 'arch/arm/mach-socfpga/spl.c')
-rw-r--r--arch/arm/mach-socfpga/spl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/spl.c b/arch/arm/mach-socfpga/spl.c
index 515832031ac..0c9d7388e68 100644
--- a/arch/arm/mach-socfpga/spl.c
+++ b/arch/arm/mach-socfpga/spl.c
@@ -14,6 +14,7 @@
#include <asm/arch/system_manager.h>
#include <asm/arch/freeze_controller.h>
#include <asm/arch/clock_manager.h>
+#include <asm/arch/misc.h>
#include <asm/arch/scan_manager.h>
#include <asm/arch/sdram.h>
#include <asm/arch/scu.h>
@@ -191,6 +192,11 @@ void spl_board_init(void)
/* enable console uart printing */
preloader_console_init();
+
+ WATCHDOG_RESET();
+
+ /* Add device descriptor to FPGA device table */
+ socfpga_fpga_add();
}
void board_init_f(ulong dummy)