blob: bae47e145de83e01eefaf1b6fd2b05a0265f6f7a [file] [log] [blame]
Richard Purdie0dd28f12005-09-13 01:25:34 -07001/*
2 * Support for Sharp SL-Cxx00 Series of PDAs
3 * Models: SL-C3000 (Spitz), SL-C1000 (Akita) and SL-C3100 (Borzoi)
4 *
5 * Copyright (c) 2005 Richard Purdie
6 *
7 * Based on Sharp's 2.4 kernel patches/lubbock.c
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>
Russell Kingd052d1b2005-10-29 19:07:23 +010017#include <linux/platform_device.h>
Richard Purdie0dd28f12005-09-13 01:25:34 -070018#include <linux/delay.h>
19#include <linux/major.h>
20#include <linux/fs.h>
21#include <linux/interrupt.h>
22#include <linux/mmc/host.h>
Richard Purdie74617fb2006-06-19 19:57:12 +010023#include <linux/pm.h>
Richard Purdie0dd28f12005-09-13 01:25:34 -070024
25#include <asm/setup.h>
26#include <asm/memory.h>
27#include <asm/mach-types.h>
28#include <asm/hardware.h>
29#include <asm/irq.h>
30#include <asm/io.h>
Richard Purdie74617fb2006-06-19 19:57:12 +010031#include <asm/system.h>
Richard Purdie0dd28f12005-09-13 01:25:34 -070032
33#include <asm/mach/arch.h>
34#include <asm/mach/map.h>
35#include <asm/mach/irq.h>
36
37#include <asm/arch/pxa-regs.h>
Richard Purdiedc078452005-10-30 14:50:25 +000038#include <asm/arch/irda.h>
Richard Purdie0dd28f12005-09-13 01:25:34 -070039#include <asm/arch/mmc.h>
Richard Purdie3125c682006-01-05 20:44:52 +000040#include <asm/arch/ohci.h>
Richard Purdie0dd28f12005-09-13 01:25:34 -070041#include <asm/arch/udc.h>
Richard Purdie0dd28f12005-09-13 01:25:34 -070042#include <asm/arch/pxafb.h>
43#include <asm/arch/akita.h>
44#include <asm/arch/spitz.h>
45#include <asm/arch/sharpsl.h>
46
47#include <asm/mach/sharpsl_param.h>
48#include <asm/hardware/scoop.h>
49
50#include "generic.h"
Russell King46c41e62007-05-15 15:39:36 +010051#include "devices.h"
Richard Purdie0dd28f12005-09-13 01:25:34 -070052#include "sharpsl.h"
53
54/*
55 * Spitz SCOOP Device #1
56 */
57static struct resource spitz_scoop_resources[] = {
58 [0] = {
59 .start = 0x10800000,
60 .end = 0x10800fff,
61 .flags = IORESOURCE_MEM,
62 },
63};
64
65static struct scoop_config spitz_scoop_setup = {
66 .io_dir = SPITZ_SCP_IO_DIR,
67 .io_out = SPITZ_SCP_IO_OUT,
68 .suspend_clr = SPITZ_SCP_SUS_CLR,
69 .suspend_set = SPITZ_SCP_SUS_SET,
70};
71
72struct platform_device spitzscoop_device = {
73 .name = "sharp-scoop",
74 .id = 0,
75 .dev = {
76 .platform_data = &spitz_scoop_setup,
77 },
78 .num_resources = ARRAY_SIZE(spitz_scoop_resources),
79 .resource = spitz_scoop_resources,
80};
81
82/*
83 * Spitz SCOOP Device #2
84 */
85static struct resource spitz_scoop2_resources[] = {
86 [0] = {
87 .start = 0x08800040,
88 .end = 0x08800fff,
89 .flags = IORESOURCE_MEM,
90 },
91};
92
93static struct scoop_config spitz_scoop2_setup = {
94 .io_dir = SPITZ_SCP2_IO_DIR,
95 .io_out = SPITZ_SCP2_IO_OUT,
96 .suspend_clr = SPITZ_SCP2_SUS_CLR,
97 .suspend_set = SPITZ_SCP2_SUS_SET,
98};
99
100struct platform_device spitzscoop2_device = {
101 .name = "sharp-scoop",
102 .id = 1,
103 .dev = {
104 .platform_data = &spitz_scoop2_setup,
105 },
106 .num_resources = ARRAY_SIZE(spitz_scoop2_resources),
107 .resource = spitz_scoop2_resources,
108};
109
Richard Purdiea63ae442005-11-08 19:15:43 +0000110#define SPITZ_PWR_SD 0x01
111#define SPITZ_PWR_CF 0x02
112
113/* Power control is shared with between one of the CF slots and SD */
114static void spitz_card_pwr_ctrl(int device, unsigned short new_cpr)
115{
116 unsigned short cpr = read_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR);
117
118 if (new_cpr & 0x0007) {
119 set_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_CF_POWER);
120 if (!(cpr & 0x0002) && !(cpr & 0x0004))
121 mdelay(5);
122 if (device == SPITZ_PWR_CF)
123 cpr |= 0x0002;
124 if (device == SPITZ_PWR_SD)
125 cpr |= 0x0004;
126 write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, cpr | new_cpr);
127 } else {
128 if (device == SPITZ_PWR_CF)
129 cpr &= ~0x0002;
130 if (device == SPITZ_PWR_SD)
131 cpr &= ~0x0004;
Richard Purdiea63ae442005-11-08 19:15:43 +0000132 if (!(cpr & 0x0002) && !(cpr & 0x0004)) {
Richard Purdie945b9572006-01-05 20:44:57 +0000133 write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, 0x0000);
Richard Purdiea63ae442005-11-08 19:15:43 +0000134 mdelay(1);
135 reset_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_CF_POWER);
Richard Purdie945b9572006-01-05 20:44:57 +0000136 } else {
137 write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, cpr | new_cpr);
Richard Purdiea63ae442005-11-08 19:15:43 +0000138 }
139 }
140}
141
142static void spitz_pcmcia_init(void)
143{
144 /* Setup default state of GPIO outputs
145 before we enable them as outputs. */
146 GPSR(GPIO48_nPOE) = GPIO_bit(GPIO48_nPOE) |
147 GPIO_bit(GPIO49_nPWE) | GPIO_bit(GPIO50_nPIOR) |
148 GPIO_bit(GPIO51_nPIOW) | GPIO_bit(GPIO54_nPCE_2);
149 GPSR(GPIO85_nPCE_1) = GPIO_bit(GPIO85_nPCE_1);
150
151 pxa_gpio_mode(GPIO48_nPOE_MD);
152 pxa_gpio_mode(GPIO49_nPWE_MD);
153 pxa_gpio_mode(GPIO50_nPIOR_MD);
154 pxa_gpio_mode(GPIO51_nPIOW_MD);
155 pxa_gpio_mode(GPIO55_nPREG_MD);
156 pxa_gpio_mode(GPIO56_nPWAIT_MD);
157 pxa_gpio_mode(GPIO57_nIOIS16_MD);
158 pxa_gpio_mode(GPIO85_nPCE_1_MD);
159 pxa_gpio_mode(GPIO54_nPCE_2_MD);
160 pxa_gpio_mode(GPIO104_pSKTSEL_MD);
161}
162
163static void spitz_pcmcia_pwr(struct device *scoop, unsigned short cpr, int nr)
164{
165 /* Only need to override behaviour for slot 0 */
166 if (nr == 0)
167 spitz_card_pwr_ctrl(SPITZ_PWR_CF, cpr);
168 else
169 write_scoop_reg(scoop, SCOOP_CPR, cpr);
170}
171
Richard Purdie0dd28f12005-09-13 01:25:34 -0700172static struct scoop_pcmcia_dev spitz_pcmcia_scoop[] = {
173{
174 .dev = &spitzscoop_device.dev,
175 .irq = SPITZ_IRQ_GPIO_CF_IRQ,
176 .cd_irq = SPITZ_IRQ_GPIO_CF_CD,
177 .cd_irq_str = "PCMCIA0 CD",
178},{
179 .dev = &spitzscoop2_device.dev,
180 .irq = SPITZ_IRQ_GPIO_CF2_IRQ,
181 .cd_irq = -1,
182},
183};
184
Richard Purdiea63ae442005-11-08 19:15:43 +0000185static struct scoop_pcmcia_config spitz_pcmcia_config = {
186 .devs = &spitz_pcmcia_scoop[0],
187 .num_devs = 2,
188 .pcmcia_init = spitz_pcmcia_init,
189 .power_ctrl = spitz_pcmcia_pwr,
190};
191
192EXPORT_SYMBOL(spitzscoop_device);
193EXPORT_SYMBOL(spitzscoop2_device);
194
Richard Purdie0dd28f12005-09-13 01:25:34 -0700195
196/*
197 * Spitz SSP Device
198 *
199 * Set the parent as the scoop device because a lot of SSP devices
200 * also use scoop functions and this makes the power up/down order
201 * work correctly.
202 */
203struct platform_device spitzssp_device = {
204 .name = "corgi-ssp",
205 .dev = {
206 .parent = &spitzscoop_device.dev,
207 },
208 .id = -1,
209};
210
211struct corgissp_machinfo spitz_ssp_machinfo = {
212 .port = 2,
213 .cs_lcdcon = SPITZ_GPIO_LCDCON_CS,
214 .cs_ads7846 = SPITZ_GPIO_ADS7846_CS,
215 .cs_max1111 = SPITZ_GPIO_MAX1111_CS,
216 .clk_lcdcon = 520,
217 .clk_ads7846 = 14,
218 .clk_max1111 = 56,
219};
220
221
222/*
223 * Spitz Backlight Device
224 */
225static struct corgibl_machinfo spitz_bl_machinfo = {
Richard Purdie2c0f5fb2006-03-31 02:31:51 -0800226 .default_intensity = 0x1f,
227 .limit_mask = 0x0b,
Richard Purdie0dd28f12005-09-13 01:25:34 -0700228 .max_intensity = 0x2f,
229};
230
231static struct platform_device spitzbl_device = {
232 .name = "corgi-bl",
233 .dev = {
234 .platform_data = &spitz_bl_machinfo,
235 },
236 .id = -1,
237};
238
239
240/*
241 * Spitz Keyboard Device
242 */
243static struct platform_device spitzkbd_device = {
244 .name = "spitz-keyboard",
245 .id = -1,
246};
247
248
249/*
Richard Purdie31791082006-03-31 02:31:09 -0800250 * Spitz LEDs
251 */
252static struct platform_device spitzled_device = {
253 .name = "spitz-led",
254 .id = -1,
255};
256
257/*
Richard Purdie0dd28f12005-09-13 01:25:34 -0700258 * Spitz Touch Screen Device
259 */
260static struct resource spitzts_resources[] = {
261 [0] = {
262 .start = SPITZ_IRQ_GPIO_TP_INT,
263 .end = SPITZ_IRQ_GPIO_TP_INT,
264 .flags = IORESOURCE_IRQ,
265 },
266};
267
268static struct corgits_machinfo spitz_ts_machinfo = {
269 .get_hsync_len = spitz_get_hsync_len,
270 .put_hsync = spitz_put_hsync,
271 .wait_hsync = spitz_wait_hsync,
272};
273
274static struct platform_device spitzts_device = {
275 .name = "corgi-ts",
276 .dev = {
277 .parent = &spitzssp_device.dev,
278 .platform_data = &spitz_ts_machinfo,
279 },
280 .id = -1,
281 .num_resources = ARRAY_SIZE(spitzts_resources),
282 .resource = spitzts_resources,
283};
284
285
286/*
287 * MMC/SD Device
288 *
289 * The card detect interrupt isn't debounced so we delay it by 250ms
290 * to give the card a chance to fully insert/eject.
291 */
292
293static struct pxamci_platform_data spitz_mci_platform_data;
294
David Howells40220c12006-10-09 12:19:47 +0100295static int spitz_mci_init(struct device *dev, irq_handler_t spitz_detect_int, void *data)
Richard Purdie0dd28f12005-09-13 01:25:34 -0700296{
297 int err;
298
299 /* setup GPIO for PXA27x MMC controller */
300 pxa_gpio_mode(GPIO32_MMCCLK_MD);
301 pxa_gpio_mode(GPIO112_MMCCMD_MD);
302 pxa_gpio_mode(GPIO92_MMCDAT0_MD);
303 pxa_gpio_mode(GPIO109_MMCDAT1_MD);
304 pxa_gpio_mode(GPIO110_MMCDAT2_MD);
305 pxa_gpio_mode(GPIO111_MMCDAT3_MD);
306 pxa_gpio_mode(SPITZ_GPIO_nSD_DETECT | GPIO_IN);
307 pxa_gpio_mode(SPITZ_GPIO_nSD_WP | GPIO_IN);
308
309 spitz_mci_platform_data.detect_delay = msecs_to_jiffies(250);
310
Russell King9ded96f2006-01-08 01:02:07 -0800311 err = request_irq(SPITZ_IRQ_GPIO_nSD_DETECT, spitz_detect_int,
Thomas Gleixner52e405e2006-07-03 02:20:05 +0200312 IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING,
Russell King9ded96f2006-01-08 01:02:07 -0800313 "MMC card detect", data);
Richard Purdie0dd28f12005-09-13 01:25:34 -0700314 if (err) {
315 printk(KERN_ERR "spitz_mci_init: MMC/SD: can't request MMC card detect IRQ\n");
316 return -1;
317 }
318
Richard Purdie0dd28f12005-09-13 01:25:34 -0700319 return 0;
320}
321
Richard Purdie0dd28f12005-09-13 01:25:34 -0700322static void spitz_mci_setpower(struct device *dev, unsigned int vdd)
323{
324 struct pxamci_platform_data* p_d = dev->platform_data;
325
Richard Purdiea63ae442005-11-08 19:15:43 +0000326 if (( 1 << vdd) & p_d->ocr_mask)
327 spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0004);
328 else
329 spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0000);
Richard Purdie0dd28f12005-09-13 01:25:34 -0700330}
331
332static int spitz_mci_get_ro(struct device *dev)
333{
334 return GPLR(SPITZ_GPIO_nSD_WP) & GPIO_bit(SPITZ_GPIO_nSD_WP);
335}
336
337static void spitz_mci_exit(struct device *dev, void *data)
338{
339 free_irq(SPITZ_IRQ_GPIO_nSD_DETECT, data);
340}
341
342static struct pxamci_platform_data spitz_mci_platform_data = {
343 .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
344 .init = spitz_mci_init,
345 .get_ro = spitz_mci_get_ro,
346 .setpower = spitz_mci_setpower,
347 .exit = spitz_mci_exit,
348};
349
350
351/*
Richard Purdie3125c682006-01-05 20:44:52 +0000352 * USB Host (OHCI)
353 */
354static int spitz_ohci_init(struct device *dev)
355{
356 /* Only Port 2 is connected */
357 pxa_gpio_mode(SPITZ_GPIO_USB_CONNECT | GPIO_IN);
358 pxa_gpio_mode(SPITZ_GPIO_USB_HOST | GPIO_OUT);
359 pxa_gpio_mode(SPITZ_GPIO_USB_DEVICE | GPIO_IN);
360
361 /* Setup USB Port 2 Output Control Register */
362 UP2OCR = UP2OCR_HXS | UP2OCR_HXOE | UP2OCR_DPPDE | UP2OCR_DMPDE;
363
364 GPSR(SPITZ_GPIO_USB_HOST) = GPIO_bit(SPITZ_GPIO_USB_HOST);
365
366 UHCHR = (UHCHR) &
367 ~(UHCHR_SSEP1 | UHCHR_SSEP2 | UHCHR_SSEP3 | UHCHR_SSE);
368
369 UHCRHDA |= UHCRHDA_NOCP;
370
371 return 0;
372}
373
374static struct pxaohci_platform_data spitz_ohci_platform_data = {
375 .port_mode = PMM_NPS_MODE,
376 .init = spitz_ohci_init,
Richard Purdie0c27c5d2006-06-08 22:44:07 +0100377 .power_budget = 150,
Richard Purdie3125c682006-01-05 20:44:52 +0000378};
379
380
381/*
Richard Purdiedc078452005-10-30 14:50:25 +0000382 * Irda
383 */
384static void spitz_irda_transceiver_mode(struct device *dev, int mode)
385{
386 if (mode & IR_OFF)
387 set_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON);
388 else
389 reset_scoop_gpio(&spitzscoop2_device.dev, SPITZ_SCP2_IR_ON);
390}
391
Richard Purdie94cabd02005-11-12 18:53:48 +0000392#ifdef CONFIG_MACH_AKITA
393static void akita_irda_transceiver_mode(struct device *dev, int mode)
394{
395 if (mode & IR_OFF)
396 akita_set_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON);
397 else
398 akita_reset_ioexp(&akitaioexp_device.dev, AKITA_IOEXP_IR_ON);
399}
400#endif
401
Richard Purdiedc078452005-10-30 14:50:25 +0000402static struct pxaficp_platform_data spitz_ficp_platform_data = {
403 .transceiver_cap = IR_SIRMODE | IR_OFF,
404 .transceiver_mode = spitz_irda_transceiver_mode,
405};
406
407
408/*
Richard Purdie0dd28f12005-09-13 01:25:34 -0700409 * Spitz PXA Framebuffer
410 */
Richard Purdied14b2722006-09-20 22:54:21 +0100411
412static struct pxafb_mode_info spitz_pxafb_modes[] = {
413{
414 .pixclock = 19231,
415 .xres = 480,
416 .yres = 640,
417 .bpp = 16,
418 .hsync_len = 40,
419 .left_margin = 46,
420 .right_margin = 125,
421 .vsync_len = 3,
422 .upper_margin = 1,
423 .lower_margin = 0,
424 .sync = 0,
425},{
426 .pixclock = 134617,
427 .xres = 240,
428 .yres = 320,
429 .bpp = 16,
430 .hsync_len = 20,
431 .left_margin = 20,
432 .right_margin = 46,
433 .vsync_len = 2,
434 .upper_margin = 1,
435 .lower_margin = 0,
436 .sync = 0,
437},
438};
439
440static struct pxafb_mach_info spitz_pxafb_info = {
441 .modes = &spitz_pxafb_modes[0],
442 .num_modes = 2,
443 .fixed_modes = 1,
444 .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act | LCCR0_LDDALT | LCCR0_OUC | LCCR0_CMDIM | LCCR0_RDSTM,
445 .lccr3 = LCCR3_PixRsEdg | LCCR3_OutEnH,
446 .pxafb_lcd_power = spitz_lcd_power,
Richard Purdie0dd28f12005-09-13 01:25:34 -0700447};
448
449
450static struct platform_device *devices[] __initdata = {
451 &spitzscoop_device,
452 &spitzssp_device,
453 &spitzkbd_device,
454 &spitzts_device,
455 &spitzbl_device,
Richard Purdie31791082006-03-31 02:31:09 -0800456 &spitzled_device,
Richard Purdie0dd28f12005-09-13 01:25:34 -0700457};
458
Richard Purdie74617fb2006-06-19 19:57:12 +0100459static void spitz_poweroff(void)
460{
461 RCSR = RCSR_HWR | RCSR_WDR | RCSR_SMR | RCSR_GPR;
462
463 pxa_gpio_mode(SPITZ_GPIO_ON_RESET | GPIO_OUT);
464 GPSR(SPITZ_GPIO_ON_RESET) = GPIO_bit(SPITZ_GPIO_ON_RESET);
465
466 mdelay(1000);
467 arm_machine_restart('h');
468}
469
470static void spitz_restart(char mode)
471{
472 /* Bootloader magic for a reboot */
473 if((MSC0 & 0xffff0000) == 0x7ff00000)
474 MSC0 = (MSC0 & 0xffff) | 0x7ee00000;
475
476 spitz_poweroff();
477}
478
Richard Purdie0dd28f12005-09-13 01:25:34 -0700479static void __init common_init(void)
480{
Richard Purdie74617fb2006-06-19 19:57:12 +0100481 pm_power_off = spitz_poweroff;
482 arm_pm_restart = spitz_restart;
483
Richard Purdie0dd28f12005-09-13 01:25:34 -0700484 PMCR = 0x00;
485
486 /* setup sleep mode values */
487 PWER = 0x00000002;
488 PFER = 0x00000000;
489 PRER = 0x00000002;
490 PGSR0 = 0x0158C000;
491 PGSR1 = 0x00FF0080;
492 PGSR2 = 0x0001C004;
493
494 /* Stop 3.6MHz and drive HIGH to PCMCIA and CS */
495 PCFR |= PCFR_OPDE;
496
497 corgi_ssp_set_machinfo(&spitz_ssp_machinfo);
498
499 pxa_gpio_mode(SPITZ_GPIO_HSYNC | GPIO_IN);
500
501 platform_add_devices(devices, ARRAY_SIZE(devices));
502 pxa_set_mci_info(&spitz_mci_platform_data);
Richard Purdie3125c682006-01-05 20:44:52 +0000503 pxa_set_ohci_info(&spitz_ohci_platform_data);
Richard Purdiedc078452005-10-30 14:50:25 +0000504 pxa_set_ficp_info(&spitz_ficp_platform_data);
Richard Purdiecb38c562005-10-14 16:07:25 +0100505 set_pxa_fb_parent(&spitzssp_device.dev);
Richard Purdie0dd28f12005-09-13 01:25:34 -0700506 set_pxa_fb_info(&spitz_pxafb_info);
507}
508
509static void __init spitz_init(void)
510{
Richard Purdiea63ae442005-11-08 19:15:43 +0000511 platform_scoop_config = &spitz_pcmcia_config;
512
Richard Purdie0dd28f12005-09-13 01:25:34 -0700513 spitz_bl_machinfo.set_bl_intensity = spitz_bl_set_intensity;
514
515 common_init();
516
517 platform_device_register(&spitzscoop2_device);
518}
519
Richard Purdie94cabd02005-11-12 18:53:48 +0000520#ifdef CONFIG_MACH_AKITA
521/*
522 * Akita IO Expander
523 */
524struct platform_device akitaioexp_device = {
525 .name = "akita-ioexp",
526 .id = -1,
527};
528
Richard Purdiebd8f1032006-03-26 21:40:27 +0100529EXPORT_SYMBOL_GPL(akitaioexp_device);
530
Richard Purdie94cabd02005-11-12 18:53:48 +0000531static void __init akita_init(void)
532{
533 spitz_ficp_platform_data.transceiver_mode = akita_irda_transceiver_mode;
534
535 /* We just pretend the second element of the array doesn't exist */
536 spitz_pcmcia_config.num_devs = 1;
537 platform_scoop_config = &spitz_pcmcia_config;
538 spitz_bl_machinfo.set_bl_intensity = akita_bl_set_intensity;
539
540 platform_device_register(&akitaioexp_device);
541
542 spitzscoop_device.dev.parent = &akitaioexp_device.dev;
543 common_init();
544}
545#endif
546
547
Richard Purdie0dd28f12005-09-13 01:25:34 -0700548static void __init fixup_spitz(struct machine_desc *desc,
549 struct tag *tags, char **cmdline, struct meminfo *mi)
550{
551 sharpsl_save_param();
552 mi->nr_banks = 1;
553 mi->bank[0].start = 0xa0000000;
554 mi->bank[0].node = 0;
555 mi->bank[0].size = (64*1024*1024);
556}
557
558#ifdef CONFIG_MACH_SPITZ
559MACHINE_START(SPITZ, "SHARP Spitz")
Richard Purdie0dd28f12005-09-13 01:25:34 -0700560 .phys_io = 0x40000000,
561 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
562 .fixup = fixup_spitz,
563 .map_io = pxa_map_io,
Eric Miaocd491042007-06-22 04:14:09 +0100564 .init_irq = pxa27x_init_irq,
Richard Purdie0dd28f12005-09-13 01:25:34 -0700565 .init_machine = spitz_init,
566 .timer = &pxa_timer,
567MACHINE_END
568#endif
569
570#ifdef CONFIG_MACH_BORZOI
571MACHINE_START(BORZOI, "SHARP Borzoi")
Richard Purdie0dd28f12005-09-13 01:25:34 -0700572 .phys_io = 0x40000000,
573 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
574 .fixup = fixup_spitz,
575 .map_io = pxa_map_io,
Eric Miaocd491042007-06-22 04:14:09 +0100576 .init_irq = pxa27x_init_irq,
Richard Purdie0dd28f12005-09-13 01:25:34 -0700577 .init_machine = spitz_init,
578 .timer = &pxa_timer,
579MACHINE_END
580#endif
Richard Purdie94cabd02005-11-12 18:53:48 +0000581
582#ifdef CONFIG_MACH_AKITA
583MACHINE_START(AKITA, "SHARP Akita")
Richard Purdie94cabd02005-11-12 18:53:48 +0000584 .phys_io = 0x40000000,
585 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
586 .fixup = fixup_spitz,
587 .map_io = pxa_map_io,
Eric Miaocd491042007-06-22 04:14:09 +0100588 .init_irq = pxa27x_init_irq,
Richard Purdie94cabd02005-11-12 18:53:48 +0000589 .init_machine = akita_init,
590 .timer = &pxa_timer,
591MACHINE_END
592#endif