diff options
author | Robert Beckett | 2019-11-12 19:15:20 +0000 |
---|---|---|
committer | Stefano Babic | 2020-01-07 10:26:56 +0100 |
commit | 7915e150d6d070172f5e280373c7955d69012f16 (patch) | |
tree | d22145da4cc1e9781f49009d39b49a85ded75fe7 | |
parent | d494aeca4688a8040362fd968d0aa9a5b8e0bf55 (diff) |
board: ge: mx53ppd: use imx wdt
Enable DM imx WDT
Enable SYSRESET_WATCHDOG to maintain WDT based reset ability
Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
-rw-r--r-- | arch/arm/dts/imx53-ppd-uboot.dtsi | 12 | ||||
-rw-r--r-- | arch/arm/dts/imx53-ppd.dts | 1 | ||||
-rw-r--r-- | board/ge/mx53ppd/mx53ppd.c | 1 | ||||
-rw-r--r-- | configs/mx53ppd_defconfig | 3 |
4 files changed, 16 insertions, 1 deletions
diff --git a/arch/arm/dts/imx53-ppd-uboot.dtsi b/arch/arm/dts/imx53-ppd-uboot.dtsi new file mode 100644 index 00000000000..88dd7e29393 --- /dev/null +++ b/arch/arm/dts/imx53-ppd-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/imx53-ppd.dts b/arch/arm/dts/imx53-ppd.dts index 8f3864998ce..ae98361f9ab 100644 --- a/arch/arm/dts/imx53-ppd.dts +++ b/arch/arm/dts/imx53-ppd.dts @@ -43,6 +43,7 @@ /dts-v1/; #include "imx53.dtsi" +#include "imx53-ppd-uboot.dtsi" #include <dt-bindings/input/input.h> / { diff --git a/board/ge/mx53ppd/mx53ppd.c b/board/ge/mx53ppd/mx53ppd.c index bfcee441c50..105edd24cb6 100644 --- a/board/ge/mx53ppd/mx53ppd.c +++ b/board/ge/mx53ppd/mx53ppd.c @@ -297,7 +297,6 @@ int board_late_init(void) return res; print_cpuinfo(); - hw_watchdog_init(); check_time(); diff --git a/configs/mx53ppd_defconfig b/configs/mx53ppd_defconfig index 47481eaf606..7c44ea9be0d 100644 --- a/configs/mx53ppd_defconfig +++ b/configs/mx53ppd_defconfig @@ -56,5 +56,8 @@ CONFIG_VIDEO=y # CONFIG_VIDEO_SW_CURSOR is not set CONFIG_WATCHDOG_TIMEOUT_MSECS=8000 CONFIG_IMX_WATCHDOG=y +CONFIG_WDT=y +CONFIG_SYSRESET=y +CONFIG_SYSRESET_WATCHDOG=y CONFIG_DM_REGULATOR=y CONFIG_DM_USB=y |