]> git.dujemihanovic.xyz Git - u-boot.git/commit
UBI/cfi-mtd: Fix mtd name for multiple chips
authorAndreas Huber <andreas.huber@keymile.com>
Thu, 2 Apr 2009 15:15:34 +0000 (17:15 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 4 Apr 2009 21:25:40 +0000 (23:25 +0200)
commitc203ef5db0476a8c4f6dd86b2e9e9db0ea973f84
tree6f9801c677d06f6bdb76f4698d847798f41b2c9d
parent6b6bb02f27fcabfb37ea717fb7e243248e1e2acf
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>
common/cmd_ubi.c
drivers/mtd/cfi_mtd.c
include/flash.h