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