board_f: init designware watchdog if CONFIG_DESIGNWARE_WATCHDOG=y
PATCH 1/2 board_f: init designware watchdog if CONFIG_DESIGNWARE_WATCHDOG=y
The designware watchdog init is skipped even if CONFIG_DESIGNWARE_WATCHDOG is enabled. Fix it.
Signed-off-by Anatolij Gustschin <[email protected]>
--- common/board_f.c | 1 + 1 file changed, 1 insertion(+)
common/board_f.c +1 -0
@@ -117,6 +117,7 @@ static int init_func_watchdog_init(void)# if defined(CONFIG_HW_WATCHDOG ) && (defined(CONFIG_BLACKFIN ) || \ defined(CONFIG_M68K ) || defined(CONFIG_MICROBLAZE ) || \ defined(CONFIG_SH ) || defined(CONFIG_AT91SAM9_WATCHDOG ) || \ + defined(CONFIG_DESIGNWARE_WATCHDOG ) || \ defined(CONFIG_IMX_WATCHDOG ))hw_watchdog_init ();# endif
Signature · 1 line
1.7.9.5
PATCH 2/2 board_f: prevent misleading "Watchdog enabled" output
Output the "Watchdog enabled" message only if hw_watchdog_init() call really happened.
Signed-off-by Anatolij Gustschin <[email protected]>
--- common/board_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/board_f.c +1 -1
@@ -120,8 +120,8 @@ static int init_func_watchdog_init(void) defined(CONFIG_DESIGNWARE_WATCHDOG) || \ defined(CONFIG_IMX_WATCHDOG))hw_watchdog_init (); -# endif puts (" Watchdog enabled\n" ); +# endif WATCHDOG_RESET ();return 0 ;
Signature · 1 line
1.7.9.5
PATCH 1/2 board_f: init designware watchdog if CONFIG_DESIGNWARE_WATCHDOG=y
In reply to Anatolij GustschinQuoted 4 lines · Anatolij Gustschin
The designware watchdog init is skipped even if
CONFIG_DESIGNWARE_WATCHDOGis enabled. Fix it.Signed-off-by Anatolij Gustschin <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160716/3ffd239e/attachment.sig>
PATCH 2/2 board_f: prevent misleading "Watchdog enabled" output
In reply to Anatolij GustschinQuoted 4 lines · Anatolij Gustschin
Output the "Watchdog enabled" message only if
hw_watchdog_init()call really happened.Signed-off-by Anatolij Gustschin <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160716/f75dccae/attachment.sig>