Skip to contentSkip to conversation

PCMCIA: add support the CF PCMCIA driver for Blackfin (try #2)

PATCH New Bryan Wu 1 participant 1 message May 17, 2008 Pcmcia

lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

PATCH 1/1 PCMCIA: add support the CF PCMCIA driver for Blackfin (try #2)

From: Michael Hennerich <[email protected]>

Try #2:
- Coding style cleanup
- Use platform device register
- Use kzalloc

---
 drivers/pcmcia/Kconfig          |    7 +
 drivers/pcmcia/Makefile         |    1 +
 drivers/pcmcia/bfin_cf_pcmcia.c |  341 +++++++++++++++++++++++++++++++++++++++
 include/pcmcia/cs_types.h       |    2 +-
 4 files changed, 350 insertions(+), 1 deletions(-)
 create mode 100644 drivers/pcmcia/bfin_cf_pcmcia.c
drivers/pcmcia/Kconfig +7 -0
index 1b0eb5a..e45402a 100644
@@ -263,6 +263,13 @@ config OMAP_CF
 	  Say Y here to support the CompactFlash controller on OMAP.
 	  Note that this doesn't support "True IDE" mode.
 
+config BFIN_CFPCMCIA
+	tristate "Blackfin CompactFlash PCMCIA Driver"
+	depends on PCMCIA && BLACKFIN
+	help
+	  Say Y here to support the CompactFlash PCMCIA driver for Blackfin.
+
+
 config AT91_CF
 	tristate "AT91 CompactFlash Controller"
 	depends on PCMCIA && ARCH_AT91RM9200
drivers/pcmcia/Makefile +1 -0
index 6f6478b..85c6cc9 100644
@@ -36,6 +36,7 @@ obj-$(CONFIG_PCMCIA_AU1X00)			+= au1x00_ss.o
 obj-$(CONFIG_PCMCIA_VRC4171)			+= vrc4171_card.o
 obj-$(CONFIG_PCMCIA_VRC4173)			+= vrc4173_cardu.o
 obj-$(CONFIG_OMAP_CF)				+= omap_cf.o
+obj-$(CONFIG_BFIN_CFPCMCIA)			+= bfin_cf_pcmcia.o
 obj-$(CONFIG_AT91_CF)				+= at91_cf.o
 obj-$(CONFIG_ELECTRA_CF)			+= electra_cf.o
 
drivers/pcmcia/bfin_cf_pcmcia.c new file +341 -0

341 lines not on this page · raw message

include/pcmcia/cs_types.h +1 -1
index 9a6bcc4..c3257c1 100644
@@ -21,7 +21,7 @@
 #include <sys/types.h>
 #endif
 
-#if defined(__arm__) || defined(__mips__) || defined(__avr32__)
+#if defined(__arm__) || defined(__mips__) || defined(__avr32__) || defined(bfin)
 /* This (ioaddr_t) is exposed to userspace & hence cannot be changed. */
 typedef u_int   ioaddr_t;
 #else
Signature · 1 line
1.5.5