2 * linux/arch/arm/mach-mmp/tavorevb.c
4 * Support for the Marvell PXA910-based TavorEVB Development Platform.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * publishhed by the Free Software Foundation.
10 #include <linux/gpio.h>
11 #include <linux/gpio-pxa.h>
12 #include <linux/init.h>
13 #include <linux/kernel.h>
14 #include <linux/platform_device.h>
15 #include <linux/smc91x.h>
17 #include <asm/mach-types.h>
18 #include <asm/mach/arch.h>
19 #include <mach/addr-map.h>
20 #include <mach/mfp-pxa910.h>
21 #include <mach/pxa910.h>
22 #include <mach/irqs.h>
26 static unsigned long tavorevb_pin_config[] __initdata = {
64 static struct pxa_gpio_platform_data pxa910_gpio_pdata = {
65 .irq_base = MMP_GPIO_TO_IRQ(0),
68 static struct smc91x_platdata tavorevb_smc91x_info = {
69 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
72 static struct resource smc91x_resources[] = {
74 .start = SMC_CS1_PHYS_BASE + 0x300,
75 .end = SMC_CS1_PHYS_BASE + 0xfffff,
76 .flags = IORESOURCE_MEM,
79 .start = MMP_GPIO_TO_IRQ(80),
80 .end = MMP_GPIO_TO_IRQ(80),
81 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
85 static struct platform_device smc91x_device = {
89 .platform_data = &tavorevb_smc91x_info,
91 .num_resources = ARRAY_SIZE(smc91x_resources),
92 .resource = smc91x_resources,
95 static void __init tavorevb_init(void)
97 mfp_config(ARRAY_AND_SIZE(tavorevb_pin_config));
101 platform_device_add_data(&pxa910_device_gpio, &pxa910_gpio_pdata,
102 sizeof(struct pxa_gpio_platform_data));
103 platform_device_register(&pxa910_device_gpio);
105 /* off-chip devices */
106 platform_device_register(&smc91x_device);
109 MACHINE_START(TAVOREVB, "PXA910 Evaluation Board (aka TavorEVB)")
110 .map_io = mmp_map_io,
111 .nr_irqs = MMP_NR_IRQS,
112 .init_irq = pxa910_init_irq,
113 .init_time = pxa910_timer_init,
114 .init_machine = tavorevb_init,
115 .restart = mmp_restart,