Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 1 | /* |
| 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/init.h> |
| 14 | |
| 15 | #include <asm/setup.h> |
| 16 | #include <asm/mach/arch.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 17 | #include <mach/hardware.h> |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 18 | #include <asm/mach-types.h> |
| 19 | |
Ian Molton | 877e03d | 2008-06-25 22:22:49 +0100 | [diff] [blame] | 20 | #include "generic.h" |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 21 | |
| 22 | /* Only e800 has 128MB RAM */ |
| 23 | static void __init eseries_fixup(struct machine_desc *desc, |
Ian Molton | 67a6e80 | 2008-07-26 00:51:12 +0100 | [diff] [blame^] | 24 | struct tag *tags, char **cmdline, struct meminfo *mi) |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 25 | { |
| 26 | mi->nr_banks=1; |
| 27 | mi->bank[0].start = 0xa0000000; |
| 28 | mi->bank[0].node = 0; |
| 29 | if (machine_is_e800()) |
| 30 | mi->bank[0].size = (128*1024*1024); |
| 31 | else |
| 32 | mi->bank[0].size = (64*1024*1024); |
| 33 | } |
| 34 | |
| 35 | /* e-series machine definitions */ |
| 36 | |
| 37 | #ifdef CONFIG_MACH_E330 |
| 38 | MACHINE_START(E330, "Toshiba e330") |
Ian Molton | 67a6e80 | 2008-07-26 00:51:12 +0100 | [diff] [blame^] | 39 | /* Maintainer: Ian Molton (spyro@f2s.com) */ |
| 40 | .phys_io = 0x40000000, |
| 41 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
| 42 | .boot_params = 0xa0000100, |
| 43 | .map_io = pxa_map_io, |
| 44 | .init_irq = pxa25x_init_irq, |
| 45 | .fixup = eseries_fixup, |
| 46 | .timer = &pxa_timer, |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 47 | MACHINE_END |
| 48 | #endif |
| 49 | |
Ian Molton | b3d354b | 2008-06-25 22:39:31 +0100 | [diff] [blame] | 50 | #ifdef CONFIG_MACH_E350 |
| 51 | MACHINE_START(E350, "Toshiba e350") |
| 52 | /* Maintainer: Ian Molton (spyro@f2s.com) */ |
Ian Molton | 67a6e80 | 2008-07-26 00:51:12 +0100 | [diff] [blame^] | 53 | .phys_io = 0x40000000, |
| 54 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
| 55 | .boot_params = 0xa0000100, |
| 56 | .map_io = pxa_map_io, |
| 57 | .init_irq = pxa25x_init_irq, |
| 58 | .fixup = eseries_fixup, |
| 59 | .timer = &pxa_timer, |
Ian Molton | b3d354b | 2008-06-25 22:39:31 +0100 | [diff] [blame] | 60 | MACHINE_END |
| 61 | #endif |
| 62 | |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 63 | #ifdef CONFIG_MACH_E740 |
| 64 | MACHINE_START(E740, "Toshiba e740") |
Ian Molton | 67a6e80 | 2008-07-26 00:51:12 +0100 | [diff] [blame^] | 65 | /* Maintainer: Ian Molton (spyro@f2s.com) */ |
| 66 | .phys_io = 0x40000000, |
| 67 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
| 68 | .boot_params = 0xa0000100, |
| 69 | .map_io = pxa_map_io, |
| 70 | .init_irq = pxa25x_init_irq, |
| 71 | .fixup = eseries_fixup, |
| 72 | .timer = &pxa_timer, |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 73 | MACHINE_END |
| 74 | #endif |
| 75 | |
| 76 | #ifdef CONFIG_MACH_E750 |
| 77 | MACHINE_START(E750, "Toshiba e750") |
Ian Molton | 67a6e80 | 2008-07-26 00:51:12 +0100 | [diff] [blame^] | 78 | /* Maintainer: Ian Molton (spyro@f2s.com) */ |
| 79 | .phys_io = 0x40000000, |
| 80 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
| 81 | .boot_params = 0xa0000100, |
| 82 | .map_io = pxa_map_io, |
| 83 | .init_irq = pxa25x_init_irq, |
| 84 | .fixup = eseries_fixup, |
| 85 | .timer = &pxa_timer, |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 86 | MACHINE_END |
| 87 | #endif |
| 88 | |
| 89 | #ifdef CONFIG_MACH_E400 |
| 90 | MACHINE_START(E400, "Toshiba e400") |
Ian Molton | 67a6e80 | 2008-07-26 00:51:12 +0100 | [diff] [blame^] | 91 | /* Maintainer: Ian Molton (spyro@f2s.com) */ |
| 92 | .phys_io = 0x40000000, |
| 93 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
| 94 | .boot_params = 0xa0000100, |
| 95 | .map_io = pxa_map_io, |
| 96 | .init_irq = pxa25x_init_irq, |
| 97 | .fixup = eseries_fixup, |
| 98 | .timer = &pxa_timer, |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 99 | MACHINE_END |
| 100 | #endif |
| 101 | |
| 102 | #ifdef CONFIG_MACH_E800 |
| 103 | MACHINE_START(E800, "Toshiba e800") |
Ian Molton | 67a6e80 | 2008-07-26 00:51:12 +0100 | [diff] [blame^] | 104 | /* Maintainer: Ian Molton (spyro@f2s.com) */ |
| 105 | .phys_io = 0x40000000, |
| 106 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
| 107 | .boot_params = 0xa0000100, |
| 108 | .map_io = pxa_map_io, |
| 109 | .init_irq = pxa25x_init_irq, |
| 110 | .fixup = eseries_fixup, |
| 111 | .timer = &pxa_timer, |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 112 | MACHINE_END |
| 113 | #endif |
| 114 | |