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 | |
Ian Molton | 2836548 | 2008-08-09 21:48:45 +0100 | [diff] [blame] | 13 | #include <linux/kernel.h> |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 14 | #include <linux/init.h> |
| 15 | |
| 16 | #include <asm/setup.h> |
| 17 | #include <asm/mach/arch.h> |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 18 | #include <asm/mach-types.h> |
| 19 | |
Ian Molton | 2836548 | 2008-08-09 21:48:45 +0100 | [diff] [blame] | 20 | #include <mach/mfp-pxa25x.h> |
| 21 | #include <mach/hardware.h> |
Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame^] | 22 | #include <mach/eseries-gpio.h> |
| 23 | #include <mach/udc.h> |
Ian Molton | 2836548 | 2008-08-09 21:48:45 +0100 | [diff] [blame] | 24 | |
Ian Molton | 877e03d | 2008-06-25 22:22:49 +0100 | [diff] [blame] | 25 | #include "generic.h" |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 26 | |
| 27 | /* Only e800 has 128MB RAM */ |
Ian Molton | 7dc9641 | 2008-08-19 12:14:21 +0100 | [diff] [blame] | 28 | void __init eseries_fixup(struct machine_desc *desc, |
Ian Molton | 67a6e80 | 2008-07-26 00:51:12 +0100 | [diff] [blame] | 29 | struct tag *tags, char **cmdline, struct meminfo *mi) |
Ian Molton | 3abcd19 | 2007-11-19 13:16:56 +0100 | [diff] [blame] | 30 | { |
| 31 | mi->nr_banks=1; |
| 32 | mi->bank[0].start = 0xa0000000; |
| 33 | mi->bank[0].node = 0; |
| 34 | if (machine_is_e800()) |
| 35 | mi->bank[0].size = (128*1024*1024); |
| 36 | else |
| 37 | mi->bank[0].size = (64*1024*1024); |
| 38 | } |
| 39 | |
Ian Molton | ebcce7b | 2008-08-19 13:34:56 +0100 | [diff] [blame^] | 40 | struct pxa2xx_udc_mach_info e7xx_udc_mach_info = { |
| 41 | .gpio_vbus = GPIO_E7XX_USB_DISC, |
| 42 | .gpio_pullup = GPIO_E7XX_USB_PULLUP, |
| 43 | .gpio_pullup_inverted = 1 |
| 44 | }; |
| 45 | |