linux/drivers/mtd/chips
Aaron Sierra 6958024ad5 mtd: map_rom: Support UBI on ROM
UBI needs to know the physical erase block size, even on read-only
devices, since it defines the on-device layout. Use a device-tree
provided value to support previously written UBI on read-only NOR.

UBI also needs a non-zero writebufsize, so we set it to one.

Note: This was implemented because hardware write-protected CFI
      NOR cannot be probed for the physical erase block size.

Signed-off-by: Joe Schultz <jschultz@xes-inc.ccom>
Signed-off-by: Aaron Sierra <asierra@xes-inc.ccom>
[Brian: removed unneeded #ifdef, note 'optional' erase-size property]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2015-01-09 23:24:27 -08:00
..
cfi_cmdset_0001.c mtd: delete unnecessary checks before two function calls 2014-11-25 22:44:10 -08:00
cfi_cmdset_0002.c Merge l2-mtd/next into l2-mtd/master 2014-08-19 11:57:23 -07:00
cfi_cmdset_0020.c mtd: cfi: indent some if statements 2014-05-20 17:36:01 -07:00
cfi_probe.c mtd: cfi: Remove unnecessary OOM messages 2014-03-10 22:42:25 -07:00
cfi_util.c mtd: cfi: indent some if statements 2014-05-20 17:36:01 -07:00
chipreg.c mtd: simplify return logic in do_map_probe() 2012-03-27 00:35:06 +01:00
fwh_lock.h mtd: add leading underscore to all mtd functions 2012-03-27 00:20:01 +01:00
gen_probe.c mtd: gen_probe: Remove unnecessary OOM messages 2014-03-10 22:42:25 -07:00
jedec_probe.c mtd: jedec_probe: fix LH28F640BF definition 2013-08-05 21:04:17 +01:00
Kconfig mtd: Kconfig: give the CFI command set version in prompt and help 2014-05-20 17:36:43 -07:00
Makefile [MTD] [CHIPS] Remove MTD_OBSOLETE_CHIPS (jedec, amd_flash, sharp) 2007-05-09 13:34:37 +01:00
map_absent.c mtd: remove retlen zeroing duplication 2012-03-27 00:29:34 +01:00
map_ram.c mtd: map_ram: Enable mtdoops 2015-01-09 15:31:56 -08:00
map_rom.c mtd: map_rom: Support UBI on ROM 2015-01-09 23:24:27 -08:00