board: turris_mox: Fix watchdog macro name
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>
This commit is contained in:
parent
de75fb09a1
commit
17445e9688
|
|
@ -9,13 +9,13 @@
|
||||||
#include <spi.h>
|
#include <spi.h>
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
|
|
||||||
#ifdef CONFIG_WDT_ARMADA_3720
|
#ifdef CONFIG_WDT_ARMADA_37XX
|
||||||
#include <wdt.h>
|
#include <wdt.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#ifdef CONFIG_WDT_ARMADA_3720
|
#ifdef CONFIG_WDT_ARMADA_37XX
|
||||||
static struct udevice *watchdog_dev;
|
static struct udevice *watchdog_dev;
|
||||||
|
|
||||||
void watchdog_reset(void)
|
void watchdog_reset(void)
|
||||||
|
|
@ -41,7 +41,7 @@ int board_init(void)
|
||||||
/* address of boot parameters */
|
/* address of boot parameters */
|
||||||
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
|
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)) {
|
if (uclass_get_device(UCLASS_WDT, 0, &watchdog_dev)) {
|
||||||
printf("Cannot find Armada 3720 watchdog!\n");
|
printf("Cannot find Armada 3720 watchdog!\n");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue