2 * linux/arch/arm/mach-pxa/tavorevb.c
4 * Support for the Marvell PXA930 Evaluation Board
6 * Copyright (C) 2007-2008 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/module.h>
14 #include <linux/kernel.h>
15 #include <linux/interrupt.h>
16 #include <linux/init.h>
17 #include <linux/platform_device.h>
18 #include <linux/clk.h>
19 #include <linux/gpio.h>
20 #include <linux/smc91x.h>
22 #include <asm/mach-types.h>
23 #include <asm/mach/arch.h>
24 #include <mach/hardware.h>
25 #include <mach/pxa3xx-regs.h>
26 #include <mach/mfp-pxa930.h>
31 /* Tavor EVB MFP configurations */
32 static mfp_cfg_t tavorevb_mfp_cfg[] __initdata = {
38 #define TAVOREVB_ETH_PHYS (0x14000000)
40 static struct resource smc91x_resources[] = {
42 .start = (TAVOREVB_ETH_PHYS + 0x300),
43 .end = (TAVOREVB_ETH_PHYS + 0xfffff),
44 .flags = IORESOURCE_MEM,
47 .start = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO47)),
48 .end = gpio_to_irq(mfp_to_gpio(MFP_PIN_GPIO47)),
49 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
53 static struct smc91x_platdata tavorevb_smc91x_info = {
54 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_USE_DMA,
57 static struct platform_device smc91x_device = {
60 .num_resources = ARRAY_SIZE(smc91x_resources),
61 .resource = smc91x_resources,
63 .platform_data = &tavorevb_smc91x_info,
67 static void __init tavorevb_init(void)
69 /* initialize MFP configurations */
70 pxa3xx_mfp_config(ARRAY_AND_SIZE(tavorevb_mfp_cfg));
72 platform_device_register(&smc91x_device);
75 MACHINE_START(TAVOREVB, "PXA930 Evaluation Board (aka TavorEVB)")
76 /* Maintainer: Eric Miao <eric.miao@marvell.com> */
77 .phys_io = 0x40000000,
78 .boot_params = 0xa0000100,
79 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
81 .init_irq = pxa3xx_init_irq,
83 .init_machine = tavorevb_init,