[U-Boot] [PATCH v2] cmd_mtdparts: Move to common handling of FLASH devices via MTD layer

Wolfgang Denk wd at denx.de
Thu Jun 4 00:12:08 CEST 2009


Dear Stefan Roese,

In message <1242131516-22957-1-git-send-email-sr at denx.de> you wrote:
> This patch removes all references to the direct CFI FLASH interface
> (via flash_info[]). Now that all FLASH types currently handled in
> mtdparts are available (if selected, see below) via the MTD infrastructure.
> This is NOR, NAND and OneNAND right now. This can be achieved by defining
> the following options:
> 
> CONFIG_MTD_DEVICE (for all FLASH types)
> 
> plus
> 
> CONFIG_FLASH_CFI_MTD (for NOR FLASH)
> 
> So we need to add those defines to the board config headers currently
> using the mtdparts commands. This is done via another patch, so
> we shouldn't break mtdparts compatibility.
> 
> One big advantage from this solution is that the cmd_mtdparts.c is
> *much* cleaner now. Lot's of #ifdef's are removed and the code itself
> is smaller. Additionally the newly added MDT concatenation feature
> can new be used via the mtdparts infrastructure and therefor via
> UBI etc.
> 
> Signed-off-by: Stefan Roese <sr at denx.de>
> Cc: Ladislav Michl <ladis at linux-mips.org>
> Cc: Scott Wood <scottwood at freescale.com>
> ---
> v2:
> - Use CONFIG_MTD_DEVICE instead of CONFIG_MTD_PARTITIONS in commit
>   text.
> 
>  common/cmd_mtdparts.c |  240 ++++++++++++++++--------------------------------
>  1 files changed, 80 insertions(+), 160 deletions(-)

Applied to next. Thanks.

Best regards,

Wolfgang Denk

-- 
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
Microsoft Multimedia:
You have nice graphics, sound and animations when the system crashes.


More information about the U-Boot mailing list