imx233: stop the watchdog before loading main firmware

Change-Id: I0a13444d6788a09b0fc04ed1a5115cb2e5fe6f57
This commit is contained in:
Amaury Pouly 2014-02-10 22:28:46 +01:00
parent 34fb6906dd
commit 935c0ad14a
3 changed files with 10 additions and 0 deletions

View file

@ -197,6 +197,13 @@ void system_init(void)
#endif
}
void system_prepare_fw_start(void)
{
/* keep alive to get enough time, stop watchdog */
imx233_keep_alive();
imx233_rtc_enable_watchdog(false);
}
bool imx233_us_elapsed(uint32_t ref, unsigned us_delay)
{
uint32_t cur = HW_DIGCTL_MICROSECONDS;