summaryrefslogtreecommitdiffstats
path: root/commands/ubiformat.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-02-26 10:29:16 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-06 10:17:51 +0200
commiteef520a32b72606793cd02b2af57e559c64f8620 (patch)
treeb2104c9a9d6d449b68711bb0ebe233b57ccd886f /commands/ubiformat.c
parentfdac29be6259e75ded9b322949ed56236b30d47d (diff)
downloadbarebox-eef520a32b72606793cd02b2af57e559c64f8620.tar.gz
barebox-eef520a32b72606793cd02b2af57e559c64f8620.tar.xz
mtd: Introduce mtd-peb API
Code which properly wants to handle Nand flash has to work in a block based way since blocks are the entities that are erased or may become bad. The regular mtd API works based on offsets in the device which introduces unhandy 64bit arithmetics and the requirement to align buffers to blocks. This introduces the mtd peb API (PEB for physical Erase Block) which allows the users to work in a block oriented way. The API is heavily inspired by the UBI IO layer and in fact can replace parts thereof later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/ubiformat.c')
0 files changed, 0 insertions, 0 deletions