Browse Source

fix(intel): add in watchdog for QSPI driver

ATF->Linux boot with QSPI boot source need to enable watchdog
so that it will not hang.

Change-Id: Id2a9ceebb1c89f711992a424f4394265efc6b388
Signed-off-by: Sieu Mun Tang <sieu.mun.tang@intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
pull/1996/merge
Sieu Mun Tang 8 months ago
committed by Jit Loon Lim
parent
commit
6704cba25d
  1. 4
      plat/intel/soc/common/drivers/qspi/cadence_qspi.c

4
plat/intel/soc/common/drivers/qspi/cadence_qspi.c

@ -14,6 +14,7 @@
#include "cadence_qspi.h"
#include "socfpga_plat_def.h"
#include "wdt/watchdog.h"
#define LESS(a, b) (((a) < (b)) ? (a) : (b))
#define MORE(a, b) (((a) > (b)) ? (a) : (b))
@ -654,6 +655,9 @@ int cad_qspi_read_bank(uint8_t *buffer, uint32_t offset, uint32_t size)
read_count += level * sizeof(uint8_t);
count++;
#if ARM_LINUX_KERNEL_AS_BL33
watchdog_sw_rst();
#endif
} while (level > 0);
}

Loading…
Cancel
Save