diff --git a/drivers/mtd/nvt_flash_spi/nvt_flash_spi_int.h b/drivers/mtd/nvt_flash_spi/nvt_flash_spi_int.h index 8d38966b48..a56a9a7538 100644 --- a/drivers/mtd/nvt_flash_spi/nvt_flash_spi_int.h +++ b/drivers/mtd/nvt_flash_spi/nvt_flash_spi_int.h @@ -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 */ diff --git a/drivers/mtd/spiflash/spinand.c b/drivers/mtd/spiflash/spinand.c index 798630760c..01e1a8f73c 100644 --- a/drivers/mtd/spiflash/spinand.c +++ b/drivers/mtd/spiflash/spinand.c @@ -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 @@ -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); }