diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 4a5192a3dae..f6bc48cc3a1 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -386,7 +386,7 @@ config HW_RANDOM_CAVIUM config HW_RANDOM_NVT tristate "Novatek True Random Number Generator support" - depends on HW_RANDOM && NVT_IVOT_PLAT_NA51055 + depends on HW_RANDOM && (NVT_IVOT_PLAT_NA51055 || NVT_IVOT_PLAT_NA51089) default HW_RANDOM ---help--- This driver provides kernel-side support for the Random Number 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 ca332fcf9bc..8d38966b482 100644 --- a/drivers/mtd/nvt_flash_spi/nvt_flash_spi_int.h +++ b/drivers/mtd/nvt_flash_spi/nvt_flash_spi_int.h @@ -282,6 +282,7 @@ struct drv_nand_dev_info { #define MFG_ID_TOSHIBA 0x98 #define MFG_ID_DOSILICON 0xE5 #define MFG_ID_XTX 0x0B +#define MFG_ID_FUDAN 0xA1 #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 41241b0b24a..798630760c0 100644 --- a/drivers/mtd/spiflash/spinand.c +++ b/drivers/mtd/spiflash/spinand.c @@ -427,6 +427,10 @@ static struct nand_flash_dev spinand_flash_ids[] = { {"GD5F4GQ4UAYIG 4GiB 3.3V", { .id = {MFG_ID_GD, 0xF4} }, SZ_2K, SZ_512, SZ_128K, 0, 2, 64 }, + // Fudan Micro + {"FM25S01A 1Gbit 3.3V", + { .id = {MFG_ID_FUDAN, 0xE4} }, + SZ_2K, SZ_128, SZ_128K, 0, 2, 64 }, }; #ifdef CONFIG_MTD_SPINAND_HWECC @@ -1390,6 +1394,9 @@ static int spinand_probe(struct platform_device *pdev) } else if (chip_id == MFG_ID_XTX) { info->nand_chip.ecc.strength = 8; mtd->bitflip_threshold = 6; + } else if (chip_id == MFG_ID_FUDAN) { + info->nand_chip.ecc.strength = 1; + mtd->bitflip_threshold = 1; } else { mtd->bitflip_threshold = DIV_ROUND_UP(info->nand_chip.ecc.strength * 3, 4); }