ramips: register ethernet device on the WHR-G300N and V22RW-2x2 boards
[openwrt.git] / target / linux / pxa / patches-2.6.21 / 042-gumstix-pxa270-mmc.patch
1 --- a/arch/arm/mach-pxa/gumstix.c
2 +++ b/arch/arm/mach-pxa/gumstix.c
3 @@ -33,8 +33,9 @@
4
5 static struct pxamci_platform_data gumstix_mci_platform_data;
6
7 -static int gumstix_mci_init(struct device *dev, irqreturn_t (*gumstix_detect_int)(int, void *, struct pt_regs *), void *data)
8 +static int gumstix_mci_init(struct device *dev, irq_handler_t gumstix_detect_int, void *data)
9 {
10 +#ifndef CONFIG_ARCH_GUMSTIX_VERDEX
11 int err;
12
13 pxa_gpio_mode(GPIO6_MMCCLK_MD);
14 @@ -55,6 +56,17 @@ static int gumstix_mci_init(struct devic
15 }
16
17 err = set_irq_type(GUMSTIX_IRQ_GPIO_nSD_DETECT, IRQT_BOTHEDGE);
18 +#else
19 + // Setup GPIOs for MMC on the 120-pin connector
20 + // There is no card detect on a uSD connector so no interrupt to register
21 + // There is no WP detect GPIO line either
22 + pxa_gpio_mode(GPIO92_MMCDAT0_MD);
23 + pxa_gpio_mode(GPIO112_MMCCMD_MD);
24 + pxa_gpio_mode(GPIO110_MMCDAT2_MD);
25 + pxa_gpio_mode(GPIO111_MMCDAT3_MD);
26 + pxa_gpio_mode(GPIO109_MMCDAT1_MD);
27 + pxa_gpio_mode(GPIO32_MMCCLK_MD);
28 +#endif
29
30 return 0;
31 }
This page took 0.057257 seconds and 5 git commands to generate.