]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
microblaze: Do not handle watchdog and gpio in SPL
authorMichal Simek <michal.simek@xilinx.com>
Wed, 9 Dec 2015 10:53:25 +0000 (11:53 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 18 Dec 2015 12:15:58 +0000 (13:15 +0100)
watchdog and gpio are not validated for SPL that's why do not use them.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/microblaze-generic/microblaze-generic.c
include/configs/microblaze-generic.h

index bc4d6414df2db81650493aa65e80f95e64813794..dfa6293222236ad2f01ff3a81e80dc85ad03ce24 100644 (file)
@@ -69,6 +69,7 @@ int dram_init(void)
 
 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
+#ifndef CONFIG_SPL_BUILD
 #ifdef CONFIG_XILINX_GPIO
        if (reset_pin != -1)
                gpio_direction_output(reset_pin, 1);
@@ -77,7 +78,7 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 #ifdef CONFIG_XILINX_TB_WATCHDOG
        hw_watchdog_disable();
 #endif
-
+#endif
        puts ("Reseting board\n");
        __asm__ __volatile__ (" mts rmsr, r0;" \
                                "bra r0");
index 8db6b551ceda81d547e3eed43afb5aa1ce03ccb4..f93861d770ee3effe181ae050cea09ec0775c686 100644 (file)
 #if defined(XILINX_WATCHDOG_BASEADDR) && defined(XILINX_WATCHDOG_IRQ)
 # define CONFIG_WATCHDOG_BASEADDR      XILINX_WATCHDOG_BASEADDR
 # define CONFIG_WATCHDOG_IRQ           XILINX_WATCHDOG_IRQ
-# define CONFIG_HW_WATCHDOG
-# define CONFIG_XILINX_TB_WATCHDOG
+# ifndef CONFIG_SPL_BUILD
+#  define CONFIG_HW_WATCHDOG
+#  define CONFIG_XILINX_TB_WATCHDOG
+# endif
 #endif
 
 #if !defined(CONFIG_OF_CONTROL) || \