-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wdt: Wait for timer expiration period before un-gating ARM clock
Allowing the ARM core to resume execution before the reset has actually fired can lead to undesirable situations such as old in-memory firmware corrupting a new firmware image just written by a 'write firmware' command. Add a usleep() call to wdt_perform_reset() so that it waits the necessary amount of time itself rather than returning a duration for the caller to wait. Because the debug UART interface seems to lock up if left active across a reset, we also bracket the sleep (during which the reset is expected to occur) with a release/reinit of the bridge interface. Signed-off-by: Zev Weiss <[email protected]>
- Loading branch information
Showing
4 changed files
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters