diff options
author | Stefan Roese <sr@denx.de> | 2009-05-12 14:31:56 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:45:48 +0200 |
commit | 864aa034f3a0e10ce710e8bbda171df3cab59414 (patch) | |
tree | 573cfbaff787f157ef81b7b0dbeabeb311f43824 /cpu/mpc8220/cpu.c | |
parent | d558107c18708050f05b6639b2192efb67c905dc (diff) | |
download | u-boot-imx-864aa034f3a0e10ce710e8bbda171df3cab59414.zip u-boot-imx-864aa034f3a0e10ce710e8bbda171df3cab59414.tar.gz u-boot-imx-864aa034f3a0e10ce710e8bbda171df3cab59414.tar.bz2 |
cmd_mtdparts: Move to common handling of FLASH devices via MTD layer
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@denx.de>
Cc: Ladislav Michl <ladis@linux-mips.org>
Cc: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'cpu/mpc8220/cpu.c')
0 files changed, 0 insertions, 0 deletions