mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
fpga: intel_sdm_mb: Add watchdog reset
Ensure watchdog reset is not triggered if the fpga reconfiguration is taking too long. Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
This commit is contained in:
parent
d2170168dd
commit
9a623cd696
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <common.h>
|
||||
#include <altera.h>
|
||||
#include <log.h>
|
||||
#include <watchdog.h>
|
||||
#include <asm/arch/mailbox_s10.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
|
@ -113,6 +114,7 @@ static int reconfig_status_polling_resp(void)
|
|||
|
||||
puts(".");
|
||||
udelay(RECONFIG_STATUS_INTERVAL_DELAY_US);
|
||||
WATCHDOG_RESET();
|
||||
}
|
||||
|
||||
return -ETIMEDOUT;
|
||||
|
@ -238,6 +240,7 @@ static int send_reconfig_data(const void *rbf_data, size_t rbf_size,
|
|||
if (resp_err && !xfer_count)
|
||||
return resp_err;
|
||||
}
|
||||
WATCHDOG_RESET();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue