ar71xx: fix mac address for 5GHz interface on WNDR3700
[openwrt.git] / target / linux / pxa / patches-2.6.21 / 004-board-init.patch
1 --- /dev/null
2 +++ b/arch/arm/mach-pxa/gumstix.c
3 @@ -0,0 +1,76 @@
4 +/*
5 + * linux/arch/arm/mach-pxa/gumstix.c
6 + *
7 + * Support for the Gumstix computer platform
8 + *
9 + * Author: Craig Hughes
10 + * Created: December 8 2004
11 + * Copyright: (C) 2004, Craig Hughes
12 + *
13 + * This program is free software; you can redistribute it and/or modify
14 + * it under the terms of the GNU General Public License version 2 as
15 + * published by the Free Software Foundation.
16 + */
17 +
18 +#include <asm/types.h>
19 +
20 +#include <linux/init.h>
21 +#include <linux/device.h>
22 +#include <linux/platform_device.h>
23 +
24 +#include <asm/hardware.h>
25 +#include <asm/mach-types.h>
26 +#include <asm/mach/arch.h>
27 +#include <asm/mach/irq.h>
28 +#include <asm/arch/udc.h>
29 +#include <asm/arch/mmc.h>
30 +#include <asm/arch/pxa-regs.h>
31 +#include <asm/arch/gumstix.h>
32 +
33 +#include "generic.h"
34 +
35 +static int gumstix_mci_init(struct device *dev, irqreturn_t (*lubbock_detect_int)(int, void *, struct pt_regs *), void *data)
36 +{
37 + // Set up MMC controller
38 + pxa_gpio_mode(GPIO6_MMCCLK_MD);
39 + pxa_gpio_mode(GPIO53_MMCCLK_MD);
40 + pxa_gpio_mode(GPIO8_MMCCS0_MD);
41 +
42 + return 0;
43 +}
44 +
45 +static struct pxamci_platform_data gumstix_mci_platform_data = {
46 + .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
47 + .init = &gumstix_mci_init,
48 +};
49 +
50 +static struct pxa2xx_udc_mach_info gumstix_udc_info __initdata = {
51 + .gpio_vbus = GPIO_GUMSTIX_USB_GPIOn,
52 + .gpio_pullup = GPIO_GUMSTIX_USB_GPIOx,
53 +};
54 +
55 +static struct platform_device gum_audio_device = {
56 + .name = "pxa2xx-ac97",
57 + .id = -1,
58 +};
59 +
60 +static struct platform_device *devices[] __initdata = {
61 + &gum_audio_device,
62 +};
63 +
64 +static void __init gumstix_init(void)
65 +{
66 + pxa_set_mci_info(&gumstix_mci_platform_data);
67 + pxa_set_udc_info(&gumstix_udc_info);
68 + (void) platform_add_devices(devices, ARRAY_SIZE(devices));
69 +}
70 +
71 +MACHINE_START(GUMSTIX, "The Gumstix Platform")
72 + .phys_io = 0x40000000,
73 + .boot_params = 0xa0000100,
74 + .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
75 + .timer = &pxa_timer,
76 + .map_io = pxa_map_io,
77 + .init_irq = pxa_init_irq,
78 + .init_machine = gumstix_init,
79 +MACHINE_END
This page took 0.049962 seconds and 5 git commands to generate.