mtd: MTD related config header changes (mtdparts command)
PATCH 1/1 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.
--- include/configs/BC3450.h | 2 ++ include/configs/FPS850L.h | 2 ++ include/configs/FPS860L.h | 2 ++ include/configs/SIMPC8313.h | 1 + include/configs/TB5200.h | 2 ++ include/configs/TQM5200.h | 2 ++ include/configs/TQM823L.h | 2 ++ include/configs/TQM823M.h | 2 ++ include/configs/TQM834x.h | 2 ++ include/configs/TQM850L.h | 2 ++ include/configs/TQM850M.h | 2 ++ include/configs/TQM855L.h | 2 ++ include/configs/TQM855M.h | 2 ++ include/configs/TQM85xx.h | 2 ++ include/configs/TQM860L.h | 2 ++ include/configs/TQM860M.h | 2 ++ include/configs/TQM862L.h | 2 ++ include/configs/TQM862M.h | 2 ++ include/configs/TQM866M.h | 2 ++ include/configs/apollon.h | 1 + include/configs/cm5200.h | 2 ++ include/configs/fx12mm.h | 2 ++ include/configs/idmr.h | 2 ++ include/configs/microblaze-generic.h | 2 ++ include/configs/motionpro.h | 2 ++ include/configs/mx1fs2.h | 2 ++ include/configs/netstar.h | 2 ++ include/configs/omap3_beagle.h | 1 + include/configs/qong.h | 2 ++ include/configs/smmaco4.h | 2 ++ include/configs/trab.h | 2 ++ include/configs/vct.h | 1 + include/configs/virtlab2.h | 2 ++ include/configs/voiceblue.h | 2 ++ include/configs/xilinx-ppc.h | 2 ++ 35 files changed, 66 insertions(+), 0 deletions(-)
include/configs/BC3450.h +2 -0
@@ -347,6 +347,8 @@/* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM5200-0"#define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:640k(firmware)," \ "1408k(kernel)," \
include/configs/FPS850L.h +2 -0
@@ -217,6 +217,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxL-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
include/configs/FPS860L.h +2 -0
@@ -217,6 +217,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxL-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
include/configs/SIMPC8313.h +1 -0
@@ -190,6 +190,7 @@/* mtdparts command line support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ #define MTDIDS_DEFAULT "nand0=nand0"#define MTDPARTS_DEFAULT "mtdparts=nand0:2M(u-boot),6M(kernel),-(jffs2)"
include/configs/TB5200.h +2 -0
@@ -276,6 +276,8 @@/* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM5200-0"#if defined(CONFIG_TQM5200_B )#define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:768k(firmware)," \
include/configs/TQM5200.h +2 -0
@@ -408,6 +408,8 @@/* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM5200-0"#ifdef CONFIG_STK52XX
include/configs/TQM823L.h +2 -0
@@ -232,6 +232,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxL-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
include/configs/TQM823M.h +2 -0
@@ -228,6 +228,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxM-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
include/configs/TQM834x.h +2 -0
@@ -538,6 +538,8 @@ extern int tqm834x_num_flash_banks;*/ /* mtdparts command line support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM834x-0"/* default mtd partition table */
include/configs/TQM850L.h +2 -0
@@ -217,6 +217,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxL-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
include/configs/TQM850M.h +2 -0
@@ -217,6 +217,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxM-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
include/configs/TQM855L.h +2 -0
@@ -222,6 +222,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxL-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
include/configs/TQM855M.h +2 -0
@@ -257,6 +257,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxM-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
include/configs/TQM85xx.h +2 -0
@@ -580,6 +580,8 @@#define CONFIG_JFFS2_NAND 1#ifdef CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nand0=TQM85xx-nand"#define MTDPARTS_DEFAULT "mtdparts=TQM85xx-nand:-"#else
include/configs/TQM860L.h +2 -0
@@ -221,6 +221,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxL-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
include/configs/TQM860M.h +2 -0
@@ -222,6 +222,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxM-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
include/configs/TQM862L.h +2 -0
@@ -225,6 +225,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxL-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
include/configs/TQM862M.h +2 -0
@@ -226,6 +226,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxM-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
include/configs/TQM866M.h +2 -0
@@ -266,6 +266,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxM-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
include/configs/apollon.h +1 -0
@@ -124,6 +124,7 @@#define CONFIG_CMD_JFFS2 #define CONFIG_CMD_UBI #define CONFIG_RBTREE +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ #define CONFIG_MTD_PARTITIONS #endif
include/configs/cm5200.h +2 -0
@@ -223,6 +223,8 @@* MTD configuration */ #define CONFIG_CMD_MTDPARTS 1 +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=cm5200-0"#define MTDPARTS_DEFAULT "mtdparts=cm5200-0:" \ "384k(uboot),128k(env)," \
include/configs/fx12mm.h +2 -0
@@ -38,6 +38,8 @@/* cmd config */ #define CONFIG_CMD_JFFS2 #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #undef CONFIG_CMD_NET/* sdram */
include/configs/idmr.h +2 -0
@@ -230,6 +230,8 @@/* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=idmr-0"#define MTDPARTS_DEFAULT "mtdparts=idmr-0:128k(u-boot)," \
include/configs/microblaze-generic.h +2 -0
@@ -260,6 +260,8 @@#if defined(CONFIG_CMD_JFFS2 )/* JFFS2 partitions */ #define CONFIG_CMD_MTDPARTS /* mtdparts command line support */ +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=ml401-0"/* default mtd partition table */
include/configs/motionpro.h +2 -0
@@ -276,6 +276,8 @@* MTD configuration */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=motionpro-0"#define MTDPARTS_DEFAULT "mtdparts=motionpro-0:" \ "13m(fs),2m(kernel),256k(uboot)," \
include/configs/mx1fs2.h +2 -0
@@ -183,6 +183,8 @@/* mtdparts command line support */ /* Note: fake mtd_id used, no linux mtd map file */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=mx1fs2-0"#ifdef BUS32BIT_VERSION
include/configs/netstar.h +2 -0
@@ -130,6 +130,8 @@* partitions (mtdparts command line support) */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=omapflash.0,nand0=omapnand.0"#define MTDPARTS_DEFAULT "mtdparts=" \ "omapflash.0:8k at 16k(env),8k(r_env),448k at 576k(u-boot);" \
include/configs/omap3_beagle.h +1 -0
@@ -105,6 +105,7 @@#define CONFIG_CMD_FAT /* FAT support */ #define CONFIG_CMD_JFFS2 /* JFFS2 Support */ #define CONFIG_CMD_MTDPARTS /* Enable MTD parts commands */ +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ #define MTDIDS_DEFAULT "nand0=nand"#define MTDPARTS_DEFAULT "mtdparts=nand:512k(x-loader),"\ "1920k(u-boot),128k(u-boot-env),"\
include/configs/qong.h +2 -0
@@ -213,6 +213,8 @@* JFFS2 partitions */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=physmap-flash.0"#define MTDPARTS_DEFAULT \ "mtdparts=physmap-flash.0:256k(U-Boot),128k(env1)," \
include/configs/smmaco4.h +2 -0
@@ -215,6 +215,8 @@/* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM5200-0"#define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:640k(firmware)," \ "1408k(kernel)," \
include/configs/trab.h +2 -0
@@ -375,6 +375,8 @@/* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=0"/* production flash layout */
include/configs/vct.h +1 -0
@@ -296,6 +296,7 @@ int vct_gpio_get(int pin);#define CONFIG_CMD_JFFS2 #define CONFIG_CMD_UBI #define CONFIG_RBTREE +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ #define CONFIG_MTD_PARTITIONS #define CONFIG_CMD_MTDPARTS
include/configs/virtlab2.h +2 -0
@@ -226,6 +226,8 @@* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=TQM8xxL-0"#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
include/configs/voiceblue.h +2 -0
@@ -190,6 +190,8 @@* JFFS2 partitions (mtdparts command line support) */ #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #define MTDIDS_DEFAULT "nor0=omapflash.0"#define MTDPARTS_DEFAULT "mtdparts=omapflash.0:256k(u-boot),64k(env),64k(r_env),16192k(data0),-(data1)"
include/configs/xilinx-ppc.h +2 -0
@@ -109,6 +109,8 @@#define CONFIG_SYS_FLASH_PROTECTION #define CONFIG_CMD_JFFS2 #define CONFIG_CMD_MTDPARTS +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ +#define CONFIG_FLASH_CFI_MTD #else #define CONFIG_ENV_IS_NOWHERE #define CONFIG_SYS_NO_FLASH
Signature · 1 line
1.6.2.5
PATCH 1/1 mtd: MTD related config header changes (mtdparts command)
Hi Stefan,
Quoted 14 lines
By changing the
cmd_mtdpartsto 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.
Quoted 8 lines
Signed-off-by Stefan Roese <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Ron Madrid <[email protected]>Cc Georg Schardt <[email protected]>Cc Michal Simek <[email protected]>Cc Ladislav Michl <[email protected]>Cc Martin Krause <[email protected]>Cc Gary Jennejohn <[email protected]>
There is a typo here, you meant garyj at denx.de.
Cheers
Detlev
Signature · 7 lines
Programming X-Windows is like trying to find the square root of pi
using roman numerals.
-- The UNIX Haters Handbook
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.deWolfgang Denk
AppliedPATCH 1/1 mtd: MTD related config header changes (mtdparts command)
In reply to Stefan RoeseDear Stefan Roese,
Quoted 52 lines · In message <[email protected]> you wrote:
By changing the
cmd_mtdpartsto 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 <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Ron Madrid <[email protected]>Cc Georg Schardt <[email protected]>Cc Michal Simek <[email protected]>Cc Ladislav Michl <[email protected]>Cc Martin Krause <[email protected]>Cc Gary Jennejohn <[email protected]>Cc Ricardo Ribalda <[email protected]>--- include/configs/BC3450.h | 2 ++ include/configs/FPS850L.h | 2 ++ include/configs/FPS860L.h | 2 ++ include/configs/SIMPC8313.h | 1 + include/configs/TB5200.h | 2 ++ include/configs/TQM5200.h | 2 ++ include/configs/TQM823L.h | 2 ++ include/configs/TQM823M.h | 2 ++ include/configs/TQM834x.h | 2 ++ include/configs/TQM850L.h | 2 ++ include/configs/TQM850M.h | 2 ++ include/configs/TQM855L.h | 2 ++ include/configs/TQM855M.h | 2 ++ include/configs/TQM85xx.h | 2 ++ include/configs/TQM860L.h | 2 ++ include/configs/TQM860M.h | 2 ++ include/configs/TQM862L.h | 2 ++ include/configs/TQM862M.h | 2 ++ include/configs/TQM866M.h | 2 ++ include/configs/apollon.h | 1 + include/configs/cm5200.h | 2 ++ include/configs/fx12mm.h | 2 ++ include/configs/idmr.h | 2 ++ include/configs/microblaze-generic.h | 2 ++ include/configs/motionpro.h | 2 ++ include/configs/mx1fs2.h | 2 ++ include/configs/netstar.h | 2 ++ include/configs/omap3_beagle.h | 1 +
Quoted 8 lines
include/configs/qong.h | 2 ++ include/configs/smmaco4.h | 2 ++ include/configs/trab.h | 2 ++ include/configs/vct.h | 1 + include/configs/virtlab2.h | 2 ++ include/configs/voiceblue.h | 2 ++ include/configs/xilinx-ppc.h | 2 ++ 35 files changed, 66 insertions(+), 0 deletions(-)
Applied to next (after fixing the typo in Gary's mail address). Thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A dog always bit deepest on the veterinary hand.
- Terry Pratchett, _Wyrd Sisters_