Message ID | f89bc3c8-567f-d713-3824-52faa9e048d1@denx.de |
---|---|
State | New |
Headers | show |
Series | imx: Add support for i.MX8MM Beacon EmbeddedWorks devkit. | expand |
diff --git a/arch/arm/dts/imx8mm-board-u-boot.dtsi b/arch/arm/dts/imx8mm-board-u-boot.dtsi index da841e94a9..dccd26663f 100644 --- a/arch/arm/dts/imx8mm-board-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-board-u-boot.dtsi @@ -9,3 +9,8 @@ / { + wdt-reboot { + compatible = "wdt-reboot"; + wdt = <&wdog1>; + u-boot,dm-spl; + }; }; @@ -121 +126,5 @@ }; + +&wdog1 { + u-boot,dm-spl; +}; diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index bbfc9c5576..09be0153fd 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -384,7 +384,7 @@ int ft_system_setup(void *blob, bd_t *bd) } #endif -#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_SYSRESET) +#if !CONFIG_IS_ENABLED(SYSRESET) void reset_cpu(ulong addr) { struct watchdog_regs *wdog = (struct watchdog_regs *)addr; diff --git a/configs/imx8mm_board_defconfig b/configs/imx8mm_board_defconfig index d6d30015e1..049c687910 100644 --- a/configs/imx8mm_board_defconfig +++ b/configs/imx8mm_board_defconfig @@ -30 +30,5 @@ CONFIG_SPL_BOARD_INIT=y -CONFIG_PANIC_HANG=y +CONFIG_SPL_WATCHDOG_SUPPORT=y +CONFIG_SPL_SYSRESET=y +CONFIG_SYSRESET_WATCHDOG=y +# CONFIG_WATCHDOG is not set +CONFIG_IMX_WATCHDOG=y