blob: 0bcf9ece3d33e997e057ab73feb3a24daddebe5a [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
Ian Molton0ec3cf62008-08-19 13:01:28 +010020#include <mach/pxa-regs.h>
Ian Molton7dc96412008-08-19 12:14:21 +010021#include <mach/mfp-pxa25x.h>
22#include <mach/hardware.h>
23
Ian Molton0ec3cf62008-08-19 13:01:28 +010024#include <mach/pxafb.h>
25
Ian Molton7dc96412008-08-19 12:14:21 +010026#include "generic.h"
27#include "eseries.h"
28
Ian Molton0ec3cf62008-08-19 13:01:28 +010029/* ------------------------ E400 LCD definitions ------------------------ */
30
31static struct pxafb_mode_info e400_pxafb_mode_info = {
32 .pixclock = 140703,
33 .xres = 240,
34 .yres = 320,
35 .bpp = 16,
36 .hsync_len = 4,
37 .left_margin = 28,
38 .right_margin = 8,
39 .vsync_len = 3,
40 .upper_margin = 5,
41 .lower_margin = 6,
42 .sync = 0,
43};
44
45static struct pxafb_mach_info e400_pxafb_mach_info = {
46 .modes = &e400_pxafb_mode_info,
47 .num_modes = 1,
48 .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act,
49 .lccr3 = 0,
50 .pxafb_backlight_power = NULL,
51};
52
53/* ------------------------ E400 MFP config ----------------------------- */
54
Ian Molton7dc96412008-08-19 12:14:21 +010055static unsigned long e400_pin_config[] __initdata = {
56 /* Chip selects */
57 GPIO15_nCS_1, /* CS1 - Flash */
58 GPIO80_nCS_4, /* CS4 - TMIO */
59
60 /* Clocks */
61 GPIO12_32KHz,
62
63 /* BTUART */
64 GPIO42_BTUART_RXD,
65 GPIO43_BTUART_TXD,
66 GPIO44_BTUART_CTS,
67 GPIO45_GPIO, /* Used by TMIO for #SUSPEND */
68
69 /* wakeup */
70 GPIO0_GPIO | WAKEUP_ON_EDGE_RISE,
71};
72
Ian Molton0ec3cf62008-08-19 13:01:28 +010073/* ---------------------------------------------------------------------- */
74
Ian Molton7dc96412008-08-19 12:14:21 +010075static void __init e400_init(void)
76{
77 pxa2xx_mfp_config(ARRAY_AND_SIZE(e400_pin_config));
Ian Molton0ec3cf62008-08-19 13:01:28 +010078 set_pxa_fb_info(&e400_pxafb_mach_info);
Ian Molton7dc96412008-08-19 12:14:21 +010079}
80
81MACHINE_START(E400, "Toshiba e400")
82 /* Maintainer: Ian Molton (spyro@f2s.com) */
83 .phys_io = 0x40000000,
84 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
85 .boot_params = 0xa0000100,
86 .map_io = pxa_map_io,
87 .init_irq = pxa25x_init_irq,
88 .fixup = eseries_fixup,
89 .init_machine = e400_init,
90 .timer = &pxa_timer,
91MACHINE_END
92