mtd: map_rom: Support UBI on ROM
authorAaron Sierra <asierra@xes-inc.com>
Thu, 25 Sep 2014 17:20:24 +0000 (12:20 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 10 Jan 2015 07:24:27 +0000 (23:24 -0800)
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>
Documentation/devicetree/bindings/mtd/mtd-physmap.txt
drivers/mtd/chips/map_rom.c

Simple merge