blob: 9ae2271f93c44688e52bb592828211402b4d056e [file] [log] [blame]
Dirk Opfer8459c152005-11-06 14:27:52 +00001/*
2 * Support for Sharp SL-C6000x PDAs
3 * Model: (Tosa)
4 *
5 * Copyright (c) 2005 Dirk Opfer
6 *
7 * Based on code written by Sharp/Lineo for 2.4 kernels
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 *
13 */
14
15#include <linux/kernel.h>
16#include <linux/init.h>
Dirk Opfer067c9042005-11-21 15:17:06 +000017#include <linux/platform_device.h>
Dirk Opfer8459c152005-11-06 14:27:52 +000018#include <linux/major.h>
19#include <linux/fs.h>
20#include <linux/interrupt.h>
21#include <linux/mmc/host.h>
Richard Purdie74617fb2006-06-19 19:57:12 +010022#include <linux/pm.h>
Russell King905f1462006-06-20 23:27:37 +010023#include <linux/delay.h>
Dmitry Baryshkov93e90122008-01-21 01:04:20 -050024#include <linux/gpio_keys.h>
25#include <linux/input.h>
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +010026#include <linux/gpio.h>
Dmitry Baryshkov86159a92008-05-22 16:21:48 +010027#include <linux/reboot.h>
Dirk Opfer8459c152005-11-06 14:27:52 +000028
29#include <asm/setup.h>
30#include <asm/memory.h>
31#include <asm/mach-types.h>
32#include <asm/hardware.h>
33#include <asm/irq.h>
Richard Purdie74617fb2006-06-19 19:57:12 +010034#include <asm/system.h>
Richard Purdie77483032007-03-07 00:02:15 +010035#include <asm/arch/pxa-regs.h>
eric miaobb548dd2008-01-30 09:39:48 +010036#include <asm/arch/pxa2xx-regs.h>
Dmitry Baryshkov2cb47342008-04-10 11:00:32 +010037#include <asm/arch/mfp-pxa25x.h>
Dirk Opfer8459c152005-11-06 14:27:52 +000038#include <asm/arch/irda.h>
Dmitry Baryshkov481ea5a2008-04-10 15:43:18 +010039#include <asm/arch/i2c.h>
Dirk Opfer8459c152005-11-06 14:27:52 +000040#include <asm/arch/mmc.h>
41#include <asm/arch/udc.h>
42
43#include <asm/mach/arch.h>
44#include <asm/mach/map.h>
45#include <asm/mach/irq.h>
Dirk Opfer8459c152005-11-06 14:27:52 +000046#include <asm/arch/tosa.h>
47
48#include <asm/hardware/scoop.h>
49#include <asm/mach/sharpsl_param.h>
50
51#include "generic.h"
Russell King46c41e62007-05-15 15:39:36 +010052#include "devices.h"
Dirk Opfer8459c152005-11-06 14:27:52 +000053
Dmitry Baryshkov2cb47342008-04-10 11:00:32 +010054static unsigned long tosa_pin_config[] = {
55 GPIO78_nCS_2, /* Scoop */
56 GPIO80_nCS_4, /* tg6393xb */
57 GPIO33_nCS_5, /* Scoop */
58
59 // GPIO76 CARD_VCC_ON1
60
61 GPIO19_GPIO, /* Reset out */
62 GPIO1_RST | WAKEUP_ON_EDGE_FALL,
63
64 GPIO0_GPIO | WAKEUP_ON_EDGE_FALL, /* WAKE_UP */
65 GPIO2_GPIO | WAKEUP_ON_EDGE_BOTH, /* AC_IN */
66 GPIO3_GPIO | WAKEUP_ON_EDGE_FALL, /* RECORD */
67 GPIO4_GPIO | WAKEUP_ON_EDGE_FALL, /* SYNC */
68 GPIO20_GPIO, /* EAR_IN */
69 GPIO22_GPIO, /* On */
70
71 GPIO5_GPIO, /* USB_IN */
72 GPIO32_GPIO, /* Pen IRQ */
73
74 GPIO7_GPIO, /* Jacket Detect */
75 GPIO14_GPIO, /* BAT0_CRG */
76 GPIO12_GPIO, /* BAT1_CRG */
77 GPIO17_GPIO, /* BAT0_LOW */
78 GPIO84_GPIO, /* BAT1_LOW */
79 GPIO38_GPIO, /* BAT_LOCK */
80
81 GPIO11_3_6MHz,
82 GPIO15_GPIO, /* TC6393XB IRQ */
83 GPIO18_RDY,
84 GPIO27_GPIO, /* LCD Sync */
85
86 /* MMC */
87 GPIO6_MMC_CLK,
88 GPIO8_MMC_CS0,
89 GPIO9_GPIO, /* Detect */
90 // GPIO10 nSD_INT
91
92 /* CF */
93 GPIO13_GPIO, /* CD_IRQ */
94 GPIO21_GPIO, /* Main Slot IRQ */
95 GPIO36_GPIO, /* Jacket Slot IRQ */
96 GPIO48_nPOE,
97 GPIO49_nPWE,
98 GPIO50_nPIOR,
99 GPIO51_nPIOW,
100 GPIO52_nPCE_1,
101 GPIO53_nPCE_2,
102 GPIO54_nPSKTSEL,
103 GPIO55_nPREG,
104 GPIO56_nPWAIT,
105 GPIO57_nIOIS16,
106
107 /* AC97 */
108 GPIO31_AC97_SYNC,
109 GPIO30_AC97_SDATA_OUT,
110 GPIO28_AC97_BITCLK,
111 GPIO29_AC97_SDATA_IN_0,
112 // GPIO79 nAUD_IRQ
113
114 /* FFUART */
115 GPIO34_FFUART_RXD,
116 GPIO35_FFUART_CTS,
117 GPIO37_FFUART_DSR,
118 GPIO39_FFUART_TXD,
119 GPIO40_FFUART_DTR,
120 GPIO41_FFUART_RTS,
121
122 /* BTUART */
123 GPIO42_BTUART_RXD,
124 GPIO43_BTUART_TXD,
125 GPIO44_BTUART_CTS,
126 GPIO45_BTUART_RTS,
127
128 /* IrDA */
129 GPIO46_STUART_RXD,
130 GPIO47_STUART_TXD,
131
132 /* Keybd */
133 GPIO58_GPIO,
134 GPIO59_GPIO,
135 GPIO60_GPIO,
136 GPIO61_GPIO,
137 GPIO62_GPIO,
138 GPIO63_GPIO,
139 GPIO64_GPIO,
140 GPIO65_GPIO,
141 GPIO66_GPIO,
142 GPIO67_GPIO,
143 GPIO68_GPIO,
144 GPIO69_GPIO,
145 GPIO70_GPIO,
146 GPIO71_GPIO,
147 GPIO72_GPIO,
148 GPIO73_GPIO,
149 GPIO74_GPIO,
150 GPIO75_GPIO,
151
152 /* SPI */
153 GPIO81_SSP2_CLK_OUT,
154 GPIO82_SSP2_FRM_OUT,
155 GPIO83_SSP2_TXD,
156};
157
Dirk Opfer8459c152005-11-06 14:27:52 +0000158/*
159 * SCOOP Device
160 */
161static struct resource tosa_scoop_resources[] = {
162 [0] = {
163 .start = TOSA_CF_PHYS,
164 .end = TOSA_CF_PHYS + 0xfff,
165 .flags = IORESOURCE_MEM,
166 },
167};
168
169static struct scoop_config tosa_scoop_setup = {
170 .io_dir = TOSA_SCOOP_IO_DIR,
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100171 .gpio_base = TOSA_SCOOP_GPIO_BASE,
Dirk Opfer8459c152005-11-06 14:27:52 +0000172};
173
Dmitry Baryshkovba4eb7e2008-04-19 10:42:25 +0100174static struct platform_device tosascoop_device = {
Dirk Opfer8459c152005-11-06 14:27:52 +0000175 .name = "sharp-scoop",
176 .id = 0,
177 .dev = {
178 .platform_data = &tosa_scoop_setup,
179 },
180 .num_resources = ARRAY_SIZE(tosa_scoop_resources),
181 .resource = tosa_scoop_resources,
182};
183
184
185/*
186 * SCOOP Device Jacket
187 */
188static struct resource tosa_scoop_jc_resources[] = {
189 [0] = {
190 .start = TOSA_SCOOP_PHYS + 0x40,
191 .end = TOSA_SCOOP_PHYS + 0xfff,
192 .flags = IORESOURCE_MEM,
193 },
194};
195
196static struct scoop_config tosa_scoop_jc_setup = {
197 .io_dir = TOSA_SCOOP_JC_IO_DIR,
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100198 .gpio_base = TOSA_SCOOP_JC_GPIO_BASE,
Dirk Opfer8459c152005-11-06 14:27:52 +0000199};
200
Dmitry Baryshkovba4eb7e2008-04-19 10:42:25 +0100201static struct platform_device tosascoop_jc_device = {
Dirk Opfer8459c152005-11-06 14:27:52 +0000202 .name = "sharp-scoop",
203 .id = 1,
204 .dev = {
205 .platform_data = &tosa_scoop_jc_setup,
206 .parent = &tosascoop_device.dev,
207 },
208 .num_resources = ARRAY_SIZE(tosa_scoop_jc_resources),
209 .resource = tosa_scoop_jc_resources,
210};
211
Dirk Opfer4c18ad22005-11-08 19:15:50 +0000212/*
213 * PCMCIA
214 */
Dirk Opfer8459c152005-11-06 14:27:52 +0000215static struct scoop_pcmcia_dev tosa_pcmcia_scoop[] = {
216{
217 .dev = &tosascoop_device.dev,
218 .irq = TOSA_IRQ_GPIO_CF_IRQ,
219 .cd_irq = TOSA_IRQ_GPIO_CF_CD,
220 .cd_irq_str = "PCMCIA0 CD",
221},{
222 .dev = &tosascoop_jc_device.dev,
223 .irq = TOSA_IRQ_GPIO_JC_CF_IRQ,
224 .cd_irq = -1,
225},
226};
227
Dirk Opfer4c18ad22005-11-08 19:15:50 +0000228static struct scoop_pcmcia_config tosa_pcmcia_config = {
229 .devs = &tosa_pcmcia_scoop[0],
230 .num_devs = 2,
Dirk Opfer4c18ad22005-11-08 19:15:50 +0000231};
232
Dirk Opfera93876c2005-11-08 19:15:30 +0000233/*
234 * USB Device Controller
235 */
Dirk Opfera93876c2005-11-08 19:15:30 +0000236static struct pxa2xx_udc_mach_info udc_info __initdata = {
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100237 .gpio_pullup = TOSA_GPIO_USB_PULLUP,
Dmitry Baryshkov487dc922007-12-21 12:18:01 +0300238 .gpio_vbus = TOSA_GPIO_USB_IN,
239 .gpio_vbus_inverted = 1,
Dirk Opfera93876c2005-11-08 19:15:30 +0000240};
241
242/*
243 * MMC/SD Device
244 */
245static struct pxamci_platform_data tosa_mci_platform_data;
246
David Howells40220c12006-10-09 12:19:47 +0100247static int tosa_mci_init(struct device *dev, irq_handler_t tosa_detect_int, void *data)
Dirk Opfera93876c2005-11-08 19:15:30 +0000248{
249 int err;
250
Dirk Opfera93876c2005-11-08 19:15:30 +0000251 tosa_mci_platform_data.detect_delay = msecs_to_jiffies(250);
252
Russell King2687bd32008-01-23 14:05:58 +0000253 err = request_irq(TOSA_IRQ_GPIO_nSD_DETECT, tosa_detect_int,
254 IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
Dirk Opfera93876c2005-11-08 19:15:30 +0000255 "MMC/SD card detect", data);
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100256 if (err) {
Dirk Opfera93876c2005-11-08 19:15:30 +0000257 printk(KERN_ERR "tosa_mci_init: MMC/SD: can't request MMC card detect IRQ\n");
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100258 goto err_irq;
259 }
Dirk Opfera93876c2005-11-08 19:15:30 +0000260
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100261 err = gpio_request(TOSA_GPIO_SD_WP, "sd_wp");
262 if (err) {
263 printk(KERN_ERR "tosa_mci_init: can't request SD_WP gpio\n");
264 goto err_gpio_wp;
265 }
266 err = gpio_direction_input(TOSA_GPIO_SD_WP);
267 if (err)
268 goto err_gpio_wp_dir;
269
270 err = gpio_request(TOSA_GPIO_PWR_ON, "sd_pwr");
271 if (err) {
272 printk(KERN_ERR "tosa_mci_init: can't request SD_PWR gpio\n");
273 goto err_gpio_pwr;
274 }
275 err = gpio_direction_output(TOSA_GPIO_PWR_ON, 0);
276 if (err)
277 goto err_gpio_pwr_dir;
278
279 return 0;
280
281err_gpio_pwr_dir:
282 gpio_free(TOSA_GPIO_PWR_ON);
283err_gpio_pwr:
284err_gpio_wp_dir:
285 gpio_free(TOSA_GPIO_SD_WP);
286err_gpio_wp:
287 free_irq(TOSA_IRQ_GPIO_nSD_DETECT, data);
288err_irq:
Russell King2687bd32008-01-23 14:05:58 +0000289 return err;
Dirk Opfera93876c2005-11-08 19:15:30 +0000290}
291
292static void tosa_mci_setpower(struct device *dev, unsigned int vdd)
293{
294 struct pxamci_platform_data* p_d = dev->platform_data;
295
296 if (( 1 << vdd) & p_d->ocr_mask) {
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100297 gpio_set_value(TOSA_GPIO_PWR_ON, 1);
Dirk Opfera93876c2005-11-08 19:15:30 +0000298 } else {
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100299 gpio_set_value(TOSA_GPIO_PWR_ON, 0);
Dirk Opfera93876c2005-11-08 19:15:30 +0000300 }
301}
302
303static int tosa_mci_get_ro(struct device *dev)
304{
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100305 return gpio_get_value(TOSA_GPIO_SD_WP);
Dirk Opfera93876c2005-11-08 19:15:30 +0000306}
307
308static void tosa_mci_exit(struct device *dev, void *data)
309{
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100310 gpio_free(TOSA_GPIO_PWR_ON);
311 gpio_free(TOSA_GPIO_SD_WP);
Dirk Opfera93876c2005-11-08 19:15:30 +0000312 free_irq(TOSA_IRQ_GPIO_nSD_DETECT, data);
313}
314
315static struct pxamci_platform_data tosa_mci_platform_data = {
316 .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
317 .init = tosa_mci_init,
318 .get_ro = tosa_mci_get_ro,
319 .setpower = tosa_mci_setpower,
320 .exit = tosa_mci_exit,
321};
322
323/*
324 * Irda
325 */
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100326static int tosa_irda_startup(struct device *dev)
327{
328 int ret;
329
330 ret = gpio_request(TOSA_GPIO_IR_POWERDWN, "IrDA powerdown");
331 if (ret)
332 return ret;
333
334 ret = gpio_direction_output(TOSA_GPIO_IR_POWERDWN, 0);
335 if (ret)
336 gpio_free(TOSA_GPIO_IR_POWERDWN);
337
338 return ret;
339 }
340
341static void tosa_irda_shutdown(struct device *dev)
342{
343 gpio_free(TOSA_GPIO_IR_POWERDWN);
344}
345
Dirk Opfera93876c2005-11-08 19:15:30 +0000346static void tosa_irda_transceiver_mode(struct device *dev, int mode)
347{
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100348 gpio_set_value(TOSA_GPIO_IR_POWERDWN, !(mode & IR_OFF));
Dirk Opfera93876c2005-11-08 19:15:30 +0000349}
350
351static struct pxaficp_platform_data tosa_ficp_platform_data = {
352 .transceiver_cap = IR_SIRMODE | IR_OFF,
353 .transceiver_mode = tosa_irda_transceiver_mode,
Dmitry Baryshkovd4e7d092008-04-12 20:16:16 +0100354 .startup = tosa_irda_startup,
355 .shutdown = tosa_irda_shutdown,
Dirk Opfera93876c2005-11-08 19:15:30 +0000356};
357
358/*
359 * Tosa Keyboard
360 */
361static struct platform_device tosakbd_device = {
362 .name = "tosa-keyboard",
363 .id = -1,
364};
Dirk Opfer8459c152005-11-06 14:27:52 +0000365
Dmitry Baryshkov93e90122008-01-21 01:04:20 -0500366static struct gpio_keys_button tosa_gpio_keys[] = {
Dmitry Baryshkov0aa97562008-04-12 20:02:50 +0100367 /*
368 * Two following keys are directly tied to "ON" button of tosa. Why?
369 * The first one can be used as a wakeup source, the second can't;
370 * also the first one is OR of ac_powered and on_button.
371 */
372 {
373 .type = EV_PWR,
374 .code = KEY_RESERVED,
375 .gpio = TOSA_GPIO_POWERON,
376 .desc = "Poweron",
377 .wakeup = 1,
378 .active_low = 1,
379 },
Dmitry Baryshkov93e90122008-01-21 01:04:20 -0500380 {
381 .type = EV_PWR,
382 .code = KEY_SUSPEND,
383 .gpio = TOSA_GPIO_ON_KEY,
384 .desc = "On key",
Dmitry Baryshkov0aa97562008-04-12 20:02:50 +0100385 /*
386 * can't be used as wakeup
387 * .wakeup = 1,
388 */
Dmitry Baryshkov93e90122008-01-21 01:04:20 -0500389 .active_low = 1,
390 },
391 {
392 .type = EV_KEY,
393 .code = TOSA_KEY_RECORD,
394 .gpio = TOSA_GPIO_RECORD_BTN,
395 .desc = "Record Button",
396 .wakeup = 1,
397 .active_low = 1,
398 },
399 {
400 .type = EV_KEY,
401 .code = TOSA_KEY_SYNC,
402 .gpio = TOSA_GPIO_SYNC,
403 .desc = "Sync Button",
404 .wakeup = 1,
405 .active_low = 1,
406 },
407};
408
409static struct gpio_keys_platform_data tosa_gpio_keys_platform_data = {
410 .buttons = tosa_gpio_keys,
411 .nbuttons = ARRAY_SIZE(tosa_gpio_keys),
412};
413
414static struct platform_device tosa_gpio_keys_device = {
415 .name = "gpio-keys",
416 .id = -1,
417 .dev = {
418 .platform_data = &tosa_gpio_keys_platform_data,
419 },
420};
421
Dirk Opfer6d0cf3e2006-03-31 02:31:12 -0800422/*
423 * Tosa LEDs
424 */
Dmitry Baryshkovba4eb7e2008-04-19 10:42:25 +0100425static struct gpio_led tosa_gpio_leds[] = {
Dmitry Baryshkov311c7362008-04-12 20:17:02 +0100426 {
427 .name = "tosa:amber:charge",
428 .default_trigger = "main-battery-charging",
429 .gpio = TOSA_GPIO_CHRG_ERR_LED,
430 },
431 {
432 .name = "tosa:green:mail",
433 .default_trigger = "nand-disk",
434 .gpio = TOSA_GPIO_NOTE_LED,
435 },
Dmitry Baryshkovc5461062008-04-19 10:42:06 +0100436 {
437 .name = "tosa:dual:wlan",
438 .default_trigger = "none",
439 .gpio = TOSA_GPIO_WLAN_LED,
440 },
441 {
442 .name = "tosa:blue:bluetooth",
443 .default_trigger = "none",
444 .gpio = TOSA_GPIO_BT_LED,
445 },
Dmitry Baryshkov311c7362008-04-12 20:17:02 +0100446};
447
Dmitry Baryshkovba4eb7e2008-04-19 10:42:25 +0100448static struct gpio_led_platform_data tosa_gpio_leds_platform_data = {
Dmitry Baryshkov311c7362008-04-12 20:17:02 +0100449 .leds = tosa_gpio_leds,
450 .num_leds = ARRAY_SIZE(tosa_gpio_leds),
451};
452
Dirk Opfer6d0cf3e2006-03-31 02:31:12 -0800453static struct platform_device tosaled_device = {
Dmitry Baryshkov311c7362008-04-12 20:17:02 +0100454 .name = "leds-gpio",
455 .id = -1,
456 .dev = {
457 .platform_data = &tosa_gpio_leds_platform_data,
458 },
Dirk Opfer6d0cf3e2006-03-31 02:31:12 -0800459};
460
Dirk Opfer8459c152005-11-06 14:27:52 +0000461static struct platform_device *devices[] __initdata = {
462 &tosascoop_device,
463 &tosascoop_jc_device,
Dirk Opfera93876c2005-11-08 19:15:30 +0000464 &tosakbd_device,
Dmitry Baryshkov93e90122008-01-21 01:04:20 -0500465 &tosa_gpio_keys_device,
Dirk Opfer6d0cf3e2006-03-31 02:31:12 -0800466 &tosaled_device,
Dirk Opfer8459c152005-11-06 14:27:52 +0000467};
468
Richard Purdie74617fb2006-06-19 19:57:12 +0100469static void tosa_poweroff(void)
470{
Dmitry Baryshkov86159a92008-05-22 16:21:48 +0100471 arm_machine_restart('g');
Richard Purdie74617fb2006-06-19 19:57:12 +0100472}
473
474static void tosa_restart(char mode)
475{
476 /* Bootloader magic for a reboot */
477 if((MSC0 & 0xffff0000) == 0x7ff00000)
478 MSC0 = (MSC0 & 0xffff) | 0x7ee00000;
479
480 tosa_poweroff();
481}
482
Dirk Opfer8459c152005-11-06 14:27:52 +0000483static void __init tosa_init(void)
484{
Dmitry Baryshkov2cb47342008-04-10 11:00:32 +0100485 pxa2xx_mfp_config(ARRAY_AND_SIZE(tosa_pin_config));
486 gpio_set_wake(MFP_PIN_GPIO1, 1);
487 /* We can't pass to gpio-keys since it will drop the Reset altfunc */
488
Dmitry Baryshkov86159a92008-05-22 16:21:48 +0100489 init_gpio_reset(TOSA_GPIO_ON_RESET);
490
Richard Purdie74617fb2006-06-19 19:57:12 +0100491 pm_power_off = tosa_poweroff;
492 arm_pm_restart = tosa_restart;
493
Dirk Opfer8459c152005-11-06 14:27:52 +0000494 PCFR |= PCFR_OPDE;
495
Dirk Opfera93876c2005-11-08 19:15:30 +0000496 /* enable batt_fault */
Dirk Opfer8459c152005-11-06 14:27:52 +0000497 PMCR = 0x01;
498
Dirk Opfera93876c2005-11-08 19:15:30 +0000499 pxa_set_mci_info(&tosa_mci_platform_data);
500 pxa_set_udc_info(&udc_info);
501 pxa_set_ficp_info(&tosa_ficp_platform_data);
Dmitry Baryshkov481ea5a2008-04-10 15:43:18 +0100502 pxa_set_i2c_info(NULL);
Dirk Opfer4c18ad22005-11-08 19:15:50 +0000503 platform_scoop_config = &tosa_pcmcia_config;
Dirk Opfer8459c152005-11-06 14:27:52 +0000504
Dirk Opfer4c18ad22005-11-08 19:15:50 +0000505 platform_add_devices(devices, ARRAY_SIZE(devices));
Dirk Opfer8459c152005-11-06 14:27:52 +0000506}
507
508static void __init fixup_tosa(struct machine_desc *desc,
509 struct tag *tags, char **cmdline, struct meminfo *mi)
510{
511 sharpsl_save_param();
512 mi->nr_banks=1;
513 mi->bank[0].start = 0xa0000000;
514 mi->bank[0].node = 0;
515 mi->bank[0].size = (64*1024*1024);
516}
517
518MACHINE_START(TOSA, "SHARP Tosa")
Dirk Opfer8459c152005-11-06 14:27:52 +0000519 .phys_io = 0x40000000,
520 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
521 .fixup = fixup_tosa,
522 .map_io = pxa_map_io,
Eric Miaocd491042007-06-22 04:14:09 +0100523 .init_irq = pxa25x_init_irq,
Dirk Opfer8459c152005-11-06 14:27:52 +0000524 .init_machine = tosa_init,
525 .timer = &pxa_timer,
526MACHINE_END