UBI/cfi-mtd: Fix mtd name for multiple chips

On platforms with multiple NOR chips, currently only the first one
can be selected using the "ubi part" command. This patch fixes this
problem by using different names for the NOR "mtd devices".

It also changes the name of the NOR MTD device from "cfi-mtd" to
"norX" (X indexing the device numer) to better match the mtdparts
defaults.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Andreas Huber <andreas.huber@keymile.com>
This commit is contained in:
Andreas Huber 2009-04-02 17:15:34 +02:00 committed by Wolfgang Denk
parent 6b6bb02f27
commit c203ef5db0
3 changed files with 24 additions and 8 deletions

View file

@ -87,8 +87,6 @@ typedef unsigned long flash_sect_t;
/* convert between bit value and numeric value */
#define CFI_FLASH_SHIFT_WIDTH 3
/* cfi-mtd device name */
#define CFI_MTD_DEV_NAME "cfi-mtd"
/* Prototypes */
extern unsigned long flash_init (void);