board: turris_mox: Fix watchdog macro name
authorMarek BehĂșn <marek.behun@nic.cz>
Fri, 17 Aug 2018 10:58:53 +0000 (12:58 +0200)
committerStefan Roese <sr@denx.de>
Wed, 19 Sep 2018 06:59:26 +0000 (08:59 +0200)
The macro name CONFIG_WDT_ARMADA_3720 is called CONFIG_WDT_ARMADA_37XX
instead. Fix this so that watchdog really is enabled in board_init.

Signed-off-by: Marek Behun <marek.behun@nic.cz>
Signed-off-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_mox/turris_mox.c

index 130d4c606d3a565f0028201b7e6d33f7beb4b761..b6a0ca462641bf87084c6234e39a376895daed84 100644 (file)
@@ -9,13 +9,13 @@
 #include <spi.h>
 #include <linux/string.h>
 
-#ifdef CONFIG_WDT_ARMADA_3720
+#ifdef CONFIG_WDT_ARMADA_37XX
 #include <wdt.h>
 #endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CONFIG_WDT_ARMADA_3720
+#ifdef CONFIG_WDT_ARMADA_37XX
 static struct udevice *watchdog_dev;
 
 void watchdog_reset(void)
@@ -41,7 +41,7 @@ int board_init(void)
        /* address of boot parameters */
        gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
 
-#ifdef CONFIG_WDT_ARMADA_3720
+#ifdef CONFIG_WDT_ARMADA_37XX
        if (uclass_get_device(UCLASS_WDT, 0, &watchdog_dev)) {
                printf("Cannot find Armada 3720 watchdog!\n");
        } else {