cns3xxx: use files directory
[openwrt.git] / target / linux / cns3xxx / patches-3.3 / 300-laguna_support.patch
1 --- a/arch/arm/mach-cns3xxx/Kconfig
2 +++ b/arch/arm/mach-cns3xxx/Kconfig
3 @@ -11,4 +11,14 @@ config MACH_CNS3420VB
4           This is a platform with an on-board ARM11 MPCore and has support
5           for USB, USB-OTG, MMC/SD/SDIO, SATA, PCI-E, etc.
6  
7 +config MACH_GW2388
8 +       bool "Support for Gateworks Laguna Platform"
9 +       select HAVE_ARM_SCU if SMP
10 +       select MIGHT_HAVE_PCI
11 +       help
12 +         Include support for the Gateworks Laguna Platform
13 +
14 +         This is a platform with an on-board ARM11 MPCore and has support
15 +         for USB, USB-OTG, MMC/SD/SDIO, SATA, PCI-E, I2C, GIG, etc.
16 +
17  endmenu
18 --- a/arch/arm/mach-cns3xxx/Makefile
19 +++ b/arch/arm/mach-cns3xxx/Makefile
20 @@ -1,6 +1,7 @@
21  obj-$(CONFIG_ARCH_CNS3XXX)             += core.o pm.o devices.o
22  obj-$(CONFIG_PCI)                      += pcie.o
23  obj-$(CONFIG_MACH_CNS3420VB)           += cns3420vb.o
24 +obj-$(CONFIG_MACH_GW2388)              += laguna.o
25  obj-$(CONFIG_SMP)                      += platsmp.o headsmp.o
26  obj-$(CONFIG_HOTPLUG_CPU)              += hotplug.o
27  obj-$(CONFIG_LOCAL_TIMERS)             += localtimer.o
28 --- a/arch/arm/mach-cns3xxx/devices.c
29 +++ b/arch/arm/mach-cns3xxx/devices.c
30 @@ -19,6 +19,7 @@
31  #include <mach/cns3xxx.h>
32  #include <mach/irqs.h>
33  #include <mach/pm.h>
34 +#include <asm/mach-types.h>
35  #include "core.h"
36  #include "devices.h"
37  
38 @@ -102,7 +103,11 @@ void __init cns3xxx_sdhci_init(void)
39         u32 gpioa_pins = __raw_readl(gpioa);
40  
41         /* MMC/SD pins share with GPIOA */
42 -       gpioa_pins |= 0x1fff0004;
43 +       if (machine_is_gw2388()) {
44 +               gpioa_pins |= 0x1fff0000;
45 +       } else {
46 +               gpioa_pins |= 0x1fff0004;
47 +       }
48         __raw_writel(gpioa_pins, gpioa);
49  
50         cns3xxx_pwr_clk_en(CNS3XXX_PWR_CLK_EN(SDIO));