diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-23 21:24:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-23 21:24:08 -0400 |
commit | 30d38542ec777468bb6a31829076a2dbc5690e35 (patch) | |
tree | 698b7a4fdd730befa34c4c9642cdbe72ce7d336a /arch/arm/mach-pxa/tavorevb.c | |
parent | 20b7997e8abdf338dcc27fb4f1333c4973a7f113 (diff) | |
parent | 044e5f45e4ad890d03bd1e8bb44c634397cac24d (diff) |
Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (85 commits)
[ARM] pxa: add base support for PXA930 Handheld Platform (aka SAAR)
[ARM] pxa: add base support for PXA930 Evaluation Board (aka TavorEVB)
[ARM] pxa: add base support for PXA930 (aka Tavor-P)
[ARM] Update mach-types
[ARM] pxa: make littleton to use the new smc91x platform data
[ARM] pxa: make zylonite to use the new smc91x platform data
[ARM] pxa: make mainstone to use the new smc91x platform data
[ARM] pxa: make lubbock to use new smc91x platform data
[NET] smc91x: prepare SMC_USE_PXA_DMA to be specified in platform data
[NET] smc91x: prepare for SMC_IO_SHIFT to be a platform configurable variable
[NET] smc91x: add SMC91X_NOWAIT flag to platform data
[NET] smc91x: favor the use of SMC91X_USE_* instead of SMC_CAN_USE_*
[NET] smc91x: remove "irq_flags" from "struct smc91x_platdata"
[ARM] 5146/1: pxa2xx: convert all boards to call pxa2xx_transceiver_mode helper
Support for LCD on e740 e750 e400 and e800 e-series PDAs
E-series UDC support
PXA UDC - allow use of inverted GPIO for pullup
Add e350 support
Fix broken e-series build
E-series GPIO / IRQ definitions.
...
Diffstat (limited to 'arch/arm/mach-pxa/tavorevb.c')
-rw-r--r-- | arch/arm/mach-pxa/tavorevb.c | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/tavorevb.c b/arch/arm/mach-pxa/tavorevb.c new file mode 100644 index 000000000000..ac283507e423 --- /dev/null +++ b/arch/arm/mach-pxa/tavorevb.c | |||
@@ -0,0 +1,84 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/tavorevb.c | ||
3 | * | ||
4 | * Support for the Marvell PXA930 Evaluation Board | ||
5 | * | ||
6 | * Copyright (C) 2007-2008 Marvell International Ltd. | ||
7 | * | ||
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. | ||
11 | */ | ||
12 | |||
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> | ||
21 | |||
22 | #include <asm/mach-types.h> | ||
23 | #include <asm/mach/arch.h> | ||
24 | #include <asm/hardware.h> | ||
25 | #include <asm/arch/pxa3xx-regs.h> | ||
26 | #include <asm/arch/mfp-pxa930.h> | ||
27 | |||
28 | #include "devices.h" | ||
29 | #include "generic.h" | ||
30 | |||
31 | /* Tavor EVB MFP configurations */ | ||
32 | static mfp_cfg_t tavorevb_mfp_cfg[] __initdata = { | ||
33 | /* Ethernet */ | ||
34 | DF_nCS1_nCS3, | ||
35 | GPIO47_GPIO, | ||
36 | }; | ||
37 | |||
38 | #define TAVOREVB_ETH_PHYS (0x14000000) | ||
39 | |||
40 | static struct resource smc91x_resources[] = { | ||
41 | [0] = { | ||
42 | .start = (TAVOREVB_ETH_PHYS + 0x300), | ||
43 | .end = (TAVOREVB_ETH_PHYS + 0xfffff), | ||
44 | .flags = IORESOURCE_MEM, | ||
45 | }, | ||
46 | [1] = { | ||
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, | ||
50 | } | ||
51 | }; | ||
52 | |||
53 | static struct smc91x_platdata tavorevb_smc91x_info = { | ||
54 | .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_USE_DMA, | ||
55 | }; | ||
56 | |||
57 | static struct platform_device smc91x_device = { | ||
58 | .name = "smc91x", | ||
59 | .id = 0, | ||
60 | .num_resources = ARRAY_SIZE(smc91x_resources), | ||
61 | .resource = smc91x_resources, | ||
62 | .dev = { | ||
63 | .platform_data = &tavorevb_smc91x_info, | ||
64 | }, | ||
65 | }; | ||
66 | |||
67 | static void __init tavorevb_init(void) | ||
68 | { | ||
69 | /* initialize MFP configurations */ | ||
70 | pxa3xx_mfp_config(ARRAY_AND_SIZE(tavorevb_mfp_cfg)); | ||
71 | |||
72 | platform_device_register(&smc91x_device); | ||
73 | } | ||
74 | |||
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, | ||
80 | .map_io = pxa_map_io, | ||
81 | .init_irq = pxa3xx_init_irq, | ||
82 | .timer = &pxa_timer, | ||
83 | .init_machine = tavorevb_init, | ||
84 | MACHINE_END | ||