| Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 1 | /* | 
| Ian Molton | b1ae1b7 | 2008-09-26 13:38:59 +0100 | [diff] [blame] | 2 | * Hardware definitions for the Toshiba e350 PDAs | 
| Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 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> | 
| Ian Molton | b1ae1b7 | 2008-09-26 13:38:59 +0100 | [diff] [blame] | 15 | #include <linux/clk.h> | 
|  | 16 | #include <linux/platform_device.h> | 
|  | 17 | #include <linux/mfd/t7l66xb.h> | 
| Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 18 |  | 
|  | 19 | #include <asm/setup.h> | 
|  | 20 | #include <asm/mach/arch.h> | 
|  | 21 | #include <asm/mach-types.h> | 
|  | 22 |  | 
| Russell King | 80b02c1 | 2009-01-08 10:01:47 +0000 | [diff] [blame] | 23 | #include <mach/irqs.h> | 
| Eric Miao | 51c6298 | 2009-01-02 23:17:22 +0800 | [diff] [blame] | 24 | #include <mach/pxa25x.h> | 
| Ian Molton | b1ae1b7 | 2008-09-26 13:38:59 +0100 | [diff] [blame] | 25 | #include <mach/eseries-gpio.h> | 
| Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame] | 26 | #include <mach/udc.h> | 
| Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 27 |  | 
|  | 28 | #include "generic.h" | 
|  | 29 | #include "eseries.h" | 
| Ian Molton | b1ae1b7 | 2008-09-26 13:38:59 +0100 | [diff] [blame] | 30 | #include "clock.h" | 
|  | 31 |  | 
|  | 32 | /* -------------------- e350 t7l66xb parameters -------------------- */ | 
|  | 33 |  | 
|  | 34 | static struct t7l66xb_platform_data e350_t7l66xb_info = { | 
|  | 35 | .irq_base               = IRQ_BOARD_START, | 
|  | 36 | .enable                 = &eseries_tmio_enable, | 
|  | 37 | .suspend                = &eseries_tmio_suspend, | 
|  | 38 | .resume                 = &eseries_tmio_resume, | 
|  | 39 | }; | 
|  | 40 |  | 
|  | 41 | static struct platform_device e350_t7l66xb_device = { | 
|  | 42 | .name           = "t7l66xb", | 
|  | 43 | .id             = -1, | 
|  | 44 | .dev            = { | 
|  | 45 | .platform_data = &e350_t7l66xb_info, | 
|  | 46 | }, | 
|  | 47 | .num_resources = 2, | 
|  | 48 | .resource      = eseries_tmio_resources, | 
|  | 49 | }; | 
|  | 50 |  | 
|  | 51 | /* ---------------------------------------------------------- */ | 
|  | 52 |  | 
|  | 53 | static struct platform_device *devices[] __initdata = { | 
|  | 54 | &e350_t7l66xb_device, | 
|  | 55 | }; | 
| Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 56 |  | 
| Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame] | 57 | static void __init e350_init(void) | 
|  | 58 | { | 
| Russell King | cc155c6 | 2009-11-09 13:34:08 +0800 | [diff] [blame] | 59 | pxa_set_ffuart_info(NULL); | 
|  | 60 | pxa_set_btuart_info(NULL); | 
|  | 61 | pxa_set_stuart_info(NULL); | 
| Ian Molton | b1ae1b7 | 2008-09-26 13:38:59 +0100 | [diff] [blame] | 62 | eseries_register_clks(); | 
|  | 63 | eseries_get_tmio_gpios(); | 
|  | 64 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 
| Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame] | 65 | pxa_set_udc_info(&e7xx_udc_mach_info); | 
|  | 66 | } | 
|  | 67 |  | 
| Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 68 | MACHINE_START(E350, "Toshiba e350") | 
|  | 69 | /* Maintainer: Ian Molton (spyro@f2s.com) */ | 
|  | 70 | .phys_io	= 0x40000000, | 
|  | 71 | .io_pg_offst	= (io_p2v(0x40000000) >> 18) & 0xfffc, | 
|  | 72 | .boot_params	= 0xa0000100, | 
|  | 73 | .map_io		= pxa_map_io, | 
|  | 74 | .init_irq	= pxa25x_init_irq, | 
|  | 75 | .fixup		= eseries_fixup, | 
| Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame] | 76 | .init_machine	= e350_init, | 
| Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 77 | .timer		= &pxa_timer, | 
|  | 78 | MACHINE_END | 
|  | 79 |  |