Skip to content

Commit 815fe67

Browse files
committed
move pistachio watchdog init to common location
Signed-off-by: Ian Pozella <[email protected]>
1 parent 455f049 commit 815fe67

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

board/imgtec/pistachio_bub/pistachio.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ int board_late_init(void)
201201
printf("Failed to enable tpm!\n");
202202
return 1;
203203
}
204-
#endif
205-
#ifdef CONFIG_PISTACHIO_WATCHDOG
206-
hw_watchdog_init();
207204
#endif
208205
return 0;
209206
}

common/board_f.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static int init_func_watchdog_init(void)
115115
# if defined(CONFIG_HW_WATCHDOG) && (defined(CONFIG_BLACKFIN) || \
116116
defined(CONFIG_M68K) || defined(CONFIG_MICROBLAZE) || \
117117
defined(CONFIG_SH) || defined(CONFIG_AT91SAM9_WATCHDOG) || \
118-
defined(CONFIG_IMX_WATCHDOG))
118+
defined(CONFIG_IMX_WATCHDOG) || defined(CONFIG_PISTACHIO_WATCHDOG))
119119
hw_watchdog_init();
120120
# endif
121121
puts(" Watchdog enabled\n");

0 commit comments

Comments
 (0)