[U-Boot] [PATCH 1/2] watchdog: driver support for layerscape

York Sun york.sun at nxp.com
Thu May 31 16:03:22 UTC 2018


On 05/31/2018 01:01 AM, Xiaoliang Yang wrote:
> Thanks York,
> 
> This watchdog driver is really not support LSCH3. I'll change the patch like following to build the imx_watchdog.c only in LSCH2 of layerscape, do you think it's appropriate?
> 
> diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile
> index 86cf94b..ea47ccf 100644
> --- a/drivers/watchdog/Makefile
> +++ b/drivers/watchdog/Makefile
> @@ -7,8 +7,12 @@
> 
>  obj-$(CONFIG_AT91SAM9_WATCHDOG) += at91sam9_wdt.o
>  obj-$(CONFIG_FTWDT010_WATCHDOG) += ftwdt010_wdt.o
> -ifneq (,$(filter $(SOC), mx31 mx35 mx5 mx6 mx7 vf610 fsl-layerscape))
> +ifneq (,$(filter $(SOC), mx31 mx35 mx5 mx6 mx7 vf610))
>  obj-y += imx_watchdog.o
> +else
> +ifdef CONFIG_FSL_LSCH2
> +obj-$(CONFIG_IMX_WATCHDOG) += imx_watchdog.o
> +endif
>  endif
> 

Why don't move IMX_WATCHDOG to drivers/watchdog/Kconfig and enabled this
option for the selected SoCs/platforms?

York


More information about the U-Boot mailing list