1098-mtd-fsl-quadspi-Rename-SEQID_QUAD_READ-to-SEQID_READ.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From c8f9be7df954fce18e96074af3f07aa5f75399e0 Mon Sep 17 00:00:00 2001
  2. From: Yunhui Cui <B56489@freescale.com>
  3. Date: Wed, 20 Jan 2016 15:52:25 +0800
  4. Subject: [PATCH 098/113] mtd: fsl-quadspi: Rename SEQID_QUAD_READ to
  5. SEQID_READ
  6. There are some read modes for flash, such as NORMAL, FAST,
  7. QUAD, DDR QUAD. These modes will use the identical lut table base
  8. So rename SEQID_QUAD_READ to SEQID_READ.
  9. Signed-off-by: Yunhui Cui <B56489@freescale.com>
  10. ---
  11. drivers/mtd/spi-nor/fsl-quadspi.c | 8 ++++----
  12. 1 file changed, 4 insertions(+), 4 deletions(-)
  13. --- a/drivers/mtd/spi-nor/fsl-quadspi.c
  14. +++ b/drivers/mtd/spi-nor/fsl-quadspi.c
  15. @@ -193,7 +193,7 @@
  16. #define QUADSPI_LUT_NUM 64
  17. /* SEQID -- we can have 16 seqids at most. */
  18. -#define SEQID_QUAD_READ 0
  19. +#define SEQID_READ 0
  20. #define SEQID_WREN 1
  21. #define SEQID_WRDI 2
  22. #define SEQID_RDSR 3
  23. @@ -386,8 +386,8 @@ static void fsl_qspi_init_lut(struct fsl
  24. for (i = 0; i < QUADSPI_LUT_NUM; i++)
  25. qspi_writel(q, 0, base + QUADSPI_LUT_BASE + i * 4);
  26. - /* Quad Read */
  27. - lut_base = SEQID_QUAD_READ * 4;
  28. + /* Read */
  29. + lut_base = SEQID_READ * 4;
  30. qspi_writel(q, LUT0(CMD, PAD1, read_op) | LUT1(ADDR, PAD1, addrlen),
  31. base + QUADSPI_LUT(lut_base));
  32. @@ -468,7 +468,7 @@ static int fsl_qspi_get_seqid(struct fsl
  33. {
  34. switch (cmd) {
  35. case SPINOR_OP_READ_1_1_4:
  36. - return SEQID_QUAD_READ;
  37. + return SEQID_READ;
  38. case SPINOR_OP_WREN:
  39. return SEQID_WREN;
  40. case SPINOR_OP_WRDI: