aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga
diff options
context:
space:
mode:
authorChee Hong Ang <chee.hong.ang@intel.com>2020-08-07 11:50:04 +0800
committerLey Foon Tan <ley.foon.tan@intel.com>2020-10-09 17:53:12 +0800
commit9a623cd6963fb37b62bd2e0e9e70b63552b0f288 (patch)
treeb084d36d8a656a2a868dbf634f149e17e0436d8e /drivers/fpga
parentd2170168dd9d762152f27c482faa87973a2fd791 (diff)
downloadu-boot-9a623cd6963fb37b62bd2e0e9e70b63552b0f288.zip
u-boot-9a623cd6963fb37b62bd2e0e9e70b63552b0f288.tar.gz
u-boot-9a623cd6963fb37b62bd2e0e9e70b63552b0f288.tar.bz2
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>
Diffstat (limited to 'drivers/fpga')
-rw-r--r--drivers/fpga/intel_sdm_mb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/fpga/intel_sdm_mb.c b/drivers/fpga/intel_sdm_mb.c
index 3508231..9a1dc2c 100644
--- a/drivers/fpga/intel_sdm_mb.c
+++ b/drivers/fpga/intel_sdm_mb.c
@@ -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;