Skip to contentSkip to conversation

board_f: init designware watchdog if CONFIG_DESIGNWARE_WATCHDOG=y

PATCH New Anatolij Gustschin 2 participants 4 messages Jun 13, 2016 – Jul 16, 2016

lore
Share & tools
lore
#0 lore raw

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.

---
 common/board_f.c |    1 +
 1 file changed, 1 insertion(+)
common/board_f.c +1 -0
index 622093a..0e2e6bc 100644
@@ -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
#1 lore raw

PATCH 2/2 board_f: prevent misleading "Watchdog enabled" output

Output the "Watchdog enabled" message only if hw_watchdog_init() call really happened.

---
 common/board_f.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/board_f.c +1 -1
index 0e2e6bc..9f6e4cc 100644
@@ -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
#2 lore raw

PATCH 2/2 board_f: prevent misleading "Watchdog enabled" output

Quoted 4 lines · Anatolij Gustschin

Output the "Watchdog enabled" message only if hw_watchdog_init() call really happened.

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>
#3 lore raw

PATCH 1/2 board_f: init designware watchdog if CONFIG_DESIGNWARE_WATCHDOG=y

In reply to Anatolij Gustschin
Quoted 4 lines · Anatolij Gustschin

The designware watchdog init is skipped even if CONFIG_DESIGNWARE_WATCHDOG is enabled. Fix it.

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>