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.
11 #include <linux/init.h>
12 #include <linux/kernel.h>
13 #include <linux/platform_device.h>
14 #include <linux/smc91x.h>
16 #include <asm/mach-types.h>
17 #include <asm/mach/arch.h>
18 #include <mach/addr-map.h>
19 #include <mach/mfp-pxa910.h>
20 #include <mach/pxa910.h>
21 #include <mach/gpio.h>
25 static unsigned long tavorevb_pin_config
[] __initdata
= {
63 static struct smc91x_platdata tavorevb_smc91x_info
= {
64 .flags
= SMC91X_USE_16BIT
| SMC91X_NOWAIT
,
67 static struct resource smc91x_resources
[] = {
69 .start
= SMC_CS1_PHYS_BASE
+ 0x300,
70 .end
= SMC_CS1_PHYS_BASE
+ 0xfffff,
71 .flags
= IORESOURCE_MEM
,
74 .start
= gpio_to_irq(80),
75 .end
= gpio_to_irq(80),
76 .flags
= IORESOURCE_IRQ
| IORESOURCE_IRQ_HIGHEDGE
,
80 static struct platform_device smc91x_device
= {
84 .platform_data
= &tavorevb_smc91x_info
,
86 .num_resources
= ARRAY_SIZE(smc91x_resources
),
87 .resource
= smc91x_resources
,
90 static void __init
tavorevb_init(void)
92 mfp_config(ARRAY_AND_SIZE(tavorevb_pin_config
));
97 /* off-chip devices */
98 platform_device_register(&smc91x_device
);
101 MACHINE_START(TAVOREVB
, "PXA910 Evaluation Board (aka TavorEVB)")
102 .phys_io
= APB_PHYS_BASE
,
103 .boot_params
= 0x00000100,
104 .io_pg_offst
= (APB_VIRT_BASE
>> 18) & 0xfffc,
105 .map_io
= pxa_map_io
,
106 .init_irq
= pxa910_init_irq
,
107 .timer
= &pxa910_timer
,
108 .init_machine
= tavorevb_init
,