diff options
author | Ian Molton <spyro@f2s.com> | 2008-08-19 07:14:21 -0400 |
---|---|---|
committer | Ian Molton <spyro@f2s.com> | 2008-08-19 08:44:07 -0400 |
commit | 7dc964148c2850e5df84fc17807ba48edb628c88 (patch) | |
tree | 66707f0b998131b2c9006886b71ac4f4a39a8ed2 /arch/arm/mach-pxa/e740.c | |
parent | 1a1dc50442ef1a3e5ef938a8541466ac38d163a9 (diff) |
[ARM] eseries: Split machine definitions
This patchset breaks out the e-series machine definitions into
one-per-machine.
Signed-off-by: Ian Molton <spyro@f2s.com>
Diffstat (limited to 'arch/arm/mach-pxa/e740.c')
-rw-r--r-- | arch/arm/mach-pxa/e740.c | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/e740.c b/arch/arm/mach-pxa/e740.c new file mode 100644 index 000000000000..560a8a2ebff0 --- /dev/null +++ b/arch/arm/mach-pxa/e740.c | |||
@@ -0,0 +1,81 @@ | |||
1 | /* | ||
2 | * Hardware definitions for the Toshiba eseries PDAs | ||
3 | * | ||
4 | * Copyright (c) 2003 Ian Molton <spyro@f2s.com> | ||
5 | * | ||
6 | * This file is licensed under | ||
7 | * the terms of the GNU General Public License version 2. This program | ||
8 | * is licensed "as is" without any warranty of any kind, whether express | ||
9 | * or implied. | ||
10 | * | ||
11 | */ | ||
12 | |||
13 | #include <linux/kernel.h> | ||
14 | #include <linux/init.h> | ||
15 | |||
16 | #include <asm/setup.h> | ||
17 | #include <asm/mach/arch.h> | ||
18 | #include <asm/mach-types.h> | ||
19 | |||
20 | #include <mach/mfp-pxa25x.h> | ||
21 | #include <mach/hardware.h> | ||
22 | |||
23 | #include "generic.h" | ||
24 | #include "eseries.h" | ||
25 | |||
26 | static unsigned long e740_pin_config[] __initdata = { | ||
27 | /* Chip selects */ | ||
28 | GPIO15_nCS_1, /* CS1 - Flash */ | ||
29 | GPIO79_nCS_3, /* CS3 - IMAGEON */ | ||
30 | GPIO80_nCS_4, /* CS4 - TMIO */ | ||
31 | |||
32 | /* Clocks */ | ||
33 | GPIO12_32KHz, | ||
34 | |||
35 | /* BTUART */ | ||
36 | GPIO42_BTUART_RXD, | ||
37 | GPIO43_BTUART_TXD, | ||
38 | GPIO44_BTUART_CTS, | ||
39 | GPIO45_GPIO, /* Used by TMIO for #SUSPEND */ | ||
40 | |||
41 | /* PC Card */ | ||
42 | GPIO8_GPIO, /* CD0 */ | ||
43 | GPIO44_GPIO, /* CD1 */ | ||
44 | GPIO11_GPIO, /* IRQ0 */ | ||
45 | GPIO6_GPIO, /* IRQ1 */ | ||
46 | GPIO27_GPIO, /* RST0 */ | ||
47 | GPIO24_GPIO, /* RST1 */ | ||
48 | GPIO20_GPIO, /* PWR0 */ | ||
49 | GPIO23_GPIO, /* PWR1 */ | ||
50 | GPIO48_nPOE, | ||
51 | GPIO49_nPWE, | ||
52 | GPIO50_nPIOR, | ||
53 | GPIO51_nPIOW, | ||
54 | GPIO52_nPCE_1, | ||
55 | GPIO53_nPCE_2, | ||
56 | GPIO54_nPSKTSEL, | ||
57 | GPIO55_nPREG, | ||
58 | GPIO56_nPWAIT, | ||
59 | GPIO57_nIOIS16, | ||
60 | |||
61 | /* wakeup */ | ||
62 | GPIO0_GPIO | WAKEUP_ON_EDGE_RISE, | ||
63 | }; | ||
64 | |||
65 | static void __init e740_init(void) | ||
66 | { | ||
67 | pxa2xx_mfp_config(ARRAY_AND_SIZE(e740_pin_config)); | ||
68 | } | ||
69 | |||
70 | MACHINE_START(E740, "Toshiba e740") | ||
71 | /* Maintainer: Ian Molton (spyro@f2s.com) */ | ||
72 | .phys_io = 0x40000000, | ||
73 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
74 | .boot_params = 0xa0000100, | ||
75 | .map_io = pxa_map_io, | ||
76 | .init_irq = pxa25x_init_irq, | ||
77 | .fixup = eseries_fixup, | ||
78 | .init_machine = e740_init, | ||
79 | .timer = &pxa_timer, | ||
80 | MACHINE_END | ||
81 | |||