Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/mtd/nvt_flash_spi/nvt_flash_spi_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ struct drv_nand_dev_info {
#define MFG_ID_DOSILICON 0xE5
#define MFG_ID_XTX 0x0B
#define MFG_ID_FUDAN 0xA1
#define MFG_ID_FORESEE 0xCD

#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
Expand Down
7 changes: 7 additions & 0 deletions drivers/mtd/spiflash/spinand.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ static struct nand_flash_dev spinand_flash_ids[] = {
{"FM25S01A 1Gbit 3.3V",
{ .id = {MFG_ID_FUDAN, 0xE4} },
SZ_2K, SZ_128, SZ_128K, 0, 2, 64 },
// FORESEE
{"F35SQA512M 512Mbit 3.3V",
{ .id = {MFG_ID_FORESEE, 0x70} },
SZ_2K, SZ_64, SZ_128K, 0, 2, 64 },
};

#ifdef CONFIG_MTD_SPINAND_HWECC
Expand Down Expand Up @@ -1397,6 +1401,9 @@ static int spinand_probe(struct platform_device *pdev)
} else if (chip_id == MFG_ID_FUDAN) {
info->nand_chip.ecc.strength = 1;
mtd->bitflip_threshold = 1;
} else if (chip_id == MFG_ID_FORESEE) {
info->nand_chip.ecc.strength = 1;
mtd->bitflip_threshold = 1;
} else {
mtd->bitflip_threshold = DIV_ROUND_UP(info->nand_chip.ecc.strength * 3, 4);
}
Expand Down