summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/Kconfig
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 /drivers/mtd/Kconfig
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 'drivers/mtd/Kconfig')
-rw-r--r--drivers/mtd/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index ea1be556b4..db9c287b45 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -30,6 +30,15 @@ config MTD_CONCAT
needs driver support, currently only the cfi-flash driver supports
concatenating MTD devices.
+comment "MTD debug options"
+
+config MTD_PEB_DEBUG
+ bool "MTD PEB debug"
+ help
+ When enabled the MTD PEB API will emulate bitflips. Random read
+ operations will return that bits are flipped. The MTD PEB API
+ is used by UBI and ubiformat
+
source "drivers/mtd/devices/Kconfig"
source "drivers/mtd/nor/Kconfig"
source "drivers/mtd/nand/Kconfig"