mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
160 lines
7.0 KiB
Diff
160 lines
7.0 KiB
Diff
From bdb84a22b02b0c2ca76bb3e3e16942338f67999b Mon Sep 17 00:00:00 2001
|
|
From: Thirumalesha Narasimhappa <nthirumalesha7@gmail.com>
|
|
Date: Sun, 8 Nov 2020 19:37:34 +0800
|
|
Subject: [PATCH] mtd: spinand: micron: Use more specific names
|
|
|
|
Rename the read/write/update of SPINAND_OP_VARIANTS() to more
|
|
specialized names.
|
|
|
|
Signed-off-by: Thirumalesha Narasimhappa <nthirumalesha7@gmail.com>
|
|
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
|
|
Link: https://lore.kernel.org/linux-mtd/20201108113735.2533-2-nthirumalesha7@gmail.com
|
|
---
|
|
drivers/mtd/nand/spi/micron.c | 60 +++++++++++++++++------------------
|
|
1 file changed, 30 insertions(+), 30 deletions(-)
|
|
|
|
diff --git a/drivers/mtd/nand/spi/micron.c b/drivers/mtd/nand/spi/micron.c
|
|
index 5d370cfcdaaaa9..afe3ba37dcfb8e 100644
|
|
--- a/drivers/mtd/nand/spi/micron.c
|
|
+++ b/drivers/mtd/nand/spi/micron.c
|
|
@@ -28,7 +28,7 @@
|
|
|
|
#define MICRON_SELECT_DIE(x) ((x) << 6)
|
|
|
|
-static SPINAND_OP_VARIANTS(read_cache_variants,
|
|
+static SPINAND_OP_VARIANTS(quadio_read_cache_variants,
|
|
SPINAND_PAGE_READ_FROM_CACHE_QUADIO_OP(0, 2, NULL, 0),
|
|
SPINAND_PAGE_READ_FROM_CACHE_X4_OP(0, 1, NULL, 0),
|
|
SPINAND_PAGE_READ_FROM_CACHE_DUALIO_OP(0, 1, NULL, 0),
|
|
@@ -36,11 +36,11 @@ static SPINAND_OP_VARIANTS(read_cache_variants,
|
|
SPINAND_PAGE_READ_FROM_CACHE_OP(true, 0, 1, NULL, 0),
|
|
SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0));
|
|
|
|
-static SPINAND_OP_VARIANTS(write_cache_variants,
|
|
+static SPINAND_OP_VARIANTS(x4_write_cache_variants,
|
|
SPINAND_PROG_LOAD_X4(true, 0, NULL, 0),
|
|
SPINAND_PROG_LOAD(true, 0, NULL, 0));
|
|
|
|
-static SPINAND_OP_VARIANTS(update_cache_variants,
|
|
+static SPINAND_OP_VARIANTS(x4_update_cache_variants,
|
|
SPINAND_PROG_LOAD_X4(false, 0, NULL, 0),
|
|
SPINAND_PROG_LOAD(false, 0, NULL, 0));
|
|
|
|
@@ -120,9 +120,9 @@ static const struct spinand_info micron_spinand_table[] = {
|
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x24),
|
|
NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1),
|
|
NAND_ECCREQ(8, 512),
|
|
- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
|
- &write_cache_variants,
|
|
- &update_cache_variants),
|
|
+ SPINAND_INFO_OP_VARIANTS(&quadio_read_cache_variants,
|
|
+ &x4_write_cache_variants,
|
|
+ &x4_update_cache_variants),
|
|
0,
|
|
SPINAND_ECCINFO(µn_8_ooblayout,
|
|
micron_8_ecc_get_status)),
|
|
@@ -131,9 +131,9 @@ static const struct spinand_info micron_spinand_table[] = {
|
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x25),
|
|
NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1),
|
|
NAND_ECCREQ(8, 512),
|
|
- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
|
- &write_cache_variants,
|
|
- &update_cache_variants),
|
|
+ SPINAND_INFO_OP_VARIANTS(&quadio_read_cache_variants,
|
|
+ &x4_write_cache_variants,
|
|
+ &x4_update_cache_variants),
|
|
0,
|
|
SPINAND_ECCINFO(µn_8_ooblayout,
|
|
micron_8_ecc_get_status)),
|
|
@@ -142,9 +142,9 @@ static const struct spinand_info micron_spinand_table[] = {
|
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x14),
|
|
NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
|
|
NAND_ECCREQ(8, 512),
|
|
- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
|
- &write_cache_variants,
|
|
- &update_cache_variants),
|
|
+ SPINAND_INFO_OP_VARIANTS(&quadio_read_cache_variants,
|
|
+ &x4_write_cache_variants,
|
|
+ &x4_update_cache_variants),
|
|
0,
|
|
SPINAND_ECCINFO(µn_8_ooblayout,
|
|
micron_8_ecc_get_status)),
|
|
@@ -153,9 +153,9 @@ static const struct spinand_info micron_spinand_table[] = {
|
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x15),
|
|
NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
|
|
NAND_ECCREQ(8, 512),
|
|
- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
|
- &write_cache_variants,
|
|
- &update_cache_variants),
|
|
+ SPINAND_INFO_OP_VARIANTS(&quadio_read_cache_variants,
|
|
+ &x4_write_cache_variants,
|
|
+ &x4_update_cache_variants),
|
|
0,
|
|
SPINAND_ECCINFO(µn_8_ooblayout,
|
|
micron_8_ecc_get_status)),
|
|
@@ -164,9 +164,9 @@ static const struct spinand_info micron_spinand_table[] = {
|
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x36),
|
|
NAND_MEMORG(1, 2048, 128, 64, 2048, 80, 2, 1, 2),
|
|
NAND_ECCREQ(8, 512),
|
|
- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
|
- &write_cache_variants,
|
|
- &update_cache_variants),
|
|
+ SPINAND_INFO_OP_VARIANTS(&quadio_read_cache_variants,
|
|
+ &x4_write_cache_variants,
|
|
+ &x4_update_cache_variants),
|
|
0,
|
|
SPINAND_ECCINFO(µn_8_ooblayout,
|
|
micron_8_ecc_get_status),
|
|
@@ -176,9 +176,9 @@ static const struct spinand_info micron_spinand_table[] = {
|
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x34),
|
|
NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
|
|
NAND_ECCREQ(8, 512),
|
|
- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
|
- &write_cache_variants,
|
|
- &update_cache_variants),
|
|
+ SPINAND_INFO_OP_VARIANTS(&quadio_read_cache_variants,
|
|
+ &x4_write_cache_variants,
|
|
+ &x4_update_cache_variants),
|
|
SPINAND_HAS_CR_FEAT_BIT,
|
|
SPINAND_ECCINFO(µn_8_ooblayout,
|
|
micron_8_ecc_get_status)),
|
|
@@ -187,9 +187,9 @@ static const struct spinand_info micron_spinand_table[] = {
|
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x35),
|
|
NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
|
|
NAND_ECCREQ(8, 512),
|
|
- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
|
- &write_cache_variants,
|
|
- &update_cache_variants),
|
|
+ SPINAND_INFO_OP_VARIANTS(&quadio_read_cache_variants,
|
|
+ &x4_write_cache_variants,
|
|
+ &x4_update_cache_variants),
|
|
SPINAND_HAS_CR_FEAT_BIT,
|
|
SPINAND_ECCINFO(µn_8_ooblayout,
|
|
micron_8_ecc_get_status)),
|
|
@@ -198,9 +198,9 @@ static const struct spinand_info micron_spinand_table[] = {
|
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x46),
|
|
NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 2),
|
|
NAND_ECCREQ(8, 512),
|
|
- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
|
- &write_cache_variants,
|
|
- &update_cache_variants),
|
|
+ SPINAND_INFO_OP_VARIANTS(&quadio_read_cache_variants,
|
|
+ &x4_write_cache_variants,
|
|
+ &x4_update_cache_variants),
|
|
SPINAND_HAS_CR_FEAT_BIT,
|
|
SPINAND_ECCINFO(µn_8_ooblayout,
|
|
micron_8_ecc_get_status),
|
|
@@ -210,9 +210,9 @@ static const struct spinand_info micron_spinand_table[] = {
|
|
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0x47),
|
|
NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 2),
|
|
NAND_ECCREQ(8, 512),
|
|
- SPINAND_INFO_OP_VARIANTS(&read_cache_variants,
|
|
- &write_cache_variants,
|
|
- &update_cache_variants),
|
|
+ SPINAND_INFO_OP_VARIANTS(&quadio_read_cache_variants,
|
|
+ &x4_write_cache_variants,
|
|
+ &x4_update_cache_variants),
|
|
SPINAND_HAS_CR_FEAT_BIT,
|
|
SPINAND_ECCINFO(µn_8_ooblayout,
|
|
micron_8_ecc_get_status),
|