Commit 942556a92a8c1eb1bd76584a5143f6f57dcb25ad
Committed by
Wolfgang Denk
1 parent
8d2effea23
Exists in
master
and in
54 other branches
mtd: MTD related config header changes (mtdparts command)
By changing the cmd_mtdparts to only use the MTD infrastructure and not the direct interface to the CFI NOR FLASH driver we now need to add the MTD infrastructure to all boards using those mtdparts commands. This patch adds those components: CONFIG_MTD_DEVICE (for all FLASH types) plus CONFIG_FLASH_CFI_MTD (for NOR FLASH) To all board maintainers: Please test this on your platforms and report any problems/issues found. Thanks. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Ron Madrid <info@sheldoninst.com> Cc: Georg Schardt <schardt@team-ctech.de> Cc: Michal Simek <monstr@monstr.eu> Cc: Ladislav Michl <ladis@linux-mips.org> Cc: Martin Krause <martin.krause@tqs.de> Cc: Gary Jennejohn <garyj@denx.de> Cc: Ricardo Ribalda <ricardo.ribalda@uam.es>
Showing 35 changed files with 66 additions and 0 deletions Side-by-side Diff
- include/configs/BC3450.h
- include/configs/FPS850L.h
- include/configs/FPS860L.h
- include/configs/SIMPC8313.h
- include/configs/TB5200.h
- include/configs/TQM5200.h
- include/configs/TQM823L.h
- include/configs/TQM823M.h
- include/configs/TQM834x.h
- include/configs/TQM850L.h
- include/configs/TQM850M.h
- include/configs/TQM855L.h
- include/configs/TQM855M.h
- include/configs/TQM85xx.h
- include/configs/TQM860L.h
- include/configs/TQM860M.h
- include/configs/TQM862L.h
- include/configs/TQM862M.h
- include/configs/TQM866M.h
- include/configs/apollon.h
- include/configs/cm5200.h
- include/configs/fx12mm.h
- include/configs/idmr.h
- include/configs/microblaze-generic.h
- include/configs/motionpro.h
- include/configs/mx1fs2.h
- include/configs/netstar.h
- include/configs/omap3_beagle.h
- include/configs/qong.h
- include/configs/smmaco4.h
- include/configs/trab.h
- include/configs/vct.h
- include/configs/virtlab2.h
- include/configs/voiceblue.h
- include/configs/xilinx-ppc.h
include/configs/BC3450.h
... | ... | @@ -347,6 +347,8 @@ |
347 | 347 | |
348 | 348 | /* Dynamic MTD partition support */ |
349 | 349 | #define CONFIG_CMD_MTDPARTS |
350 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
351 | +#define CONFIG_FLASH_CFI_MTD | |
350 | 352 | #define MTDIDS_DEFAULT "nor0=TQM5200-0" |
351 | 353 | #define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:640k(firmware)," \ |
352 | 354 | "1408k(kernel)," \ |
include/configs/FPS850L.h
... | ... | @@ -217,6 +217,8 @@ |
217 | 217 | * Dynamic MTD partition support |
218 | 218 | */ |
219 | 219 | #define CONFIG_CMD_MTDPARTS |
220 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
221 | +#define CONFIG_FLASH_CFI_MTD | |
220 | 222 | #define MTDIDS_DEFAULT "nor0=TQM8xxL-0" |
221 | 223 | |
222 | 224 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \ |
include/configs/FPS860L.h
... | ... | @@ -217,6 +217,8 @@ |
217 | 217 | * Dynamic MTD partition support |
218 | 218 | */ |
219 | 219 | #define CONFIG_CMD_MTDPARTS |
220 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
221 | +#define CONFIG_FLASH_CFI_MTD | |
220 | 222 | #define MTDIDS_DEFAULT "nor0=TQM8xxL-0" |
221 | 223 | |
222 | 224 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \ |
include/configs/SIMPC8313.h
... | ... | @@ -190,6 +190,7 @@ |
190 | 190 | |
191 | 191 | /* mtdparts command line support */ |
192 | 192 | #define CONFIG_CMD_MTDPARTS |
193 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
193 | 194 | #define MTDIDS_DEFAULT "nand0=nand0" |
194 | 195 | #define MTDPARTS_DEFAULT "mtdparts=nand0:2M(u-boot),6M(kernel),-(jffs2)" |
195 | 196 |
include/configs/TB5200.h
... | ... | @@ -276,6 +276,8 @@ |
276 | 276 | |
277 | 277 | /* Dynamic MTD partition support */ |
278 | 278 | #define CONFIG_CMD_MTDPARTS |
279 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
280 | +#define CONFIG_FLASH_CFI_MTD | |
279 | 281 | #define MTDIDS_DEFAULT "nor0=TQM5200-0" |
280 | 282 | #if defined(CONFIG_TQM5200_B) |
281 | 283 | #define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:768k(firmware)," \ |
include/configs/TQM5200.h
... | ... | @@ -408,6 +408,8 @@ |
408 | 408 | |
409 | 409 | /* Dynamic MTD partition support */ |
410 | 410 | #define CONFIG_CMD_MTDPARTS |
411 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
412 | +#define CONFIG_FLASH_CFI_MTD | |
411 | 413 | #define MTDIDS_DEFAULT "nor0=TQM5200-0" |
412 | 414 | |
413 | 415 | #ifdef CONFIG_STK52XX |
include/configs/TQM823L.h
... | ... | @@ -232,6 +232,8 @@ |
232 | 232 | * Dynamic MTD partition support |
233 | 233 | */ |
234 | 234 | #define CONFIG_CMD_MTDPARTS |
235 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
236 | +#define CONFIG_FLASH_CFI_MTD | |
235 | 237 | #define MTDIDS_DEFAULT "nor0=TQM8xxL-0" |
236 | 238 | |
237 | 239 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \ |
include/configs/TQM823M.h
... | ... | @@ -228,6 +228,8 @@ |
228 | 228 | * Dynamic MTD partition support |
229 | 229 | */ |
230 | 230 | #define CONFIG_CMD_MTDPARTS |
231 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
232 | +#define CONFIG_FLASH_CFI_MTD | |
231 | 233 | #define MTDIDS_DEFAULT "nor0=TQM8xxM-0" |
232 | 234 | |
233 | 235 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \ |
include/configs/TQM834x.h
... | ... | @@ -534,6 +534,8 @@ |
534 | 534 | */ |
535 | 535 | /* mtdparts command line support */ |
536 | 536 | #define CONFIG_CMD_MTDPARTS |
537 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
538 | +#define CONFIG_FLASH_CFI_MTD | |
537 | 539 | #define MTDIDS_DEFAULT "nor0=TQM834x-0" |
538 | 540 | |
539 | 541 | /* default mtd partition table */ |
include/configs/TQM850L.h
... | ... | @@ -217,6 +217,8 @@ |
217 | 217 | * Dynamic MTD partition support |
218 | 218 | */ |
219 | 219 | #define CONFIG_CMD_MTDPARTS |
220 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
221 | +#define CONFIG_FLASH_CFI_MTD | |
220 | 222 | #define MTDIDS_DEFAULT "nor0=TQM8xxL-0" |
221 | 223 | |
222 | 224 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \ |
include/configs/TQM850M.h
... | ... | @@ -217,6 +217,8 @@ |
217 | 217 | * Dynamic MTD partition support |
218 | 218 | */ |
219 | 219 | #define CONFIG_CMD_MTDPARTS |
220 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
221 | +#define CONFIG_FLASH_CFI_MTD | |
220 | 222 | #define MTDIDS_DEFAULT "nor0=TQM8xxM-0" |
221 | 223 | |
222 | 224 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \ |
include/configs/TQM855L.h
... | ... | @@ -222,6 +222,8 @@ |
222 | 222 | * Dynamic MTD partition support |
223 | 223 | */ |
224 | 224 | #define CONFIG_CMD_MTDPARTS |
225 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
226 | +#define CONFIG_FLASH_CFI_MTD | |
225 | 227 | #define MTDIDS_DEFAULT "nor0=TQM8xxL-0" |
226 | 228 | |
227 | 229 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \ |
include/configs/TQM855M.h
... | ... | @@ -257,6 +257,8 @@ |
257 | 257 | * Dynamic MTD partition support |
258 | 258 | */ |
259 | 259 | #define CONFIG_CMD_MTDPARTS |
260 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
261 | +#define CONFIG_FLASH_CFI_MTD | |
260 | 262 | #define MTDIDS_DEFAULT "nor0=TQM8xxM-0" |
261 | 263 | |
262 | 264 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \ |
include/configs/TQM85xx.h
... | ... | @@ -567,6 +567,8 @@ |
567 | 567 | #define CONFIG_JFFS2_NAND 1 |
568 | 568 | |
569 | 569 | #ifdef CONFIG_CMD_MTDPARTS |
570 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
571 | +#define CONFIG_FLASH_CFI_MTD | |
570 | 572 | #define MTDIDS_DEFAULT "nand0=TQM85xx-nand" |
571 | 573 | #define MTDPARTS_DEFAULT "mtdparts=TQM85xx-nand:-" |
572 | 574 | #else |
include/configs/TQM860L.h
... | ... | @@ -221,6 +221,8 @@ |
221 | 221 | * Dynamic MTD partition support |
222 | 222 | */ |
223 | 223 | #define CONFIG_CMD_MTDPARTS |
224 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
225 | +#define CONFIG_FLASH_CFI_MTD | |
224 | 226 | #define MTDIDS_DEFAULT "nor0=TQM8xxL-0" |
225 | 227 | |
226 | 228 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \ |
include/configs/TQM860M.h
... | ... | @@ -222,6 +222,8 @@ |
222 | 222 | * Dynamic MTD partition support |
223 | 223 | */ |
224 | 224 | #define CONFIG_CMD_MTDPARTS |
225 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
226 | +#define CONFIG_FLASH_CFI_MTD | |
225 | 227 | #define MTDIDS_DEFAULT "nor0=TQM8xxM-0" |
226 | 228 | |
227 | 229 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \ |
include/configs/TQM862L.h
... | ... | @@ -225,6 +225,8 @@ |
225 | 225 | * Dynamic MTD partition support |
226 | 226 | */ |
227 | 227 | #define CONFIG_CMD_MTDPARTS |
228 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
229 | +#define CONFIG_FLASH_CFI_MTD | |
228 | 230 | #define MTDIDS_DEFAULT "nor0=TQM8xxL-0" |
229 | 231 | |
230 | 232 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \ |
include/configs/TQM862M.h
... | ... | @@ -226,6 +226,8 @@ |
226 | 226 | * Dynamic MTD partition support |
227 | 227 | */ |
228 | 228 | #define CONFIG_CMD_MTDPARTS |
229 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
230 | +#define CONFIG_FLASH_CFI_MTD | |
229 | 231 | #define MTDIDS_DEFAULT "nor0=TQM8xxM-0" |
230 | 232 | |
231 | 233 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \ |
include/configs/TQM866M.h
... | ... | @@ -266,6 +266,8 @@ |
266 | 266 | * Dynamic MTD partition support |
267 | 267 | */ |
268 | 268 | #define CONFIG_CMD_MTDPARTS |
269 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
270 | +#define CONFIG_FLASH_CFI_MTD | |
269 | 271 | #define MTDIDS_DEFAULT "nor0=TQM8xxM-0" |
270 | 272 | |
271 | 273 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \ |
include/configs/apollon.h
include/configs/cm5200.h
... | ... | @@ -223,6 +223,8 @@ |
223 | 223 | * MTD configuration |
224 | 224 | */ |
225 | 225 | #define CONFIG_CMD_MTDPARTS 1 |
226 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
227 | +#define CONFIG_FLASH_CFI_MTD | |
226 | 228 | #define MTDIDS_DEFAULT "nor0=cm5200-0" |
227 | 229 | #define MTDPARTS_DEFAULT "mtdparts=cm5200-0:" \ |
228 | 230 | "384k(uboot),128k(env)," \ |
include/configs/fx12mm.h
include/configs/idmr.h
... | ... | @@ -230,6 +230,8 @@ |
230 | 230 | |
231 | 231 | /* Dynamic MTD partition support */ |
232 | 232 | #define CONFIG_CMD_MTDPARTS |
233 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
234 | +#define CONFIG_FLASH_CFI_MTD | |
233 | 235 | #define MTDIDS_DEFAULT "nor0=idmr-0" |
234 | 236 | |
235 | 237 | #define MTDPARTS_DEFAULT "mtdparts=idmr-0:128k(u-boot)," \ |
include/configs/microblaze-generic.h
... | ... | @@ -260,6 +260,8 @@ |
260 | 260 | #if defined(CONFIG_CMD_JFFS2) |
261 | 261 | /* JFFS2 partitions */ |
262 | 262 | #define CONFIG_CMD_MTDPARTS /* mtdparts command line support */ |
263 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
264 | +#define CONFIG_FLASH_CFI_MTD | |
263 | 265 | #define MTDIDS_DEFAULT "nor0=ml401-0" |
264 | 266 | |
265 | 267 | /* default mtd partition table */ |
include/configs/motionpro.h
... | ... | @@ -276,6 +276,8 @@ |
276 | 276 | * MTD configuration |
277 | 277 | */ |
278 | 278 | #define CONFIG_CMD_MTDPARTS |
279 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
280 | +#define CONFIG_FLASH_CFI_MTD | |
279 | 281 | #define MTDIDS_DEFAULT "nor0=motionpro-0" |
280 | 282 | #define MTDPARTS_DEFAULT "mtdparts=motionpro-0:" \ |
281 | 283 | "13m(fs),2m(kernel),256k(uboot)," \ |
include/configs/mx1fs2.h
... | ... | @@ -183,6 +183,8 @@ |
183 | 183 | /* mtdparts command line support */ |
184 | 184 | /* Note: fake mtd_id used, no linux mtd map file */ |
185 | 185 | #define CONFIG_CMD_MTDPARTS |
186 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
187 | +#define CONFIG_FLASH_CFI_MTD | |
186 | 188 | #define MTDIDS_DEFAULT "nor0=mx1fs2-0" |
187 | 189 | |
188 | 190 | #ifdef BUS32BIT_VERSION |
include/configs/netstar.h
... | ... | @@ -130,6 +130,8 @@ |
130 | 130 | * partitions (mtdparts command line support) |
131 | 131 | */ |
132 | 132 | #define CONFIG_CMD_MTDPARTS |
133 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
134 | +#define CONFIG_FLASH_CFI_MTD | |
133 | 135 | #define MTDIDS_DEFAULT "nor0=omapflash.0,nand0=omapnand.0" |
134 | 136 | #define MTDPARTS_DEFAULT "mtdparts=" \ |
135 | 137 | "omapflash.0:8k@16k(env),8k(r_env),448k@576k(u-boot);" \ |
include/configs/omap3_beagle.h
... | ... | @@ -105,6 +105,7 @@ |
105 | 105 | #define CONFIG_CMD_FAT /* FAT support */ |
106 | 106 | #define CONFIG_CMD_JFFS2 /* JFFS2 Support */ |
107 | 107 | #define CONFIG_CMD_MTDPARTS /* Enable MTD parts commands */ |
108 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
108 | 109 | #define MTDIDS_DEFAULT "nand0=nand" |
109 | 110 | #define MTDPARTS_DEFAULT "mtdparts=nand:512k(x-loader),"\ |
110 | 111 | "1920k(u-boot),128k(u-boot-env),"\ |
include/configs/qong.h
... | ... | @@ -213,6 +213,8 @@ |
213 | 213 | * JFFS2 partitions |
214 | 214 | */ |
215 | 215 | #define CONFIG_CMD_MTDPARTS |
216 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
217 | +#define CONFIG_FLASH_CFI_MTD | |
216 | 218 | #define MTDIDS_DEFAULT "nor0=physmap-flash.0" |
217 | 219 | #define MTDPARTS_DEFAULT \ |
218 | 220 | "mtdparts=physmap-flash.0:256k(U-Boot),128k(env1)," \ |
include/configs/smmaco4.h
... | ... | @@ -215,6 +215,8 @@ |
215 | 215 | |
216 | 216 | /* Dynamic MTD partition support */ |
217 | 217 | #define CONFIG_CMD_MTDPARTS |
218 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
219 | +#define CONFIG_FLASH_CFI_MTD | |
218 | 220 | #define MTDIDS_DEFAULT "nor0=TQM5200-0" |
219 | 221 | #define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:640k(firmware)," \ |
220 | 222 | "1408k(kernel)," \ |
include/configs/trab.h
... | ... | @@ -375,6 +375,8 @@ |
375 | 375 | |
376 | 376 | /* Dynamic MTD partition support */ |
377 | 377 | #define CONFIG_CMD_MTDPARTS |
378 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
379 | +#define CONFIG_FLASH_CFI_MTD | |
378 | 380 | #define MTDIDS_DEFAULT "nor0=0" |
379 | 381 | |
380 | 382 | /* production flash layout */ |
include/configs/vct.h
include/configs/virtlab2.h
... | ... | @@ -226,6 +226,8 @@ |
226 | 226 | * Dynamic MTD partition support |
227 | 227 | */ |
228 | 228 | #define CONFIG_CMD_MTDPARTS |
229 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
230 | +#define CONFIG_FLASH_CFI_MTD | |
229 | 231 | #define MTDIDS_DEFAULT "nor0=TQM8xxL-0" |
230 | 232 | |
231 | 233 | #define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \ |
include/configs/voiceblue.h
... | ... | @@ -190,6 +190,8 @@ |
190 | 190 | * JFFS2 partitions (mtdparts command line support) |
191 | 191 | */ |
192 | 192 | #define CONFIG_CMD_MTDPARTS |
193 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
194 | +#define CONFIG_FLASH_CFI_MTD | |
193 | 195 | #define MTDIDS_DEFAULT "nor0=omapflash.0" |
194 | 196 | #define MTDPARTS_DEFAULT "mtdparts=omapflash.0:256k(u-boot),64k(env),64k(r_env),16192k(data0),-(data1)" |
195 | 197 |
include/configs/xilinx-ppc.h
... | ... | @@ -109,6 +109,8 @@ |
109 | 109 | #define CONFIG_SYS_FLASH_PROTECTION |
110 | 110 | #define CONFIG_CMD_JFFS2 |
111 | 111 | #define CONFIG_CMD_MTDPARTS |
112 | +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
113 | +#define CONFIG_FLASH_CFI_MTD | |
112 | 114 | #else |
113 | 115 | #define CONFIG_ENV_IS_NOWHERE |
114 | 116 | #define CONFIG_SYS_NO_FLASH |