From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Agner Date: Sun, 3 Jul 2016 12:33:52 -0700 Subject: [U-Boot] [PATCH 7/9] imx_watchdog: add weak attribute to reset_cpu function In-Reply-To: <20160703193354.25900-1-stefan@agner.ch> References: <20160703193354.25900-1-stefan@agner.ch> Message-ID: <20160703193354.25900-8-stefan@agner.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This allows to overwrite reset_cpu function in case a board level reset is preferred (e.g. through PMIC). Signed-off-by: Stefan Agner --- drivers/watchdog/imx_watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c index f9f8175..2938d9f 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; -- 2.9.0