[kernel] fix yaffs on 2.6.25
[openwrt.git] / target / linux / rdc / patches / 001-rdc3210_flash_map.patch
1 Index: linux-2.6.24.7/drivers/mtd/maps/Kconfig
2 ===================================================================
3 --- linux-2.6.24.7.orig/drivers/mtd/maps/Kconfig
4 +++ linux-2.6.24.7/drivers/mtd/maps/Kconfig
5 @@ -117,6 +117,50 @@ config MTD_PNC2000
6 PNC-2000 is the name of Network Camera product from PHOTRON
7 Ltd. in Japan. It uses CFI-compliant flash.
8
9 +config MTD_RDC3210
10 + tristate "CFI Flash device mapped on RDC3210"
11 + depends on X86 && MTD_CFI && MTD_PARTITIONS
12 + help
13 + RDC-3210 is the flash device we find on Ralink reference board.
14 +
15 +config MTD_RDC3210_STATIC_MAP
16 + bool "Partitions on RDC3210 mapped statically" if MTD_RDC3210
17 + select MTD_RDC3210_FACTORY_PRESENT
18 + help
19 + The mapping driver will use the static partition map for the
20 + RDC-3210 flash device.
21 +
22 +config MTD_RDC3210_FACTORY_PRESENT
23 + bool "Reserve a partition on RDC3210 for factory presets"
24 + depends on MTD_RDC3210
25 + default y
26 + help
27 + The mapping driver will reserve a partition on the RDC-3210 flash
28 + device for resetting flash contents to factory defaults.
29 +
30 +config MTD_RDC3210_ALLOW_JFFS2
31 + bool "JFFS2 filesystem usable in a partition on RDC3210"
32 + depends on MTD_RDC3210 && !MTD_RDC3210_STATIC_MAP
33 + help
34 + The mapping driver will align a partition on the RDC-3210 flash
35 + device to an erase-block boundary so that a JFFS2 filesystem may
36 + reside on it.
37 +
38 +config MTD_RDC3210_SIZE
39 + hex "Amount of flash memory on RDC3210"
40 + depends on MTD_RDC3210
41 + default "0x400000"
42 + help
43 + Total size in bytes of the RDC-3210 flash device
44 +
45 +config MTD_RDC3210_BUSWIDTH
46 + int "Width of CFI Flash device mapped on RDC3210"
47 + depends on MTD_RDC3210
48 + default "2"
49 + help
50 + Number of bytes addressed on the RDC-3210 flash device before
51 + addressing the same chip again
52 +
53 config MTD_SC520CDP
54 tristate "CFI Flash device mapped on AMD SC520 CDP"
55 depends on X86 && MTD_CFI && MTD_CONCAT
56 Index: linux-2.6.24.7/drivers/mtd/maps/Makefile
57 ===================================================================
58 --- linux-2.6.24.7.orig/drivers/mtd/maps/Makefile
59 +++ linux-2.6.24.7/drivers/mtd/maps/Makefile
60 @@ -30,6 +30,7 @@ obj-$(CONFIG_MTD_PMC_MSP_EVM) += pmcms
61 obj-$(CONFIG_MTD_PMC_MSP_RAMROOT)+= pmcmsp-ramroot.o
62 obj-$(CONFIG_MTD_PNC2000) += pnc2000.o
63 obj-$(CONFIG_MTD_PCMCIA) += pcmciamtd.o
64 +obj-$(CONFIG_MTD_RDC3210) += rdc3210.o
65 obj-$(CONFIG_MTD_RPXLITE) += rpxlite.o
66 obj-$(CONFIG_MTD_TQM8XXL) += tqm8xxl.o
67 obj-$(CONFIG_MTD_SA1100) += sa1100-flash.o
This page took 0.048471 seconds and 5 git commands to generate.