summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-04-10 03:07:30 -0700
committerYe Li <ye.li@nxp.com>2018-04-27 02:30:59 -0700
commitc0d5846b027a51e8d3d12700a63dec5ce8f3cb9a (patch)
tree77f29debe3e21a20bb73df85fb33a0d658a1dd96 /drivers/spi
parentaf4b84a6daf8009b89240ecfb1581b94685629f9 (diff)
MLK-18159-2 fsl_qspi: Add support for i.MX8M
The i.MX8M reuses the QSPI controller from i.MX7D. Add the CONFIG_IMX8M define to the driver. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/fsl_qspi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c
index 7359cb6cdc..939956bcc3 100644
--- a/drivers/spi/fsl_qspi.c
+++ b/drivers/spi/fsl_qspi.c
@@ -22,7 +22,7 @@ DECLARE_GLOBAL_DATA_PTR;
#define RX_BUFFER_SIZE 0x80
#if defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) || \
- defined(CONFIG_MX6ULL) || defined(CONFIG_MX7D)
+ defined(CONFIG_MX6ULL) || defined(CONFIG_MX7D) || defined(CONFIG_IMX8M)
#define TX_BUFFER_SIZE 0x200
#else
#define TX_BUFFER_SIZE 0x40
@@ -282,7 +282,7 @@ static void qspi_set_lut(struct fsl_qspi_priv *priv)
PAD1(LUT_PAD1) | INSTR1(LUT_ADDR));
#endif
#if defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) || \
- defined(CONFIG_MX6ULL) || defined(CONFIG_MX7D)
+ defined(CONFIG_MX6ULL) || defined(CONFIG_MX7D) || defined(CONFIG_IMX8M)
/*
* To MX6SX, OPRND0(TX_BUFFER_SIZE) can not work correctly.
* So, Use IDATSZ in IPCR to determine the size and here set 0.