2 * linux/arch/arm/mach-mmp/flint.c
4 * Support for the Marvell Flint Development Platform.
6 * Copyright (C) 2009 Marvell International Ltd.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * publishhed by the Free Software Foundation.
13 #include <linux/init.h>
14 #include <linux/kernel.h>
15 #include <linux/platform_device.h>
16 #include <linux/smc91x.h>
18 #include <linux/gpio.h>
20 #include <asm/mach-types.h>
21 #include <asm/mach/arch.h>
22 #include <mach/addr-map.h>
23 #include <mach/mfp-mmp2.h>
24 #include <mach/mmp2.h>
28 static unsigned long flint_pin_config
[] __initdata
= {
76 static struct smc91x_platdata flint_smc91x_info
= {
77 .flags
= SMC91X_USE_16BIT
| SMC91X_NOWAIT
,
80 static struct resource smc91x_resources
[] = {
82 .start
= SMC_CS1_PHYS_BASE
+ 0x300,
83 .end
= SMC_CS1_PHYS_BASE
+ 0xfffff,
84 .flags
= IORESOURCE_MEM
,
87 .start
= gpio_to_irq(155),
88 .end
= gpio_to_irq(155),
89 .flags
= IORESOURCE_IRQ
| IORESOURCE_IRQ_HIGHEDGE
,
93 static struct platform_device smc91x_device
= {
97 .platform_data
= &flint_smc91x_info
,
99 .num_resources
= ARRAY_SIZE(smc91x_resources
),
100 .resource
= smc91x_resources
,
103 static void __init
flint_init(void)
105 mfp_config(ARRAY_AND_SIZE(flint_pin_config
));
107 /* on-chip devices */
111 /* off-chip devices */
112 platform_device_register(&smc91x_device
);
115 MACHINE_START(FLINT
, "Flint Development Platform")
116 .phys_io
= APB_PHYS_BASE
,
117 .io_pg_offst
= (APB_VIRT_BASE
>> 18) & 0xfffc,
118 .map_io
= mmp_map_io
,
119 .init_irq
= mmp2_init_irq
,
120 .timer
= &mmp2_timer
,
121 .init_machine
= flint_init
,