aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-08-19 21:18:21 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-10-24 18:37:32 -0400
commit432dc821c90114f9b0e00f6752a700e937516ade (patch)
tree839f774f98a37bb1891c139879ad55dff51794c3
parent0ceacf36e9c41859a6072342d27cf6e60776c523 (diff)
mtd: cleanup Kconfig dependencies
Remove the MTD!=n dependency since that is handled by drivers/mtd/Kconfig. Simplify the dependency checks for mtd/chips by using if/endif blocks. Remove all default n since that is the Kconfig default. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r--drivers/mtd/chips/Kconfig46
1 files changed, 22 insertions, 24 deletions
diff --git a/drivers/mtd/chips/Kconfig b/drivers/mtd/chips/Kconfig
index 35c6a23b183b..baac35339172 100644
--- a/drivers/mtd/chips/Kconfig
+++ b/drivers/mtd/chips/Kconfig
@@ -1,5 +1,4 @@
1menu "RAM/ROM/Flash chip drivers" 1menu "RAM/ROM/Flash chip drivers"
2 depends on MTD!=n
3 2
4config MTD_CFI 3config MTD_CFI
5 tristate "Detect flash chips by Common Flash Interface (CFI) probe" 4 tristate "Detect flash chips by Common Flash Interface (CFI) probe"
@@ -27,9 +26,10 @@ config MTD_JEDECPROBE
27config MTD_GEN_PROBE 26config MTD_GEN_PROBE
28 tristate 27 tristate
29 28
29if MTD_GEN_PROBE
30
30config MTD_CFI_ADV_OPTIONS 31config MTD_CFI_ADV_OPTIONS
31 bool "Flash chip driver advanced configuration options" 32 bool "Flash chip driver advanced configuration options"
32 depends on MTD_GEN_PROBE
33 help 33 help
34 If you need to specify a specific endianness for access to flash 34 If you need to specify a specific endianness for access to flash
35 chips, or if you wish to reduce the size of the kernel by including 35 chips, or if you wish to reduce the size of the kernel by including
@@ -39,9 +39,10 @@ config MTD_CFI_ADV_OPTIONS
39 39
40 If unsure, say 'N'. 40 If unsure, say 'N'.
41 41
42if MTD_CFI_ADV_OPTIONS
43
42choice 44choice
43 prompt "Flash cmd/query data swapping" 45 prompt "Flash cmd/query data swapping"
44 depends on MTD_CFI_ADV_OPTIONS
45 default MTD_CFI_NOSWAP 46 default MTD_CFI_NOSWAP
46 47
47config MTD_CFI_NOSWAP 48config MTD_CFI_NOSWAP
@@ -72,7 +73,6 @@ endchoice
72 73
73config MTD_CFI_GEOMETRY 74config MTD_CFI_GEOMETRY
74 bool "Specific CFI Flash geometry selection" 75 bool "Specific CFI Flash geometry selection"
75 depends on MTD_CFI_ADV_OPTIONS
76 help 76 help
77 This option does not affect the code directly, but will enable 77 This option does not affect the code directly, but will enable
78 some other configuration options which would allow you to reduce 78 some other configuration options which would allow you to reduce
@@ -80,81 +80,78 @@ config MTD_CFI_GEOMETRY
80 arrangements of CFI chips. If unsure, say 'N' and all options 80 arrangements of CFI chips. If unsure, say 'N' and all options
81 which are supported by the current code will be enabled. 81 which are supported by the current code will be enabled.
82 82
83if MTD_CFI_GEOMETRY
84
83config MTD_MAP_BANK_WIDTH_1 85config MTD_MAP_BANK_WIDTH_1
84 bool "Support 8-bit buswidth" if MTD_CFI_GEOMETRY 86 bool "Support 8-bit buswidth"
85 default y 87 default y
86 help 88 help
87 If you wish to support CFI devices on a physical bus which is 89 If you wish to support CFI devices on a physical bus which is
88 8 bits wide, say 'Y'. 90 8 bits wide, say 'Y'.
89 91
90config MTD_MAP_BANK_WIDTH_2 92config MTD_MAP_BANK_WIDTH_2
91 bool "Support 16-bit buswidth" if MTD_CFI_GEOMETRY 93 bool "Support 16-bit buswidth"
92 default y 94 default y
93 help 95 help
94 If you wish to support CFI devices on a physical bus which is 96 If you wish to support CFI devices on a physical bus which is
95 16 bits wide, say 'Y'. 97 16 bits wide, say 'Y'.
96 98
97config MTD_MAP_BANK_WIDTH_4 99config MTD_MAP_BANK_WIDTH_4
98 bool "Support 32-bit buswidth" if MTD_CFI_GEOMETRY 100 bool "Support 32-bit buswidth"
99 default y 101 default y
100 help 102 help
101 If you wish to support CFI devices on a physical bus which is 103 If you wish to support CFI devices on a physical bus which is
102 32 bits wide, say 'Y'. 104 32 bits wide, say 'Y'.
103 105
104config MTD_MAP_BANK_WIDTH_8 106config MTD_MAP_BANK_WIDTH_8
105 bool "Support 64-bit buswidth" if MTD_CFI_GEOMETRY 107 bool "Support 64-bit buswidth"
106 default n
107 help 108 help
108 If you wish to support CFI devices on a physical bus which is 109 If you wish to support CFI devices on a physical bus which is
109 64 bits wide, say 'Y'. 110 64 bits wide, say 'Y'.
110 111
111config MTD_MAP_BANK_WIDTH_16 112config MTD_MAP_BANK_WIDTH_16
112 bool "Support 128-bit buswidth" if MTD_CFI_GEOMETRY 113 bool "Support 128-bit buswidth"
113 default n
114 help 114 help
115 If you wish to support CFI devices on a physical bus which is 115 If you wish to support CFI devices on a physical bus which is
116 128 bits wide, say 'Y'. 116 128 bits wide, say 'Y'.
117 117
118config MTD_MAP_BANK_WIDTH_32 118config MTD_MAP_BANK_WIDTH_32
119 bool "Support 256-bit buswidth" if MTD_CFI_GEOMETRY 119 bool "Support 256-bit buswidth"
120 default n
121 help 120 help
122 If you wish to support CFI devices on a physical bus which is 121 If you wish to support CFI devices on a physical bus which is
123 256 bits wide, say 'Y'. 122 256 bits wide, say 'Y'.
124 123
125config MTD_CFI_I1 124config MTD_CFI_I1
126 bool "Support 1-chip flash interleave" if MTD_CFI_GEOMETRY 125 bool "Support 1-chip flash interleave"
127 default y 126 default y
128 help 127 help
129 If your flash chips are not interleaved - i.e. you only have one 128 If your flash chips are not interleaved - i.e. you only have one
130 flash chip addressed by each bus cycle, then say 'Y'. 129 flash chip addressed by each bus cycle, then say 'Y'.
131 130
132config MTD_CFI_I2 131config MTD_CFI_I2
133 bool "Support 2-chip flash interleave" if MTD_CFI_GEOMETRY 132 bool "Support 2-chip flash interleave"
134 default y 133 default y
135 help 134 help
136 If your flash chips are interleaved in pairs - i.e. you have two 135 If your flash chips are interleaved in pairs - i.e. you have two
137 flash chips addressed by each bus cycle, then say 'Y'. 136 flash chips addressed by each bus cycle, then say 'Y'.
138 137
139config MTD_CFI_I4 138config MTD_CFI_I4
140 bool "Support 4-chip flash interleave" if MTD_CFI_GEOMETRY 139 bool "Support 4-chip flash interleave"
141 default n
142 help 140 help
143 If your flash chips are interleaved in fours - i.e. you have four 141 If your flash chips are interleaved in fours - i.e. you have four
144 flash chips addressed by each bus cycle, then say 'Y'. 142 flash chips addressed by each bus cycle, then say 'Y'.
145 143
146config MTD_CFI_I8 144config MTD_CFI_I8
147 bool "Support 8-chip flash interleave" if MTD_CFI_GEOMETRY 145 bool "Support 8-chip flash interleave"
148 default n
149 help 146 help
150 If your flash chips are interleaved in eights - i.e. you have eight 147 If your flash chips are interleaved in eights - i.e. you have eight
151 flash chips addressed by each bus cycle, then say 'Y'. 148 flash chips addressed by each bus cycle, then say 'Y'.
152 149
150endif # MTD_CFI_GEOMETRY
151
153config MTD_OTP 152config MTD_OTP
154 bool "Protection Registers aka one-time programmable (OTP) bits" 153 bool "Protection Registers aka one-time programmable (OTP) bits"
155 depends on MTD_CFI_ADV_OPTIONS
156 select HAVE_MTD_OTP 154 select HAVE_MTD_OTP
157 default n
158 help 155 help
159 This enables support for reading, writing and locking so called 156 This enables support for reading, writing and locking so called
160 "Protection Registers" present on some flash chips. 157 "Protection Registers" present on some flash chips.
@@ -176,9 +173,10 @@ config MTD_OTP
176 This feature should therefore be used with extreme care. Any mistake 173 This feature should therefore be used with extreme care. Any mistake
177 in the programming of OTP bits will waste them. 174 in the programming of OTP bits will waste them.
178 175
176endif # MTD_CFI_ADV_OPTIONS
177
179config MTD_CFI_INTELEXT 178config MTD_CFI_INTELEXT
180 tristate "Support for Intel/Sharp flash chips" 179 tristate "Support for Intel/Sharp flash chips"
181 depends on MTD_GEN_PROBE
182 select MTD_CFI_UTIL 180 select MTD_CFI_UTIL
183 help 181 help
184 The Common Flash Interface defines a number of different command 182 The Common Flash Interface defines a number of different command
@@ -188,7 +186,6 @@ config MTD_CFI_INTELEXT
188 186
189config MTD_CFI_AMDSTD 187config MTD_CFI_AMDSTD
190 tristate "Support for AMD/Fujitsu/Spansion flash chips" 188 tristate "Support for AMD/Fujitsu/Spansion flash chips"
191 depends on MTD_GEN_PROBE
192 select MTD_CFI_UTIL 189 select MTD_CFI_UTIL
193 help 190 help
194 The Common Flash Interface defines a number of different command 191 The Common Flash Interface defines a number of different command
@@ -198,13 +195,14 @@ config MTD_CFI_AMDSTD
198 195
199config MTD_CFI_STAA 196config MTD_CFI_STAA
200 tristate "Support for ST (Advanced Architecture) flash chips" 197 tristate "Support for ST (Advanced Architecture) flash chips"
201 depends on MTD_GEN_PROBE
202 select MTD_CFI_UTIL 198 select MTD_CFI_UTIL
203 help 199 help
204 The Common Flash Interface defines a number of different command 200 The Common Flash Interface defines a number of different command
205 sets which a CFI-compliant chip may claim to implement. This code 201 sets which a CFI-compliant chip may claim to implement. This code
206 provides support for one of those command sets. 202 provides support for one of those command sets.
207 203
204endif # MTD_GEN_PROBE
205
208config MTD_CFI_UTIL 206config MTD_CFI_UTIL
209 tristate 207 tristate
210 208