aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/Kconfig
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2008-07-30 15:35:05 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-08-01 16:47:47 -0400
commit34a82443b79dcda4304b229d555586296da40c16 (patch)
treee375cf274b6c2eb1f41c81db3a864facfb7cce46 /drivers/mtd/devices/Kconfig
parent623fa579e61f250c1913c70257ef3a753820bb68 (diff)
[MTD] dataflash OTP support
Now that we can tell when we have one of the newer DataFlash chips, optionally expose the 128 bytes of OTP memory they provide. Tested on at45db642 revision B and D chips. Switch mtdchar over to a generic HAVE_MTD_OTP flag instead of adding another #ifdef for each type of chip whose driver has OTP support. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Cc: Bryan Wu <cooloney@kernel.org> Cc: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/devices/Kconfig')
-rw-r--r--drivers/mtd/devices/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig
index 9c613f06623c..88f4df047464 100644
--- a/drivers/mtd/devices/Kconfig
+++ b/drivers/mtd/devices/Kconfig
@@ -59,6 +59,17 @@ config MTD_DATAFLASH
59 Sometimes DataFlash chips are packaged inside MMC-format 59 Sometimes DataFlash chips are packaged inside MMC-format
60 cards; at this writing, the MMC stack won't handle those. 60 cards; at this writing, the MMC stack won't handle those.
61 61
62config MTD_DATAFLASH_OTP
63 bool "DataFlash OTP support (Security Register)"
64 depends on MTD_DATAFLASH
65 select HAVE_MTD_OTP
66 help
67 Newer DataFlash chips (revisions C and D) support 128 bytes of
68 one-time-programmable (OTP) data. The first half may be written
69 (once) with up to 64 bytes of data, such as a serial number or
70 other key product data. The second half is programmed with a
71 unique-to-each-chip bit pattern at the factory.
72
62config MTD_M25P80 73config MTD_M25P80
63 tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)" 74 tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
64 depends on SPI_MASTER && EXPERIMENTAL 75 depends on SPI_MASTER && EXPERIMENTAL