Skip to content

Commit

Permalink
fix nand patch
Browse files Browse the repository at this point in the history
  • Loading branch information
devbis committed Jul 21, 2024
1 parent 0e08f6a commit 641992d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <linux/device.h>
+#undef DEBUG
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit 641992d

Please sign in to comment.