blob: 560a8a2ebff0e541421ed810cdeee299bbc57363 [file] [log] [blame]
Ian Molton7dc96412008-08-19 12:14:21 +01001/*
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
26static 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
65static void __init e740_init(void)
66{
67 pxa2xx_mfp_config(ARRAY_AND_SIZE(e740_pin_config));
68}
69
70MACHINE_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,
80MACHINE_END
81