Skip to content

Commit cccea94

Browse files
ikegami-tmiquelraynal
authored andcommitted
mtd: cfi_cmdset_0002: Add S29GL064N ID definition
It is for the model number 01, 02, V1 and V2. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com> Acked-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20220323170458.5608-4-ikegami.t@gmail.com
1 parent 0a8e983 commit cccea94

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/mtd/chips/cfi_cmdset_0002.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#define SST49LF040B 0x0050
4949
#define SST49LF008A 0x005a
5050
#define AT49BV6416 0x00d6
51+
#define S29GL064N_MN12 0x0c01
5152

5253
/*
5354
* Status Register bit description. Used by flash devices that don't
@@ -445,7 +446,7 @@ static void fixup_quirks(struct mtd_info *mtd)
445446
struct map_info *map = mtd->priv;
446447
struct cfi_private *cfi = map->fldrv_priv;
447448

448-
if (cfi->mfr == CFI_MFR_AMD && cfi->id == 0x0c01)
449+
if (cfi->mfr == CFI_MFR_AMD && cfi->id == S29GL064N_MN12)
449450
cfi->quirks |= CFI_QUIRK_DQ_TRUE_DATA;
450451
}
451452

@@ -475,7 +476,7 @@ static struct cfi_fixup cfi_fixup_table[] = {
475476
{ CFI_MFR_AMD, 0x0056, fixup_use_secsi },
476477
{ CFI_MFR_AMD, 0x005C, fixup_use_secsi },
477478
{ CFI_MFR_AMD, 0x005F, fixup_use_secsi },
478-
{ CFI_MFR_AMD, 0x0c01, fixup_s29gl064n_sectors },
479+
{ CFI_MFR_AMD, S29GL064N_MN12, fixup_s29gl064n_sectors },
479480
{ CFI_MFR_AMD, 0x1301, fixup_s29gl064n_sectors },
480481
{ CFI_MFR_AMD, 0x1a00, fixup_s29gl032n_sectors },
481482
{ CFI_MFR_AMD, 0x1a01, fixup_s29gl032n_sectors },

0 commit comments

Comments
 (0)