Skip to content

Commit 67e054e

Browse files
maximlevitskyDavid Woodhouse
authored andcommitted
mtd: nand: Add driver for Ricoh xD/SmartMedia reader
This adds a driver for Ricoh R5C852 xD card reader. This reader is a part of larger mulifunction chip and found at least in R5C832 Driver is complete, but bewere of the fact that some (probably only type M) xD cards are 'fake' which means that they have an on board CPU and expose emulated nand command set These cards don't even store the oob area on the flash, but generate it on the fly from something else. Thus they demand to have proper values written in the oob area, and therefore only useful with SmartMedia FTL. Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent 7d17c02 commit 67e054e

5 files changed

Lines changed: 1298 additions & 0 deletions

File tree

‎MAINTAINERS‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4567,6 +4567,12 @@ S: Maintained
45674567
F: Documentation/rfkill.txt
45684568
F: net/rfkill/
45694569

4570+
RICOH SMARTMEDIA/XD DRIVER
4571+
M: Maxim Levitsky <maximlevitsky@gmail.com>
4572+
S: Maintained
4573+
F: drivers/mtd/nand/r822.c
4574+
F: drivers/mtd/nand/r822.h
4575+
45704576
RISCOM8 DRIVER
45714577
S: Orphan
45724578
F: Documentation/serial/riscom8.txt

‎drivers/mtd/nand/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,17 @@ config MTD_NAND_OMAP_PREFETCH_DMA
102102
config MTD_NAND_IDS
103103
tristate
104104

105+
config MTD_NAND_RICOH
106+
tristate "Ricoh xD card reader"
107+
default n
108+
select MTD_SM_COMMON
109+
help
110+
Enable support for Ricoh R5C852 xD card reader
111+
You also need to enable ether
112+
NAND SSFDC (SmartMedia) read only translation layer' or new
113+
expermental, readwrite
114+
'SmartMedia/xD new translation layer'
115+
105116
config MTD_NAND_AU1550
106117
tristate "Au1550/1200 NAND support"
107118
depends on SOC_AU1200 || SOC_AU1550

‎drivers/mtd/nand/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ obj-$(CONFIG_MTD_NAND_NUC900) += nuc900_nand.o
4343
obj-$(CONFIG_MTD_NAND_NOMADIK) += nomadik_nand.o
4444
obj-$(CONFIG_MTD_NAND_BCM_UMI) += bcm_umi_nand.o nand_bcm_umi.o
4545
obj-$(CONFIG_MTD_NAND_MPC5121_NFC) += mpc5121_nfc.o
46+
obj-$(CONFIG_MTD_NAND_RICOH) += r852.o
4647

4748
nand-objs := nand_base.o nand_bbt.o

0 commit comments

Comments
 (0)