--- linux-4.9.37/drivers/mtd/nand/Kconfig 2017-07-12 16:42:41.000000000 +0300 +++ linux-4.9.y/drivers/mtd/nand/Kconfig 2021-06-07 13:01:33.000000000 +0300 @@ -569,4 +569,28 @@ Enables support for NAND controller on MTK SoCs. This controller is found on mt27xx, mt81xx, mt65xx SoCs. +config MTD_SPI_NAND_GOKE + tristate "Support for SPI NAND controller on Goke SoCs" + depends on MTD_NAND + help + Enables support for the SPI NAND device drivers. + +config GOKE_NAND_ECC_STATUS_REPORT + tristate "Report the ecc status to MTD for Goke Nand Driver" + depends on MTD_NAND && ARCH_GOKE + default n + help + Flash Memory Controller reports the ecc status include ECC error + and ECC corrected to MTD to monitor the aging of devices. + +config GOKE_NAND_FS_MAY_NO_YAFFS2 + bool "Remove the restraintion of 16bit ecc type on yaffs2 to Goke" + depends on MFD_GOKE_FMC + default n + help + The ecc type: 16bit is limited by the Goke flash memory controller, + as the yaffs2 tag of goke rootfs limits the min size of CTRL len is 28. + +source "drivers/mtd/nand/gkfmc100/Kconfig" + endif # MTD_NAND