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 Regards, Xiaoliang Yang -----Original Message----- From: York Sun Sent: 2018年5月31日 6:12 To: Xiaoliang Yang <xiaoliang.yan...@nxp.com>; u-boot@lists.denx.de Subject: Re: [PATCH 1/2] watchdog: driver support for layerscape On 05/23/2018 12:52 AM, Xiaoliang Yang wrote: > Support watchdog driver for layerscape. If you want to use it, please > define CONFIG_IMX_WATCHDOG, CONFIG_HW_WATCHDOG, define > CONFIG_WATCHDOG_TIMEOUT_MSECS to set watchdog timeout. > > Signed-off-by: Xiaoliang Yang <xiaoliang.yan...@nxp.com> > --- > arch/arm/cpu/armv8/fsl-layerscape/doc/README.lsch2 | 10 ++++++++++ > drivers/watchdog/Makefile | 2 +- > drivers/watchdog/imx_watchdog.c | 11 +++++++++++ > 3 files changed, 22 insertions(+), 1 deletions(-) > I see compiling error. For example ls2080ardb. Please make sure you test all boards. York _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot