diff options
author | Marek Vasut <marex@denx.de> | 2019-06-09 03:46:21 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-07-19 20:14:50 +0200 |
commit | 6874cb72204ffbdbe4290baae11d0b9b8ed47ed1 (patch) | |
tree | 9c210495bec100440da3dc0957afc7bb80a3d509 /include/wdt.h | |
parent | 41d185d142365625700f2df5d5d7b237da4bc58d (diff) | |
download | u-boot-6874cb72204ffbdbe4290baae11d0b9b8ed47ed1.tar.gz |
watchdog: Split WDT from SPL_WDT
Use CONFIG_IS_ENABLED(WDT) to permit use of WDT in SPL without DM,
while the full U-Boot can use rich DM/DT WDT driver.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Peng Fan <Peng.Fan@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
Tested-by: Suniel Mahesh <sunil.m@techveda.org>
Diffstat (limited to 'include/wdt.h')
-rw-r--r-- | include/wdt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wdt.h b/include/wdt.h index aa77d3e9b4..5bcff24ab3 100644 --- a/include/wdt.h +++ b/include/wdt.h @@ -106,7 +106,7 @@ struct wdt_ops { int (*expire_now)(struct udevice *dev, ulong flags); }; -#if defined(CONFIG_WDT) +#if CONFIG_IS_ENABLED(WDT) #ifndef CONFIG_WATCHDOG_TIMEOUT_MSECS #define CONFIG_WATCHDOG_TIMEOUT_MSECS (60 * 1000) #endif |