aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/Kconfig
diff options
context:
space:
mode:
authorJarkko Lavinen <jarkko.lavinen@nokia.com>2011-02-14 09:16:11 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-03-11 09:22:46 -0500
commita321590246202f2598aca2f4ef63b992e8fc97ef (patch)
treecbb838704f7575bf5634c95fd1d91bef24e9d296 /drivers/mtd/Kconfig
parent115ee88c15b55859a8b59c5dccb3882bbd47e542 (diff)
mtd: Add mtdswap block driver
Add a driver for allowing an mtd device to be used as a block device for swapping. The block device is volatile, and the mapping of swapped pages is not stored on flash. Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com> Tested-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/Kconfig')
-rw-r--r--drivers/mtd/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 23088b3372d0..5fe01d556657 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -325,6 +325,24 @@ config MTD_OOPS
325 To use, add console=ttyMTDx to the kernel command line, 325 To use, add console=ttyMTDx to the kernel command line,
326 where x is the MTD device number to use. 326 where x is the MTD device number to use.
327 327
328config MTD_SWAP
329 tristate "Swap on MTD device support"
330 depends on MTD && SWAP
331 select MTD_BLKDEVS
332 help
333 Provides volatile block device driver on top of mtd partition
334 suitable for swapping. The mapping of written blocks is not saved.
335 The driver provides wear leveling by storing erase counter into the
336 OOB.
337
338config MTD_SWAP_STRICT
339 bool "Strict erase error handling"
340 depends on MTD_SWAP
341 help
342 Enables strict tolerance on failed erasures, marking erase blocks bad
343 right after the first failed operation. With non-strict mode the
344 erase operation is retried.
345
328source "drivers/mtd/chips/Kconfig" 346source "drivers/mtd/chips/Kconfig"
329 347
330source "drivers/mtd/maps/Kconfig" 348source "drivers/mtd/maps/Kconfig"