projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be1a17f
)
imx_watchdog: add weak attribute to reset_cpu function
author
Stefan Agner
<stefan@agner.ch>
Wed, 13 Jul 2016 07:25:42 +0000
(
00:25
-0700)
committer
Stefano Babic
<sbabic@denx.de>
Tue, 19 Jul 2016 17:52:15 +0000
(19:52 +0200)
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>
drivers/watchdog/imx_watchdog.c
patch
|
blob
|
history
diff --git
a/drivers/watchdog/imx_watchdog.c
b/drivers/watchdog/imx_watchdog.c
index
f9f8175
..
2938d9f
100644
(file)
--- 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;