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 | |
| 23 | #include <mach/mfp-pxa25x.h> |
Ian Molton | b1ae1b7 | 2008-09-26 13:38:59 +0100 | [diff] [blame] | 24 | #include <mach/pxa-regs.h> |
Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 25 | #include <mach/hardware.h> |
Ian Molton | b1ae1b7 | 2008-09-26 13:38:59 +0100 | [diff] [blame] | 26 | #include <mach/eseries-gpio.h> |
Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame] | 27 | #include <mach/udc.h> |
Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 28 | |
| 29 | #include "generic.h" |
| 30 | #include "eseries.h" |
Ian Molton | b1ae1b7 | 2008-09-26 13:38:59 +0100 | [diff] [blame] | 31 | #include "clock.h" |
| 32 | |
| 33 | /* -------------------- e350 t7l66xb parameters -------------------- */ |
| 34 | |
| 35 | static struct t7l66xb_platform_data e350_t7l66xb_info = { |
| 36 | .irq_base = IRQ_BOARD_START, |
| 37 | .enable = &eseries_tmio_enable, |
| 38 | .suspend = &eseries_tmio_suspend, |
| 39 | .resume = &eseries_tmio_resume, |
| 40 | }; |
| 41 | |
| 42 | static struct platform_device e350_t7l66xb_device = { |
| 43 | .name = "t7l66xb", |
| 44 | .id = -1, |
| 45 | .dev = { |
| 46 | .platform_data = &e350_t7l66xb_info, |
| 47 | }, |
| 48 | .num_resources = 2, |
| 49 | .resource = eseries_tmio_resources, |
| 50 | }; |
| 51 | |
| 52 | /* ---------------------------------------------------------- */ |
| 53 | |
| 54 | static struct platform_device *devices[] __initdata = { |
| 55 | &e350_t7l66xb_device, |
| 56 | }; |
Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 57 | |
Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame] | 58 | static void __init e350_init(void) |
| 59 | { |
Ian Molton | b1ae1b7 | 2008-09-26 13:38:59 +0100 | [diff] [blame] | 60 | eseries_register_clks(); |
| 61 | eseries_get_tmio_gpios(); |
| 62 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame] | 63 | pxa_set_udc_info(&e7xx_udc_mach_info); |
| 64 | } |
| 65 | |
Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 66 | MACHINE_START(E350, "Toshiba e350") |
| 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, |
Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame] | 74 | .init_machine = e350_init, |
Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 75 | .timer = &pxa_timer, |
| 76 | MACHINE_END |
| 77 | |