]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
watchdog: move WATCHDOG_TIMEOUT_MSECS to Kconfig
authorHeiko Schocher <hs@denx.de>
Mon, 30 Sep 2019 07:33:43 +0000 (09:33 +0200)
committerStefan Roese <sr@denx.de>
Tue, 8 Oct 2019 05:46:38 +0000 (07:46 +0200)
move WATCHDOG_TIMEOUT_MSECS to Kconfig and fix
all board defconfigs.

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Lukasz Majewski <lukma@denx.de>
Acked-by: Martyn Welch <martyn.welch@collabora.com>
Signed-off-by: Stefan Roese <sr@denx.de>
22 files changed:
arch/arm/cpu/armv8/fsl-layerscape/doc/README.lsch2
configs/dh_imx6_defconfig
configs/display5_defconfig
configs/display5_factory_defconfig
configs/ge_bx50v3_defconfig
configs/kp_imx6q_tpc_defconfig
configs/m53menlo_defconfig
configs/mx53ppd_defconfig
configs/tqma6s_wru4_mmc_defconfig
configs/warp_defconfig
drivers/watchdog/Kconfig
include/configs/dh_imx6.h
include/configs/display5.h
include/configs/ge_bx50v3.h
include/configs/kp_imx6q_tpc.h
include/configs/m53menlo.h
include/configs/mx53ppd.h
include/configs/socfpga_common.h
include/configs/socfpga_stratix10_socdk.h
include/configs/tqma6_wru4.h
include/configs/warp.h
scripts/config_whitelist.txt

index 9583bf743ee8a6aeaae52fc4e8bd2523ef8defa3..d7f7b9f1110150026cd6cfeb9f74a9797ce9a9d9 100644 (file)
@@ -16,6 +16,5 @@ You can enable it by setting CONFIG_IMX_WATCHDOG.
 Use following config to set watchdog timeout, if this config is not defined,
 the default timeout value is 128s which is the maximum. Set 10 seconds for
 example:
-    #define CONFIG_WATCHDOG_TIMEOUT_MSECS 10000
 Set CONFIG_WATCHDOG_RESET_DISABLE to disable reset watchdog, so that the
 watchdog will not be fed in u-boot.
index f459af07f8d8e8ed554f12770d0d3c52d7351511..db4753c5c7fb1fe122b362fcb866913a04bc21d0 100644 (file)
@@ -85,4 +85,5 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_WATCHDOG_TIMEOUT_MSECS=60000
 CONFIG_IMX_WATCHDOG=y
index e48b6467e6d42803935b6c73b78d58b8b0edee3d..fdabd31c90a6be5422b7ae16d40db2777d5c00a0 100644 (file)
@@ -82,4 +82,5 @@ CONFIG_MII=y
 CONFIG_MXC_UART=y
 CONFIG_SPI=y
 CONFIG_MXC_SPI=y
+CONFIG_WATCHDOG_TIMEOUT_MSECS=15000
 CONFIG_IMX_WATCHDOG=y
index 5b7905707413f92ab1b532924f3f043b28b0d148..d403ad9480778e225b7e08e6dc2e4097befef94b 100644 (file)
@@ -87,5 +87,6 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x1b67
 CONFIG_USB_GADGET_PRODUCT_NUM=0x4000
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_WATCHDOG_TIMEOUT_MSECS=15000
 CONFIG_IMX_WATCHDOG=y
 CONFIG_OF_LIBFDT=y
index 735165916a8a4aa3d72dc84e387db57d15602f6a..75fdbf7e72a7118d55885a53a426056f58438d4c 100644 (file)
@@ -61,5 +61,6 @@ CONFIG_DM_SPI=y
 CONFIG_MXC_SPI=y
 CONFIG_DM_VIDEO=y
 CONFIG_VIDEO_IPUV3=y
+CONFIG_WATCHDOG_TIMEOUT_MSECS=6000
 CONFIG_IMX_WATCHDOG=y
 # CONFIG_EFI_LOADER is not set
index 75dd9d7c7a0908ca2ebf6c89e04b6c58dac06135..fdfb89990375cc8aace201837f44b8d730a93d62 100644 (file)
@@ -41,5 +41,6 @@ CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
+CONFIG_WATCHDOG_TIMEOUT_MSECS=60000
 CONFIG_IMX_WATCHDOG=y
 CONFIG_OF_LIBFDT=y
index 50047952a71e7106db08b31da39d17e7864d8f74..7e5bcf94b90e8308573819f55a4b56ff3754bccd 100644 (file)
@@ -89,4 +89,5 @@ CONFIG_DM_VIDEO=y
 CONFIG_SYS_WHITE_ON_BLACK=y
 CONFIG_VIDEO_IPUV3=y
 CONFIG_IMX_WATCHDOG=y
+CONFIG_WATCHDOG_TIMEOUT_MSECS=8000
 CONFIG_FAT_WRITE=y
index cad798a4166b56ba02822c402d2699ab1b4a98b4..7f293c8e9a88e1724512bbef332a76961cb1ecd5 100644 (file)
@@ -50,4 +50,5 @@ CONFIG_USB_EHCI_MX5=y
 CONFIG_VIDEO_IPUV3=y
 CONFIG_VIDEO=y
 # CONFIG_VIDEO_SW_CURSOR is not set
+CONFIG_WATCHDOG_TIMEOUT_MSECS=8000
 CONFIG_IMX_WATCHDOG=y
index 03e893044b2e88a4b998c45a855b46d0e7473dda..1dab5af41320aff7c6a56a73a5f1b9ec77755d95 100644 (file)
@@ -66,5 +66,6 @@ CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_SMSC95XX=y
+CONFIG_WATCHDOG_TIMEOUT_MSECS=60000
 CONFIG_IMX_WATCHDOG=y
 CONFIG_OF_LIBFDT=y
