summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Beckett <[email protected]>2019-11-12 19:15:19 +0000
committerStefano Babic <[email protected]>2020-01-07 10:26:56 +0100
commitd494aeca4688a8040362fd968d0aa9a5b8e0bf55 (patch)
tree4c8805726ca9dc6c909fabbf9619514d039e13b3
parentb186cfa1a3b20ef6c862040838db243dc5bbd828 (diff)
board: ge: bx50v3: use imx wdt
Enable DM imx WDT Enable SYSRESET_WATCHDOG to maintain WDT based reset ability Signed-off-by: Robert Beckett <[email protected]>
-rw-r--r--arch/arm/dts/imx6q-bx50v3-uboot.dtsi12
-rw-r--r--arch/arm/dts/imx6q-bx50v3.dtsi1
-rw-r--r--configs/ge_bx50v3_defconfig3
3 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/dts/imx6q-bx50v3-uboot.dtsi b/arch/arm/dts/imx6q-bx50v3-uboot.dtsi
new file mode 100644
index 00000000000..88dd7e29393
--- /dev/null
+++ b/arch/arm/dts/imx6q-bx50v3-uboot.dtsi
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * Copyright 2019 Collabora Ltd
+ * Copyright 2019 General Electric Company
+ */
+
+/ {
+ wdt-reboot {
+ compatible = "wdt-reboot";
+ wdt = <&wdog1>;
+ };
+};
diff --git a/arch/arm/dts/imx6q-bx50v3.dtsi b/arch/arm/dts/imx6q-bx50v3.dtsi
index 009f88e305d..bb8f5623079 100644
--- a/arch/arm/dts/imx6q-bx50v3.dtsi
+++ b/arch/arm/dts/imx6q-bx50v3.dtsi
@@ -42,6 +42,7 @@
*/
#include "imx6q-ba16.dtsi"
+#include "imx6q-bx50v3-uboot.dtsi"
/ {
mclk: clock-mclk {
diff --git a/configs/ge_bx50v3_defconfig b/configs/ge_bx50v3_defconfig
index 38ea981dd11..81e450c8545 100644
--- a/configs/ge_bx50v3_defconfig
+++ b/configs/ge_bx50v3_defconfig
@@ -72,6 +72,9 @@ CONFIG_VIDEO_BPP16=y
CONFIG_VIDEO_IPUV3=y
CONFIG_WATCHDOG_TIMEOUT_MSECS=6000
CONFIG_IMX_WATCHDOG=y
+CONFIG_WDT=y
+CONFIG_SYSRESET=y
+CONFIG_SYSRESET_WATCHDOG=y
# CONFIG_EFI_LOADER is not set
CONFIG_SYS_MALLOC_F_LEN=0x4000
CONFIG_SYS_WHITE_ON_BLACK=y