Skip to content
Snippets Groups Projects
Commit 6958024a authored by Aaron Sierra's avatar Aaron Sierra Committed by Brian Norris
Browse files

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: default avatarJoe Schultz <jschultz@xes-inc.ccom>
Signed-off-by: default avatarAaron Sierra <asierra@xes-inc.ccom>
[Brian: removed unneeded #ifdef, note 'optional' erase-size property]
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 3fc1cf5f
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment