diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2010-08-19 21:18:21 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-10-24 18:37:32 -0400 |
commit | 432dc821c90114f9b0e00f6752a700e937516ade (patch) | |
tree | 839f774f98a37bb1891c139879ad55dff51794c3 | |
parent | 0ceacf36e9c41859a6072342d27cf6e60776c523 (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/Kconfig | 46 |
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 @@ | |||
1 | menu "RAM/ROM/Flash chip drivers" | 1 | menu "RAM/ROM/Flash chip drivers" |
2 | depends on MTD!=n | ||
3 | 2 | ||
4 | config MTD_CFI | 3 | config 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 | |||
27 | config MTD_GEN_PROBE | 26 | config MTD_GEN_PROBE |
28 | tristate | 27 | tristate |
29 | 28 | ||
29 | if MTD_GEN_PROBE | ||
30 | |||
30 | config MTD_CFI_ADV_OPTIONS | 31 | config 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 | ||
42 | if MTD_CFI_ADV_OPTIONS | ||
43 | |||
42 | choice | 44 | choice |
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 | ||
47 | config MTD_CFI_NOSWAP | 48 | config MTD_CFI_NOSWAP |
@@ -72,7 +73,6 @@ endchoice | |||
72 | 73 | ||
73 | config MTD_CFI_GEOMETRY | 74 | config 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 | ||
83 | if MTD_CFI_GEOMETRY | ||
84 | |||
83 | config MTD_MAP_BANK_WIDTH_1 | 85 | config 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 | ||
90 | config MTD_MAP_BANK_WIDTH_2 | 92 | config 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 | ||
97 | config MTD_MAP_BANK_WIDTH_4 | 99 | config 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 | ||
104 | config MTD_MAP_BANK_WIDTH_8 | 106 | config 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 | ||
111 | config MTD_MAP_BANK_WIDTH_16 | 112 | config 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 | ||
118 | config MTD_MAP_BANK_WIDTH_32 | 118 | config 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 | ||
125 | config MTD_CFI_I1 | 124 | config 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 | ||
132 | config MTD_CFI_I2 | 131 | config 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 | ||
139 | config MTD_CFI_I4 | 138 | config 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 | ||
146 | config MTD_CFI_I8 | 144 | config 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 | ||
150 | endif # MTD_CFI_GEOMETRY | ||
151 | |||
153 | config MTD_OTP | 152 | config 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 | ||
176 | endif # MTD_CFI_ADV_OPTIONS | ||
177 | |||
179 | config MTD_CFI_INTELEXT | 178 | config 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 | ||
189 | config MTD_CFI_AMDSTD | 187 | config 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 | ||
199 | config MTD_CFI_STAA | 196 | config 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 | ||
204 | endif # MTD_GEN_PROBE | ||
205 | |||
208 | config MTD_CFI_UTIL | 206 | config MTD_CFI_UTIL |
209 | tristate | 207 | tristate |
210 | 208 | ||