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