PCMCIA: add support the CF PCMCIA driver for Blackfin (try #2)
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
Signed-off-by Michael Hennerich <[email protected]>
Signed-off-by Bryan Wu <[email protected]>
--- 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
@@ -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
@@ -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
@@ -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