[brcm63xx] more fixes for bcm6338, no need not to prevent reads from MPI registers...
[openwrt.git] / target / linux / brcm63xx / patches-2.6.27 / 006-pcmcia_cardbus_support.patch
1 From b17597be763621ba63534fda6e1ea0a802be2087 Mon Sep 17 00:00:00 2001
2 From: Maxime Bizon <mbizon@freebox.fr>
3 Date: Fri, 18 Jul 2008 21:18:51 +0200
4 Subject: [PATCH] [MIPS] BCM63XX: Add PCMCIA & Cardbus support.
5
6 Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
7 ---
8  arch/mips/bcm63xx/Makefile                         |    1 +
9  arch/mips/bcm63xx/dev-pcmcia.c                     |  135 +++++
10  drivers/pcmcia/Kconfig                             |    4 +
11  drivers/pcmcia/Makefile                            |    1 +
12  drivers/pcmcia/bcm63xx_pcmcia.c                    |  521 ++++++++++++++++++++
13  drivers/pcmcia/bcm63xx_pcmcia.h                    |   65 +++
14  include/asm-mips/mach-bcm63xx/bcm63xx_dev_pcmcia.h |   13 +
15  7 files changed, 740 insertions(+), 0 deletions(-)
16  create mode 100644 arch/mips/bcm63xx/dev-pcmcia.c
17  create mode 100644 drivers/pcmcia/bcm63xx_pcmcia.c
18  create mode 100644 drivers/pcmcia/bcm63xx_pcmcia.h
19  create mode 100644 include/asm-mips/mach-bcm63xx/bcm63xx_dev_pcmcia.h
20
21 --- a/drivers/pcmcia/Kconfig
22 +++ b/drivers/pcmcia/Kconfig
23 @@ -196,6 +196,10 @@ config PCMCIA_AU1X00
24         tristate "Au1x00 pcmcia support"
25         depends on SOC_AU1X00 && PCMCIA
26  
27 +config PCMCIA_BCM63XX
28 +       tristate "bcm63xx pcmcia support"
29 +       depends on BCM63XX && PCMCIA
30 +
31  config PCMCIA_SA1100
32         tristate "SA1100 support"
33         depends on ARM && ARCH_SA1100 && PCMCIA
34 --- a/drivers/pcmcia/Makefile
35 +++ b/drivers/pcmcia/Makefile
36 @@ -33,6 +33,7 @@ obj-$(CONFIG_PCMCIA_PXA2XX)             
37  obj-$(CONFIG_M32R_PCC)                         += m32r_pcc.o
38  obj-$(CONFIG_M32R_CFC)                         += m32r_cfc.o
39  obj-$(CONFIG_PCMCIA_AU1X00)                    += au1x00_ss.o
40 +obj-$(CONFIG_PCMCIA_BCM63XX)                   += bcm63xx_pcmcia.o
41  obj-$(CONFIG_PCMCIA_VRC4171)                   += vrc4171_card.o
42  obj-$(CONFIG_PCMCIA_VRC4173)                   += vrc4173_cardu.o
43  obj-$(CONFIG_OMAP_CF)                          += omap_cf.o