Skip to content

Commit 7d17c02

Browse files
maximlevitskyDavid Woodhouse
authored andcommitted
mtd: Add new SmartMedia/xD FTL
This implements new readwrite SmartMedia/xd FTL. mtd driver must have support proper ECC and badblock verification based on oob parts for 512 bytes nand. Also mtd driver must define read_oob and write_oob, which are used to read and write both data and oob together. Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent a779053 commit 7d17c02

4 files changed

Lines changed: 1400 additions & 0 deletions

File tree

‎drivers/mtd/Kconfig‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,27 @@ config SSFDC
304304
This enables read only access to SmartMedia formatted NAND
305305
flash. You can mount it with FAT file system.
306306

307+
308+
config SM_FTL
309+
tristate "SmartMedia/xD new translation layer"
310+
depends on EXPERIMENTAL && BLOCK
311+
select MTD_BLKDEVS
312+
help
313+
This enables new and very EXPERMENTAL support for SmartMedia/xD
314+
FTL (Flash tanslation layer)
315+
Write support isn't yet well tested, therefore this code IS likely to
316+
eat your card, so please don't use it together with valuable data.
317+
Use readonly driver (CONFIG_SSFDC) instead.
318+
319+
config SM_FTL_MUSEUM
320+
boolean "Additional Support for 1MiB and 2MiB SmartMedia cards"
321+
depends on SM_FTL && MTD_NAND
322+
select MTD_NAND_ECC_SMC
323+
help
324+
Very old SmartMedia cards need ECC to be calculated in the FTL
325+
Such cards are very rare, thus enabling this option is mostly useless
326+
Also this support is completely UNTESTED.
327+
307328
config MTD_OOPS
308329
tristate "Log panic/oops to an MTD buffer"
309330
depends on MTD

‎drivers/mtd/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ obj-$(CONFIG_NFTL) += nftl.o
2424
obj-$(CONFIG_INFTL) += inftl.o
2525
obj-$(CONFIG_RFD_FTL) += rfd_ftl.o
2626
obj-$(CONFIG_SSFDC) += ssfdc.o
27+
obj-$(CONFIG_SM_FTL) += sm_ftl.o
2728
obj-$(CONFIG_MTD_OOPS) += mtdoops.o
2829

2930
nftl-objs := nftlcore.o nftlmount.o

0 commit comments

Comments
 (0)