diff options
author | Stefan Agner <stefan@agner.ch> | 2016-07-13 00:25:42 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-07-19 19:52:15 +0200 |
commit | 8b248c8cdbdfa0f6a7a28b2e4ab0450af51603b2 (patch) | |
tree | b8c47171c780a587f0071f3c5dd91fdcb1aa3043 | |
parent | be1a17ff689b0289bbf900813265e4525949eef7 (diff) | |
download | u-boot-imx-8b248c8cdbdfa0f6a7a28b2e4ab0450af51603b2.zip u-boot-imx-8b248c8cdbdfa0f6a7a28b2e4ab0450af51603b2.tar.gz u-boot-imx-8b248c8cdbdfa0f6a7a28b2e4ab0450af51603b2.tar.bz2 |
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 <stefan.agner@toradex.com>
-rw-r--r-- | drivers/watchdog/imx_watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |