mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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:
parent
6b6bb02f27
commit
c203ef5db0
3 changed files with 24 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue