From: Stefan Agner Date: Wed, 13 Jul 2016 07:25:42 +0000 (-0700) Subject: imx_watchdog: add weak attribute to reset_cpu function X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8b248c8cdbdfa0f6a7a28b2e4ab0450af51603b2;p=u-boot.git imx_watchdog: add weak attribute to reset_cpu function This allows to overwrite reset_cpu function in case a board level reset is preferred (e.g. through PMIC). Signed-off-by: Stefan Agner --- diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c index f9f817596f..2938d9f1fe 100644 --- a/drivers/watchdog/imx_watchdog.c +++ b/drivers/watchdog/imx_watchdog.c @@ -39,7 +39,7 @@ void hw_watchdog_init(void) } #endif -void reset_cpu(ulong addr) +void __attribute__((weak)) reset_cpu(ulong addr) { struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR;