mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 16:54:03 +02:00
fix-compile-MTD-driver-error
Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
This commit is contained in:
parent
da071d0251
commit
a212074b0a
@ -251,7 +251,21 @@ CONFIG_MMC_JZ=y
|
||||
CONFIG_MODULE_SRCVERSION_ALL=y
|
||||
CONFIG_MODVERSIONS=y
|
||||
CONFIG_MSDOS_FS=y
|
||||
# CONFIG_MTD is not set
|
||||
CONFIG_MTD_BADBLOCK_FLAG_PAGE=127
|
||||
# CONFIG_MTD_HW_BCH_ECC is not set
|
||||
CONFIG_MTD_HW_HM_ECC=y
|
||||
# CONFIG_MTD_HW_RS_ECC is not set
|
||||
# CONFIG_MTD_MTDBLOCK_WRITE_VERIFY_ENABLE is not set
|
||||
CONFIG_MTD_NAND=y
|
||||
# CONFIG_MTD_NAND_CS2 is not set
|
||||
# CONFIG_MTD_NAND_CS3 is not set
|
||||
# CONFIG_MTD_NAND_CS4 is not set
|
||||
CONFIG_MTD_NAND_JZ4740=y
|
||||
CONFIG_MTD_NAND_MULTI_PLANE=y
|
||||
CONFIG_MTD_OOB_COPIES=3
|
||||
# CONFIG_MTD_ROOTFS_ROOT_DEV is not set
|
||||
# CONFIG_MTD_ROOTFS_SPLIT is not set
|
||||
# CONFIG_MTD_SW_HM_ECC is not set
|
||||
# CONFIG_NETFILTER is not set
|
||||
# CONFIG_NET_SCHED is not set
|
||||
# CONFIG_NEW_LEDS is not set
|
||||
|
@ -0,0 +1,27 @@
|
||||
From c813c2fcb76ffae92f2728d11f44169a3c3d6834 Mon Sep 17 00:00:00 2001
|
||||
From: Xiangfu Liu <xiangfu.z@gmail.com>
|
||||
Date: Sun, 26 Jul 2009 13:00:34 +0800
|
||||
Subject: [PATCH] fix-compile-jz-nand-error.patch
|
||||
|
||||
Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
|
||||
---
|
||||
include/linux/mtd/partitions.h | 3 +++
|
||||
1 files changed, 3 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h
|
||||
index c92b4d4..6090f0e 100644
|
||||
--- a/include/linux/mtd/partitions.h
|
||||
+++ b/include/linux/mtd/partitions.h
|
||||
@@ -38,6 +38,9 @@ struct mtd_partition {
|
||||
char *name; /* identifier string */
|
||||
u_int32_t size; /* partition size */
|
||||
u_int32_t offset; /* offset within the master MTD space */
|
||||
+ char use_planes; /* flag to specify whether multiple planes of
|
||||
+ * NAND is used in the partition
|
||||
+ */
|
||||
u_int32_t mask_flags; /* master MTD flags to mask out for this partition */
|
||||
struct nand_ecclayout *ecclayout; /* out of band layout for this partition (NAND only)*/
|
||||
struct mtd_info **mtdp; /* pointer to store the MTD object */
|
||||
--
|
||||
1.6.0.4
|
||||
|
Loading…
Reference in New Issue
Block a user