u-boot-brain/drivers/watchdog
Suniel Mahesh 6912f2a8ae watchdog: omap_wdt: Disable DM watchdog support in SPL
This patch disables DM watchdog support for SPL builds and uses
the legacy omap watchdog driver on TI AM335x chipsets.

The following build error is reported if DM watchdog support was
enabled in SPL:

  CC      spl/drivers/usb/gadget/rndis.o
  LD      spl/drivers/usb/gadget/built-in.o
  LD      spl/drivers/usb/musb-new/built-in.o
  LD      spl/drivers/built-in.o
  LD      spl/u-boot-spl
arm-linux-ld.bfd: u-boot-spl section .u_boot_list will not fit in region .sram
arm-linux-ld.bfd: region .sram overflowed by 440 bytes
make[1]: *** [spl/u-boot-spl] Error 1
make: *** [spl/u-boot-spl] Error 2

Adjusted WATCHDOG_RESET macro accordingly. Earlier it was pointing
to hw_watchdog_reset. Since CONFIG_WATCHDOG replaces CONFIG_HW_WATCHDOG,
now WATCHDOG_RESET macro points to watchdog_reset. This watchdog_reset
is not defined anywhere for am33xx/omap2 and needs to be defined. Fixed
this by simply calling hw_watchdog_reset in watchdog_reset.

Built and tested on AM335x device (BeagleboneBlack), compile tested for
all other AM33xx/omap2 based boards.

Signed-off-by: Suniel Mahesh <sunil.m@techveda.org>
[trini: Fix watchdog.h logic]
Signed-off-by: Tom Rini <trini@konsulko.com>
2019-08-12 13:27:55 -04:00
..
armada-37xx-wdt.c watchdog: armada_37xx: Fix compliance with kernel's driver 2019-01-21 11:39:49 +01:00
ast_wdt.c aspeed/watchdog: Correct timeout value 2019-06-20 10:57:08 -04:00
at91sam9_wdt.c watchdog: at91sam9_wdt: Remove now superfluous wdt start and reset 2019-04-26 09:16:32 +02:00
bcm6345_wdt.c watchdog: bcm6345: callback start use tick instead of ms 2019-05-18 12:31:58 -04:00
cdns_wdt.c watchdog: cadence: Remove driver specific "timeout-sec" handling 2019-04-26 09:16:32 +02:00
designware_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ftwdt010_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
imx_watchdog.c watchdog: imx: Add DM support 2019-07-19 20:14:50 +02:00
Kconfig watchdog: omap_wdt: Convert watchdog driver to use DT and DM 2019-08-12 07:25:22 -04:00
Makefile watchdog: omap_wdt: Convert watchdog driver to use DT and DM 2019-08-12 07:25:22 -04:00
mpc8xx_wdt.c watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup 2019-04-26 09:16:32 +02:00
mt7621_wdt.c wdt: Add MT7621 watchdog driver 2018-11-18 16:02:22 +01:00
mtk_wdt.c watchdog: mtk_wdt: Cosmetic cleanup of latest changes 2019-08-05 11:50:11 +02:00
omap_wdt.c watchdog: omap_wdt: Disable DM watchdog support in SPL 2019-08-12 13:27:55 -04:00
orion_wdt.c watchdog: orion_wdt: take timeout value in ms 2019-04-12 07:04:18 +02:00
s5p_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox_wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sp805_wdt.c driver: watchdog: add sp805 watchdog support 2019-05-22 12:24:24 +05:30
stm32mp_wdt.c watchdog: stm32mp: Add watchdog driver 2019-06-06 17:40:16 +02:00
tangier_wdt.c watchdog: tangier: Convert to use WDT class 2019-06-22 22:27:13 +08:00
ulp_wdog.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
wdt-uclass.c watchdog: Implement generic watchdog_reset() version 2019-04-26 09:16:32 +02:00
xilinx_tb_wdt.c watchdog: Convert Xilinx Axi watchdog driver to driver model 2018-07-19 10:49:55 +02:00