summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-27 11:01:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-04 11:00:33 +0100
commitc26ef8231fae4aac76b9b2dd8cb2ed12361d6624 (patch)
tree7fc7b2351abf24aab5325ae2b8018360afabd279 /drivers/mtd/nand/Kconfig
parent5b85daacc6ddaa3a3a3f38788f6b1bfac3a1c8d3 (diff)
downloadbarebox-c26ef8231fae4aac76b9b2dd8cb2ed12361d6624.tar.gz
barebox-c26ef8231fae4aac76b9b2dd8cb2ed12361d6624.tar.xz
mtd: Add parameter to allow erasing bad blocks
While erasing bad blocks is a potentially dangerous operation it is sometimes needed during development or when some foreign code has touched the flash. This patch adds a device parameter 'erasebad' to allow erasing bad blocks. Since this is not wanted during production this is behind a Kconfig option. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/nand/Kconfig')
-rw-r--r--drivers/mtd/nand/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 49daabfb47..1a9b929c5f 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -48,6 +48,15 @@ config NAND_BBT
Say y here to include support for bad block tables. This speeds
up the process of checking for bad blocks
+config NAND_ALLOW_ERASE_BAD
+ bool
+ depends on MTD_WRITE
+ prompt "Add device parameter to allow erasing bad blocks"
+ help
+ This adds a 'erasebad' device parameter to nand devices. When set
+ to '1' it will be allowed to erase bad blocks. This is a potientially
+ dangerous operation, so if unsure say no to this option.
+
config NAND_IMX
bool
prompt "i.MX NAND driver"