MTD: Change cfi-mtd to accept non-uniform sector sizes
authorStefan Roese <sr@denx.de>
Wed, 18 Mar 2009 10:17:37 +0000 (11:17 +0100)
committerStefan Roese <sr@denx.de>
Wed, 29 Apr 2009 09:06:06 +0000 (11:06 +0200)
commitf8e2b3107ee00f2782f8ebf47e3f09cda4e2353a
treed3a0679e1dfc290fcb87485e1a25e0614d5fa887
parent4d9eab89b3b2c2ed432b14d355a56f274d8aac75
MTD: Change cfi-mtd to accept non-uniform sector sizes

With this patch non-uniform NOR FLASH chips (chips with multiple erase
regions) can be exported via the cfi-mtd layer and therefor used by UBI.
We select the largest sector size as erasesize. The cfi driver will make
sure that the smaller sectors are handled correctly.

Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_mtd.c