MERGE-master-patchset-edits
[linux-2.6/openmoko-kernel.git] / arch / arm / mach-pxa / e330.c
blob1bd7f740427c6101e814457db68dfbe0b518ce64
1 /*
2 * Hardware definitions for the Toshiba e330 PDAs
4 * Copyright (c) 2003 Ian Molton <spyro@f2s.com>
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.
13 #include <linux/kernel.h>
14 #include <linux/init.h>
15 #include <linux/clk.h>
16 #include <linux/platform_device.h>
17 #include <linux/mfd/tc6387xb.h>
19 #include <asm/setup.h>
20 #include <asm/mach/arch.h>
21 #include <asm/mach-types.h>
23 #include <mach/mfp-pxa25x.h>
24 #include <mach/hardware.h>
25 #include <mach/pxa-regs.h>
26 #include <mach/eseries-gpio.h>
27 #include <mach/udc.h>
29 #include "generic.h"
30 #include "eseries.h"
31 #include "clock.h"
33 /* -------------------- e330 tc6387xb parameters -------------------- */
35 static struct tc6387xb_platform_data e330_tc6387xb_info = {
36 .enable = &eseries_tmio_enable,
37 .disable = &eseries_tmio_disable,
38 .suspend = &eseries_tmio_suspend,
39 .resume = &eseries_tmio_resume,
42 static struct platform_device e330_tc6387xb_device = {
43 .name = "tc6387xb",
44 .id = -1,
45 .dev = {
46 .platform_data = &e330_tc6387xb_info,
48 .num_resources = 2,
49 .resource = eseries_tmio_resources,
52 /* --------------------------------------------------------------- */
54 static struct platform_device *devices[] __initdata = {
55 &e330_tc6387xb_device,
58 static void __init e330_init(void)
60 eseries_register_clks();
61 eseries_get_tmio_gpios();
62 platform_add_devices(devices, ARRAY_SIZE(devices));
63 pxa_set_udc_info(&e7xx_udc_mach_info);
66 MACHINE_START(E330, "Toshiba e330")
67 /* Maintainer: Ian Molton (spyro@f2s.com) */
68 .phys_io = 0x40000000,
69 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
70 .boot_params = 0xa0000100,
71 .map_io = pxa_map_io,
72 .init_irq = pxa25x_init_irq,
73 .fixup = eseries_fixup,
74 .init_machine = e330_init,
75 .timer = &pxa_timer,
76 MACHINE_END