aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/spi-nor')
-rw-r--r--drivers/mtd/spi-nor/fsl-quadspi.c6
-rw-r--r--drivers/mtd/spi-nor/spi-nor.c16
2 files changed, 11 insertions, 11 deletions
diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
index 2977f026f39d..b41bbbc531ff 100644
--- a/drivers/mtd/spi-nor/fsl-quadspi.c
+++ b/drivers/mtd/spi-nor/fsl-quadspi.c
@@ -294,12 +294,12 @@ static void fsl_qspi_init_lut(struct fsl_qspi *q)
294 lut_base = SEQID_QUAD_READ * 4; 294 lut_base = SEQID_QUAD_READ * 4;
295 295
296 if (q->nor_size <= SZ_16M) { 296 if (q->nor_size <= SZ_16M) {
297 cmd = SPINOR_OP_QUAD_READ; 297 cmd = SPINOR_OP_READ_1_1_4;
298 addrlen = ADDR24BIT; 298 addrlen = ADDR24BIT;
299 dummy = 8; 299 dummy = 8;
300 } else { 300 } else {
301 /* use the 4-byte address */ 301 /* use the 4-byte address */
302 cmd = SPINOR_OP_QUAD_READ; 302 cmd = SPINOR_OP_READ_1_1_4;
303 addrlen = ADDR32BIT; 303 addrlen = ADDR32BIT;
304 dummy = 8; 304 dummy = 8;
305 } 305 }
@@ -388,7 +388,7 @@ static void fsl_qspi_init_lut(struct fsl_qspi *q)
388static int fsl_qspi_get_seqid(struct fsl_qspi *q, u8 cmd) 388static int fsl_qspi_get_seqid(struct fsl_qspi *q, u8 cmd)
389{ 389{
390 switch (cmd) { 390 switch (cmd) {
391 case SPINOR_OP_QUAD_READ: 391 case SPINOR_OP_READ_1_1_4:
392 return SEQID_QUAD_READ; 392 return SEQID_QUAD_READ;
393 case SPINOR_OP_WREN: 393 case SPINOR_OP_WREN:
394 return SEQID_WREN; 394 return SEQID_WREN;
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c
index 1716f3ce9949..d6f44d527701 100644
--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1014,16 +1014,16 @@ int spi_nor_scan(struct spi_nor *nor, const struct spi_device_id *id,
1014 /* Default commands */ 1014 /* Default commands */
1015 switch (nor->flash_read) { 1015 switch (nor->flash_read) {
1016 case SPI_NOR_QUAD: 1016 case SPI_NOR_QUAD:
1017 nor->read_opcode = SPINOR_OP_QUAD_READ; 1017 nor->read_opcode = SPINOR_OP_READ_1_1_4;
1018 break; 1018 break;
1019 case SPI_NOR_DUAL: 1019 case SPI_NOR_DUAL:
1020 nor->read_opcode = SPINOR_OP_DUAL_READ; 1020 nor->read_opcode = SPINOR_OP_READ_1_1_2;
1021 break; 1021 break;
1022 case SPI_NOR_FAST: 1022 case SPI_NOR_FAST:
1023 nor->read_opcode = SPINOR_OP_FAST_READ; 1023 nor->read_opcode = SPINOR_OP_READ_FAST;
1024 break; 1024 break;
1025 case SPI_NOR_NORMAL: 1025 case SPI_NOR_NORMAL:
1026 nor->read_opcode = SPINOR_OP_NORM_READ; 1026 nor->read_opcode = SPINOR_OP_READ;
1027 break; 1027 break;
1028 default: 1028 default:
1029 dev_err(dev, "No Read opcode defined\n"); 1029 dev_err(dev, "No Read opcode defined\n");
@@ -1041,16 +1041,16 @@ int spi_nor_scan(struct spi_nor *nor, const struct spi_device_id *id,
1041 /* Dedicated 4-byte command set */ 1041 /* Dedicated 4-byte command set */
1042 switch (nor->flash_read) { 1042 switch (nor->flash_read) {
1043 case SPI_NOR_QUAD: 1043 case SPI_NOR_QUAD:
1044 nor->read_opcode = SPINOR_OP_QUAD_READ_4B; 1044 nor->read_opcode = SPINOR_OP_READ4_1_1_4;
1045 break; 1045 break;
1046 case SPI_NOR_DUAL: 1046 case SPI_NOR_DUAL:
1047 nor->read_opcode = SPINOR_OP_DUAL_READ_4B; 1047 nor->read_opcode = SPINOR_OP_READ4_1_1_2;
1048 break; 1048 break;
1049 case SPI_NOR_FAST: 1049 case SPI_NOR_FAST:
1050 nor->read_opcode = SPINOR_OP_FAST_READ_4B; 1050 nor->read_opcode = SPINOR_OP_READ4_FAST;
1051 break; 1051 break;
1052 case SPI_NOR_NORMAL: 1052 case SPI_NOR_NORMAL:
1053 nor->read_opcode = SPINOR_OP_NORM_READ_4B; 1053 nor->read_opcode = SPINOR_OP_READ4;
1054 break; 1054 break;
1055 } 1055 }
1056 nor->program_opcode = SPINOR_OP_PP_4B; 1056 nor->program_opcode = SPINOR_OP_PP_4B;