summaryrefslogtreecommitdiff
path: root/drivers/spi/fsl_qspi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/fsl_qspi.c')
-rw-r--r--drivers/spi/fsl_qspi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c
index bb5c236..e3777d8 100644
--- a/drivers/spi/fsl_qspi.c
+++ b/drivers/spi/fsl_qspi.c
@@ -13,6 +13,7 @@
#include <spi.h>
#include <asm/io.h>
+#include <asm/arch/sys_proto.h>
#define QUADSPI_AHBMAP_BANK_MAXSIZE SZ_64M
@@ -544,6 +545,13 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
struct fsl_qspi *q;
int ret;
+#ifdef CONFIG_MX6
+ if (mx6_qspi_fused(CONFIG_QSPI_BASE)) {
+ printf("QSPI@0x%x is fused, disable it\n", CONFIG_QSPI_BASE);
+ return NULL;
+ }
+#endif
+
if (bus > 1) {
puts("FSL_QSPI: Not a valid bus !\n");
return NULL;