2 +++ b/arch/arm/mach-pxa/gumstix.c
5 + * linux/arch/arm/mach-pxa/gumstix.c
7 + * Support for the Gumstix computer platform
9 + * Author: Craig Hughes
10 + * Created: December 8 2004
11 + * Copyright: (C) 2004, Craig Hughes
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.
18 +#include <asm/types.h>
20 +#include <linux/init.h>
21 +#include <linux/device.h>
22 +#include <linux/platform_device.h>
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>
35 +static int gumstix_mci_init(struct device *dev, irqreturn_t (*lubbock_detect_int)(int, void *, struct pt_regs *), void *data)
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);
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,
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,
55 +static struct platform_device gum_audio_device = {
56 + .name = "pxa2xx-ac97",
60 +static struct platform_device *devices[] __initdata = {
64 +static void __init gumstix_init(void)
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));
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,