blob: edcd9d5ce5455b600e5ad5a693f14340f0d4d7f7 [file] [log] [blame]
Ian Molton7dc96412008-08-19 12:14:21 +01001/*
Ian Moltonb1ae1b72008-09-26 13:38:59 +01002 * Hardware definitions for the Toshiba e350 PDAs
Ian Molton7dc96412008-08-19 12:14:21 +01003 *
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>
Ian Moltonb1ae1b72008-09-26 13:38:59 +010015#include <linux/clk.h>
16#include <linux/platform_device.h>
17#include <linux/mfd/t7l66xb.h>
Ian Molton7dc96412008-08-19 12:14:21 +010018
19#include <asm/setup.h>
20#include <asm/mach/arch.h>
21#include <asm/mach-types.h>
22
Russell King80b02c12009-01-08 10:01:47 +000023#include <mach/irqs.h>
Ian Molton7dc96412008-08-19 12:14:21 +010024#include <mach/mfp-pxa25x.h>
Ian Moltonb1ae1b72008-09-26 13:38:59 +010025#include <mach/pxa-regs.h>
Ian Molton7dc96412008-08-19 12:14:21 +010026#include <mach/hardware.h>
Ian Moltonb1ae1b72008-09-26 13:38:59 +010027#include <mach/eseries-gpio.h>
Ian Moltonebcce7b2008-08-19 13:34:56 +010028#include <mach/udc.h>
Ian Molton7dc96412008-08-19 12:14:21 +010029
30#include "generic.h"
31#include "eseries.h"
Ian Moltonb1ae1b72008-09-26 13:38:59 +010032#include "clock.h"
33
34/* -------------------- e350 t7l66xb parameters -------------------- */
35
36static struct t7l66xb_platform_data e350_t7l66xb_info = {
37 .irq_base = IRQ_BOARD_START,
38 .enable = &eseries_tmio_enable,
39 .suspend = &eseries_tmio_suspend,
40 .resume = &eseries_tmio_resume,
41};
42
43static struct platform_device e350_t7l66xb_device = {
44 .name = "t7l66xb",
45 .id = -1,
46 .dev = {
47 .platform_data = &e350_t7l66xb_info,
48 },
49 .num_resources = 2,
50 .resource = eseries_tmio_resources,
51};
52
53/* ---------------------------------------------------------- */
54
55static struct platform_device *devices[] __initdata = {
56 &e350_t7l66xb_device,
57};
Ian Molton7dc96412008-08-19 12:14:21 +010058
Ian Moltonebcce7b2008-08-19 13:34:56 +010059static void __init e350_init(void)
60{
Ian Moltonb1ae1b72008-09-26 13:38:59 +010061 eseries_register_clks();
62 eseries_get_tmio_gpios();
63 platform_add_devices(devices, ARRAY_SIZE(devices));
Ian Moltonebcce7b2008-08-19 13:34:56 +010064 pxa_set_udc_info(&e7xx_udc_mach_info);
65}
66
Ian Molton7dc96412008-08-19 12:14:21 +010067MACHINE_START(E350, "Toshiba e350")
68 /* Maintainer: Ian Molton (spyro@f2s.com) */
69 .phys_io = 0x40000000,
70 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
71 .boot_params = 0xa0000100,
72 .map_io = pxa_map_io,
73 .init_irq = pxa25x_init_irq,
74 .fixup = eseries_fixup,
Ian Moltonebcce7b2008-08-19 13:34:56 +010075 .init_machine = e350_init,
Ian Molton7dc96412008-08-19 12:14:21 +010076 .timer = &pxa_timer,
77MACHINE_END
78