index 7a6ea6f8c6d4242e6fa6eb2ee38ae91f9d5f0e7b..7da64e6c6f6391da61b9684128675d5d328b01d6 100644 (file)
@@ -39,5 +39,6 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_USB_GADGET_DOWNLOAD=y
+CONFIG_WATCHDOG_TIMEOUT_MSECS=30000
 CONFIG_IMX_WATCHDOG=y
 CONFIG_OF_LIBFDT=y
index a66a9bcbe23f898c0e784db5213f2072c58ba34a..8c16d69d333054fe2c2d6fe7838d28207b363944 100644 (file)
@@ -8,6 +8,15 @@ config WATCHDOG
          this option if you want to service enabled watchdog by U-Boot. Disable
          this option if you want U-Boot to start watchdog but never service it.
 
+config WATCHDOG_TIMEOUT_MSECS
+       int "Watchdog timeout in msec"
+       default 128000 if ARCH_MX25 || ARCH_MX31 || ARCH_MX5 || ARCH_MX6
+       default 128000 if ARCH_MX7 || ARCH_VF610
+       default 30000 if ARCH_SOCFPGA
+       default 60000
+       help
+         Watchdog timeout in msec
+
 config HW_WATCHDOG
        bool
 
index c516e6ed4c2d3af114c2f57cd181831dd85a78b0..a854d0b53152d1df7b2ffb1f254b3d54d2b7f6a6 100644 (file)
@@ -88,7 +88,6 @@
 #endif
 
 /* Watchdog */
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS  60000
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
index e503e4a0ce42a8554635e07aa1befc82ccb2a669..182399a390f166af39f838a94e68f7b0817bbb35 100644 (file)
        (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
 
 /* Watchdog */
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS   15000
 
 /* ENV config */
 #ifdef CONFIG_ENV_IS_IN_SPI_FLASH
index 31214a6aa78e2beb43bf4ca30aac03dd88626606..6de5119d7fbe5eabc31baa5925b0610cb146223d 100644 (file)
@@ -28,8 +28,6 @@
 #define CONFIG_REVISION_TAG
 #define CONFIG_SYS_MALLOC_LEN          (10 * SZ_1M)
 
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS 6000
-
 #define CONFIG_MXC_UART
 
 /* SATA Configs */
index 2435ebbc7f05b375973f7b8191b982c76d11eb57..c160ad5bf6bff583e81c0cdc4773cee142d2df95 100644 (file)
@@ -60,7 +60,6 @@
 #endif
 
 /* Watchdog */
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS  60000
 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
index 49f11ea4b8d1429537bed754829752fa51b49118..113e84456d388548ee06e46a84920ca718b34057 100644 (file)
 #define CONFIG_FSL_IIM
 
 /* Watchdog */
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS 8000
 
 /*
  * Boot Linux
index d5b54dfa15e0cc01f35a181632a4adf8f422918d..59988efc9b328384d389d3b29897a2fc46ab44fe 100644 (file)
@@ -22,8 +22,6 @@
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          (10 * 1024 * 1024)
 
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS 8000
-
 #define CONFIG_BOARD_LATE_INIT
 #define CONFIG_REVISION_TAG
 
index b11fe021a72677cf7fc11fb4f4c841041414e591..94268ed7a310ca99f61cb4b6a4ed7be5c5dcb673 100644 (file)
 #define CONFIG_DESIGNWARE_WATCHDOG
 #define CONFIG_DW_WDT_BASE             SOCFPGA_L4WD0_ADDRESS
 #define CONFIG_DW_WDT_CLOCK_KHZ                25000
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS  30000
 #endif
 
 /*
index 7b55dd14dabc405bd969b5f2fa7a79748a81c542..8e6ecf4bed34c6b51d329579260174c5af5dbe91 100644 (file)
@@ -168,7 +168,6 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 unsigned int cm_get_l4_sys_free_clk_hz(void);
 #define CONFIG_DW_WDT_CLOCK_KHZ                (cm_get_l4_sys_free_clk_hz() / 1000)
 #endif
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS  3000
 #endif
 
 /*
index 34f000f2145a9d148a9538da1e5b6e9eb21d1fc3..0af52e5565ea7446f9290282d8725d800049f539 100644 (file)
@@ -17,7 +17,6 @@
 #define CONSOLE_DEV            "ttymxc3"
 
 /* Watchdog */
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS  60000
 
 /* Config on-board RTC */
 #define CONFIG_RTC_DS1337
index 5345f5314d66607af64fe52e9c525ee0ba2640cb..41fd6c759eba42534dd5771ce0bfa183715e5851 100644 (file)
@@ -25,7 +25,6 @@
 #define CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE
 
 /* Watchdog */
-#define CONFIG_WATCHDOG_TIMEOUT_MSECS 30000 /* 30s */
 
 #define CONFIG_SYS_MEMTEST_START       0x80000000
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_MEMTEST_START + SZ_256M)
index 5a007d37091cc38c698f20a1f5d3ddd6e610215d..44f50e004a0247641bdde4a926f822e829b18b7d 100644 (file)
@@ -4340,7 +4340,6 @@ CONFIG_WATCHDOG_NOWAYOUT
 CONFIG_WATCHDOG_PRESC
 CONFIG_WATCHDOG_RC
 CONFIG_WATCHDOG_TIMEOUT
-CONFIG_WATCHDOG_TIMEOUT_MSECS
 CONFIG_WD_PERIOD
 CONFIG_X600
 CONFIG_X86EMU_DEBUG