Skip to content

Commit 7738981

Browse files
Rickard x Anderssonmiquelraynal
authored andcommitted
mtd: rawnand: kioxia: Add support for TH58NVG3S0HBAI4
Add timings for Kioxia/Toshiba TH58NVG3S0HBAI4. Timings for this memory matches the timings selected for TH58NVG2S3HBAI4. This patch increases eraseblock write speed from 5248 KiB/s to 6864 KiB/s and erase block read speed from 8542 KiB/s to 18360 KiB/s Tested on i.MX6SX. Signed-off-by: Rickard x Andersson <rickaran@axis.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20220429083931.26795-1-rickaran@axis.com
1 parent 079d634 commit 7738981

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

drivers/mtd/nand/raw/nand_ids.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ struct nand_flash_dev nand_flash_ids[] = {
6161
{"TH58NVG2S3HBAI4 4G 3.3V 8-bit",
6262
{ .id = {0x98, 0xdc, 0x91, 0x15, 0x76} },
6363
SZ_2K, SZ_512, SZ_128K, 0, 5, 128, NAND_ECC_INFO(8, SZ_512) },
64+
{"TH58NVG3S0HBAI4 8G 3.3V 8-bit",
65+
{ .id = {0x98, 0xd3, 0x91, 0x26, 0x76} },
66+
SZ_4K, SZ_1K, SZ_256K, 0, 5, 256, NAND_ECC_INFO(8, SZ_512)},
6467

6568
LEGACY_ID_NAND("NAND 4MiB 5V 8-bit", 0x6B, 4, SZ_8K, SP_OPTIONS),
6669
LEGACY_ID_NAND("NAND 4MiB 3,3V 8-bit", 0xE3, 4, SZ_8K, SP_OPTIONS),

drivers/mtd/nand/raw/nand_toshiba.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,10 @@ static int toshiba_nand_init(struct nand_chip *chip)
287287
if (!strncmp("TC58NVG0S3E", chip->parameters.model,
288288
sizeof("TC58NVG0S3E") - 1))
289289
tc58nvg0s3e_init(chip);
290-
if (!strncmp("TH58NVG2S3HBAI4", chip->parameters.model,
291-
sizeof("TH58NVG2S3HBAI4") - 1))
290+
if ((!strncmp("TH58NVG2S3HBAI4", chip->parameters.model,
291+
sizeof("TH58NVG2S3HBAI4") - 1)) ||
292+
(!strncmp("TH58NVG3S0HBAI4", chip->parameters.model,
293+
sizeof("TH58NVG3S0HBAI4") - 1)))
292294
th58nvg2s3hbai4_init(chip);
293295

294296
return 0;

0 commit comments

Comments
 (0)