diff --git a/target/linux/ramips/patches-6.6/0038-mtd-ralink-add-mt7620-nand-driver.patch b/target/linux/ramips/patches-6.6/0038-mtd-ralink-add-mt7620-nand-driver.patch index 2b1a1daba1e079..4c0e78d9a26ee4 100644 --- a/target/linux/ramips/patches-6.6/0038-mtd-ralink-add-mt7620-nand-driver.patch +++ b/target/linux/ramips/patches-6.6/0038-mtd-ralink-add-mt7620-nand-driver.patch @@ -32,7 +32,7 @@ Subject: [PATCH] mtd ralink add mt7620-nand driver +obj-$(CONFIG_MTD_NAND_MT7620) += ralink_nand.o --- /dev/null +++ b/drivers/mtd/maps/ralink_nand.c -@@ -0,0 +1,2095 @@ +@@ -0,0 +1,2100 @@ +#define DEBUG +#include +#undef DEBUG @@ -62,6 +62,11 @@ Subject: [PATCH] mtd ralink add mt7620-nand driver + +#define READ_STATUS_RETRY 1000 + ++#ifndef MTD_MAX_OOBFREE_ENTRIES_LARGE ++#define MTD_MAX_OOBFREE_ENTRIES_LARGE 32 ++#define MTD_MAX_ECCPOS_ENTRIES_LARGE 640 ++#endif ++ +struct nand_ecclayout { + __u32 eccbytes; + __u32 eccpos[MTD_MAX_ECCPOS_ENTRIES_LARGE];