2 * Support for Sharp SL-Cxx00 Series of PDAs
3 * Models: SL-C3000 (Spitz), SL-C1000 (Akita) and SL-C3100 (Borzoi)
5 * Copyright (c) 2005 Richard Purdie
7 * Based on Sharp's 2.4 kernel patches/lubbock.c
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.
15 #include <linux/kernel.h>
16 #include <linux/platform_device.h>
17 #include <linux/delay.h>
18 #include <linux/gpio_keys.h>
19 #include <linux/gpio.h>
20 #include <linux/leds.h>
21 #include <linux/mtd/physmap.h>
22 #include <linux/i2c.h>
23 #include <linux/i2c/pca953x.h>
24 #include <linux/spi/spi.h>
25 #include <linux/spi/ads7846.h>
26 #include <linux/spi/corgi_lcd.h>
27 #include <linux/mtd/sharpsl.h>
28 #include <linux/input/matrix_keypad.h>
30 #include <asm/setup.h>
31 #include <asm/mach-types.h>
32 #include <asm/mach/arch.h>
33 #include <asm/mach/sharpsl_param.h>
34 #include <asm/hardware/scoop.h>
37 #include <mach/pxa27x.h>
38 #include <mach/pxa27x-udc.h>
39 #include <mach/reset.h>
41 #include <mach/irda.h>
43 #include <mach/ohci.h>
44 #include <mach/pxafb.h>
45 #include <mach/pxa2xx_spi.h>
46 #include <mach/spitz.h>
52 static unsigned long spitz_pin_config[] __initdata = {
54 GPIO78_nCS_2, /* SCOOP #2 */
55 GPIO79_nCS_3, /* NAND */
56 GPIO80_nCS_4, /* SCOOP #1 */
58 /* LCD - 16bpp Active TFT */
74 GPIO28_I2S_BITCLK_OUT,
88 GPIO9_GPIO, /* SPITZ_GPIO_nSD_DETECT */
89 GPIO81_GPIO, /* SPITZ_GPIO_nSD_WP */
90 GPIO41_GPIO, /* SPITZ_GPIO_USB_CONNECT */
91 GPIO37_GPIO, /* SPITZ_GPIO_USB_HOST */
92 GPIO35_GPIO, /* SPITZ_GPIO_USB_DEVICE */
93 GPIO22_GPIO, /* SPITZ_GPIO_HSYNC */
94 GPIO94_GPIO, /* SPITZ_GPIO_CF_CD */
95 GPIO105_GPIO, /* SPITZ_GPIO_CF_IRQ */
96 GPIO106_GPIO, /* SPITZ_GPIO_CF2_IRQ */
98 /* GPIO matrix keypad */
99 GPIO88_GPIO, /* column 0 */
100 GPIO23_GPIO, /* column 1 */
101 GPIO24_GPIO, /* column 2 */
102 GPIO25_GPIO, /* column 3 */
103 GPIO26_GPIO, /* column 4 */
104 GPIO27_GPIO, /* column 5 */
105 GPIO52_GPIO, /* column 6 */
106 GPIO103_GPIO, /* column 7 */
107 GPIO107_GPIO, /* column 8 */
108 GPIO108_GPIO, /* column 9 */
109 GPIO114_GPIO, /* column 10 */
110 GPIO12_GPIO, /* row 0 */
111 GPIO17_GPIO, /* row 1 */
112 GPIO91_GPIO, /* row 2 */
113 GPIO34_GPIO, /* row 3 */
114 GPIO36_GPIO, /* row 4 */
115 GPIO38_GPIO, /* row 5 */
116 GPIO39_GPIO, /* row 6 */
122 GPIO1_GPIO | WAKEUP_ON_EDGE_RISE,
126 * Spitz SCOOP Device #1
128 static struct resource spitz_scoop_resources[] = {
132 .flags = IORESOURCE_MEM,
136 static struct scoop_config spitz_scoop_setup = {
137 .io_dir = SPITZ_SCP_IO_DIR,
138 .io_out = SPITZ_SCP_IO_OUT,
139 .suspend_clr = SPITZ_SCP_SUS_CLR,
140 .suspend_set = SPITZ_SCP_SUS_SET,
141 .gpio_base = SPITZ_SCP_GPIO_BASE,
144 struct platform_device spitzscoop_device = {
145 .name = "sharp-scoop",
148 .platform_data = &spitz_scoop_setup,
150 .num_resources = ARRAY_SIZE(spitz_scoop_resources),
151 .resource = spitz_scoop_resources,
155 * Spitz SCOOP Device #2
157 static struct resource spitz_scoop2_resources[] = {
161 .flags = IORESOURCE_MEM,
165 static struct scoop_config spitz_scoop2_setup = {
166 .io_dir = SPITZ_SCP2_IO_DIR,
167 .io_out = SPITZ_SCP2_IO_OUT,
168 .suspend_clr = SPITZ_SCP2_SUS_CLR,
169 .suspend_set = SPITZ_SCP2_SUS_SET,
170 .gpio_base = SPITZ_SCP2_GPIO_BASE,
173 struct platform_device spitzscoop2_device = {
174 .name = "sharp-scoop",
177 .platform_data = &spitz_scoop2_setup,
179 .num_resources = ARRAY_SIZE(spitz_scoop2_resources),
180 .resource = spitz_scoop2_resources,
183 #define SPITZ_PWR_SD 0x01
184 #define SPITZ_PWR_CF 0x02
186 /* Power control is shared with between one of the CF slots and SD */
187 static void spitz_card_pwr_ctrl(int device, unsigned short new_cpr)
189 unsigned short cpr = read_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR);
191 if (new_cpr & 0x0007) {
192 gpio_set_value(SPITZ_GPIO_CF_POWER, 1);
193 if (!(cpr & 0x0002) && !(cpr & 0x0004))
195 if (device == SPITZ_PWR_CF)
197 if (device == SPITZ_PWR_SD)
199 write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, cpr | new_cpr);
201 if (device == SPITZ_PWR_CF)
203 if (device == SPITZ_PWR_SD)
205 if (!(cpr & 0x0002) && !(cpr & 0x0004)) {
206 write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, 0x0000);
208 gpio_set_value(SPITZ_GPIO_CF_POWER, 0);
210 write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, cpr | new_cpr);
215 static void spitz_pcmcia_pwr(struct device *scoop, unsigned short cpr, int nr)
217 /* Only need to override behaviour for slot 0 */
219 spitz_card_pwr_ctrl(SPITZ_PWR_CF, cpr);
221 write_scoop_reg(scoop, SCOOP_CPR, cpr);
224 static struct scoop_pcmcia_dev spitz_pcmcia_scoop[] = {
226 .dev = &spitzscoop_device.dev,
227 .irq = SPITZ_IRQ_GPIO_CF_IRQ,
228 .cd_irq = SPITZ_IRQ_GPIO_CF_CD,
229 .cd_irq_str = "PCMCIA0 CD",
231 .dev = &spitzscoop2_device.dev,
232 .irq = SPITZ_IRQ_GPIO_CF2_IRQ,
237 static struct scoop_pcmcia_config spitz_pcmcia_config = {
238 .devs = &spitz_pcmcia_scoop[0],
240 .power_ctrl = spitz_pcmcia_pwr,
243 EXPORT_SYMBOL(spitzscoop_device);
244 EXPORT_SYMBOL(spitzscoop2_device);
247 * Spitz Keyboard Device
249 #define SPITZ_KEY_CALENDAR KEY_F1
250 #define SPITZ_KEY_ADDRESS KEY_F2
251 #define SPITZ_KEY_FN KEY_F3
252 #define SPITZ_KEY_CANCEL KEY_F4
253 #define SPITZ_KEY_EXOK KEY_F5
254 #define SPITZ_KEY_EXCANCEL KEY_F6
255 #define SPITZ_KEY_EXJOGDOWN KEY_F7
256 #define SPITZ_KEY_EXJOGUP KEY_F8
257 #define SPITZ_KEY_JAP1 KEY_LEFTALT
258 #define SPITZ_KEY_JAP2 KEY_RIGHTCTRL
259 #define SPITZ_KEY_SYNC KEY_F9
260 #define SPITZ_KEY_MAIL KEY_F10
261 #define SPITZ_KEY_OK KEY_F11
262 #define SPITZ_KEY_MENU KEY_F12
264 static const uint32_t spitzkbd_keymap[] = {
265 KEY(0, 0, KEY_LEFTCTRL),
273 KEY(0, 8, KEY_BACKSPACE),
274 KEY(0, 9, SPITZ_KEY_EXOK), /* EXOK */
275 KEY(0, 10, SPITZ_KEY_EXCANCEL), /* EXCANCEL */
284 KEY(1, 9, SPITZ_KEY_EXJOGDOWN), /* EXJOGDOWN */
285 KEY(1, 10, SPITZ_KEY_EXJOGUP), /* EXJOGUP */
294 KEY(3, 0, SPITZ_KEY_ADDRESS), /* ADDRESS */
302 KEY(3, 9, KEY_RIGHTSHIFT),
303 KEY(4, 0, SPITZ_KEY_CALENDAR), /* CALENDAR */
310 KEY(4, 8, KEY_ENTER),
311 KEY(4, 9, KEY_LEFTSHIFT),
312 KEY(5, 0, SPITZ_KEY_MAIL), /* MAIL */
315 KEY(5, 3, KEY_MINUS),
316 KEY(5, 4, KEY_SPACE),
317 KEY(5, 5, KEY_COMMA),
319 KEY(5, 10, SPITZ_KEY_FN), /* FN */
320 KEY(6, 0, KEY_SYSRQ),
321 KEY(6, 1, SPITZ_KEY_JAP1), /* JAP1 */
322 KEY(6, 2, SPITZ_KEY_JAP2), /* JAP2 */
323 KEY(6, 3, SPITZ_KEY_CANCEL), /* CANCEL */
324 KEY(6, 4, SPITZ_KEY_OK), /* OK */
325 KEY(6, 5, SPITZ_KEY_MENU), /* MENU */
328 KEY(6, 8, KEY_RIGHT),
331 static const struct matrix_keymap_data spitzkbd_keymap_data = {
332 .keymap = spitzkbd_keymap,
333 .keymap_size = ARRAY_SIZE(spitzkbd_keymap),
336 static const uint32_t spitzkbd_row_gpios[] =
337 { 12, 17, 91, 34, 36, 38, 39 };
338 static const uint32_t spitzkbd_col_gpios[] =
339 { 88, 23, 24, 25, 26, 27, 52, 103, 107, 108, 114 };
341 static struct matrix_keypad_platform_data spitzkbd_pdata = {
342 .keymap_data = &spitzkbd_keymap_data,
343 .row_gpios = spitzkbd_row_gpios,
344 .col_gpios = spitzkbd_col_gpios,
345 .num_row_gpios = ARRAY_SIZE(spitzkbd_row_gpios),
346 .num_col_gpios = ARRAY_SIZE(spitzkbd_col_gpios),
347 .col_scan_delay_us = 10,
352 static struct platform_device spitzkbd_device = {
353 .name = "matrix-keypad",
356 .platform_data = &spitzkbd_pdata,
361 static struct gpio_keys_button spitz_gpio_keys[] = {
365 .gpio = SPITZ_GPIO_ON_KEY,
369 /* Two buttons detecting the lid state */
373 .gpio = SPITZ_GPIO_SWA,
374 .desc = "Display Down",
379 .gpio = SPITZ_GPIO_SWB,
380 .desc = "Lid Closed",
384 static struct gpio_keys_platform_data spitz_gpio_keys_platform_data = {
385 .buttons = spitz_gpio_keys,
386 .nbuttons = ARRAY_SIZE(spitz_gpio_keys),
389 static struct platform_device spitz_gpio_keys_device = {
393 .platform_data = &spitz_gpio_keys_platform_data,
401 static struct gpio_led spitz_gpio_leds[] = {
403 .name = "spitz:amber:charge",
404 .default_trigger = "sharpsl-charge",
405 .gpio = SPITZ_GPIO_LED_ORANGE,
408 .name = "spitz:green:hddactivity",
409 .default_trigger = "ide-disk",
410 .gpio = SPITZ_GPIO_LED_GREEN,
414 static struct gpio_led_platform_data spitz_gpio_leds_info = {
415 .leds = spitz_gpio_leds,
416 .num_leds = ARRAY_SIZE(spitz_gpio_leds),
419 static struct platform_device spitzled_device = {
423 .platform_data = &spitz_gpio_leds_info,
427 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
428 static struct pxa2xx_spi_master spitz_spi_info = {
432 static void spitz_wait_for_hsync(void)
434 while (gpio_get_value(SPITZ_GPIO_HSYNC))
437 while (!gpio_get_value(SPITZ_GPIO_HSYNC))
441 static struct ads7846_platform_data spitz_ads7846_info = {
443 .vref_delay_usecs = 100,
446 .pressure_max = 1024,
447 .gpio_pendown = SPITZ_GPIO_TP_INT,
448 .wait_for_sync = spitz_wait_for_hsync,
451 static struct pxa2xx_spi_chip spitz_ads7846_chip = {
452 .gpio_cs = SPITZ_GPIO_ADS7846_CS,
455 static void spitz_bl_kick_battery(void)
457 void (*kick_batt)(void);
459 kick_batt = symbol_get(sharpsl_battery_kick);
462 symbol_put(sharpsl_battery_kick);
466 static struct corgi_lcd_platform_data spitz_lcdcon_info = {
467 .init_mode = CORGI_LCD_MODE_VGA,
468 .max_intensity = 0x2f,
469 .default_intensity = 0x1f,
471 .gpio_backlight_cont = SPITZ_GPIO_BACKLIGHT_CONT,
472 .gpio_backlight_on = SPITZ_GPIO_BACKLIGHT_ON,
473 .kick_battery = spitz_bl_kick_battery,
476 static struct pxa2xx_spi_chip spitz_lcdcon_chip = {
477 .gpio_cs = SPITZ_GPIO_LCDCON_CS,
480 static struct pxa2xx_spi_chip spitz_max1111_chip = {
481 .gpio_cs = SPITZ_GPIO_MAX1111_CS,
484 static struct spi_board_info spitz_spi_devices[] = {
486 .modalias = "ads7846",
487 .max_speed_hz = 1200000,
490 .platform_data = &spitz_ads7846_info,
491 .controller_data= &spitz_ads7846_chip,
492 .irq = gpio_to_irq(SPITZ_GPIO_TP_INT),
494 .modalias = "corgi-lcd",
495 .max_speed_hz = 50000,
498 .platform_data = &spitz_lcdcon_info,
499 .controller_data= &spitz_lcdcon_chip,
501 .modalias = "max1111",
502 .max_speed_hz = 450000,
505 .controller_data= &spitz_max1111_chip,
509 static void __init spitz_init_spi(void)
511 if (machine_is_akita()) {
512 spitz_lcdcon_info.gpio_backlight_cont = AKITA_GPIO_BACKLIGHT_CONT;
513 spitz_lcdcon_info.gpio_backlight_on = AKITA_GPIO_BACKLIGHT_ON;
516 pxa2xx_set_spi_info(2, &spitz_spi_info);
517 spi_register_board_info(ARRAY_AND_SIZE(spitz_spi_devices));
520 static inline void spitz_init_spi(void) {}
526 * The card detect interrupt isn't debounced so we delay it by 250ms
527 * to give the card a chance to fully insert/eject.
529 static void spitz_mci_setpower(struct device *dev, unsigned int vdd)
531 struct pxamci_platform_data* p_d = dev->platform_data;
533 if (( 1 << vdd) & p_d->ocr_mask)
534 spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0004);
536 spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0000);
539 static struct pxamci_platform_data spitz_mci_platform_data = {
540 .ocr_mask = MMC_VDD_32_33|MMC_VDD_33_34,
541 .setpower = spitz_mci_setpower,
542 .gpio_card_detect = SPITZ_GPIO_nSD_DETECT,
543 .gpio_card_ro = SPITZ_GPIO_nSD_WP,
551 static int spitz_ohci_init(struct device *dev)
555 err = gpio_request(SPITZ_GPIO_USB_HOST, "USB_HOST");
559 /* Only Port 2 is connected
560 * Setup USB Port 2 Output Control Register
562 UP2OCR = UP2OCR_HXS | UP2OCR_HXOE | UP2OCR_DPPDE | UP2OCR_DMPDE;
564 return gpio_direction_output(SPITZ_GPIO_USB_HOST, 1);
567 static void spitz_ohci_exit(struct device *dev)
569 gpio_free(SPITZ_GPIO_USB_HOST);
572 static struct pxaohci_platform_data spitz_ohci_platform_data = {
573 .port_mode = PMM_NPS_MODE,
574 .init = spitz_ohci_init,
575 .exit = spitz_ohci_exit,
576 .flags = ENABLE_PORT_ALL | NO_OC_PROTECTION,
585 static struct pxaficp_platform_data spitz_ficp_platform_data = {
586 /* .gpio_pwdown is set in spitz_init() and akita_init() accordingly */
587 .transceiver_cap = IR_SIRMODE | IR_OFF,
592 * Spitz PXA Framebuffer
595 static struct pxafb_mode_info spitz_pxafb_modes[] = {
623 static struct pxafb_mach_info spitz_pxafb_info = {
624 .modes = &spitz_pxafb_modes[0],
627 .lcd_conn = LCD_COLOR_TFT_16BPP | LCD_ALTERNATE_MAPPING,
630 static struct mtd_partition sharpsl_nand_partitions[] = {
632 .name = "System Area",
634 .size = 7 * 1024 * 1024,
637 .name = "Root Filesystem",
638 .offset = 7 * 1024 * 1024,
641 .name = "Home Filesystem",
642 .offset = MTDPART_OFS_APPEND,
643 .size = MTDPART_SIZ_FULL,
647 static uint8_t scan_ff_pattern[] = { 0xff, 0xff };
649 static struct nand_bbt_descr sharpsl_bbt = {
653 .pattern = scan_ff_pattern
656 static struct sharpsl_nand_platform_data sharpsl_nand_platform_data = {
657 .badblock_pattern = &sharpsl_bbt,
658 .partitions = sharpsl_nand_partitions,
659 .nr_partitions = ARRAY_SIZE(sharpsl_nand_partitions),
662 static struct resource sharpsl_nand_resources[] = {
666 .flags = IORESOURCE_MEM,
670 static struct platform_device sharpsl_nand_device = {
671 .name = "sharpsl-nand",
673 .resource = sharpsl_nand_resources,
674 .num_resources = ARRAY_SIZE(sharpsl_nand_resources),
675 .dev.platform_data = &sharpsl_nand_platform_data,
679 static struct mtd_partition sharpsl_rom_parts[] = {
681 .name ="Boot PROM Filesystem",
682 .offset = 0x00140000,
683 .size = MTDPART_SIZ_FULL,
687 static struct physmap_flash_data sharpsl_rom_data = {
689 .nr_parts = ARRAY_SIZE(sharpsl_rom_parts),
690 .parts = sharpsl_rom_parts,
693 static struct resource sharpsl_rom_resources[] = {
697 .flags = IORESOURCE_MEM,
701 static struct platform_device sharpsl_rom_device = {
702 .name = "physmap-flash",
704 .resource = sharpsl_rom_resources,
705 .num_resources = ARRAY_SIZE(sharpsl_rom_resources),
706 .dev.platform_data = &sharpsl_rom_data,
709 static struct platform_device *devices[] __initdata = {
712 &spitz_gpio_keys_device,
714 &sharpsl_nand_device,
718 static void spitz_poweroff(void)
720 arm_machine_restart('g', NULL);
723 static void spitz_restart(char mode, const char *cmd)
725 /* Bootloader magic for a reboot */
726 if((MSC0 & 0xffff0000) == 0x7ff00000)
727 MSC0 = (MSC0 & 0xffff) | 0x7ee00000;
732 static void __init common_init(void)
734 init_gpio_reset(SPITZ_GPIO_ON_RESET, 1, 0);
735 pm_power_off = spitz_poweroff;
736 arm_pm_restart = spitz_restart;
738 if (machine_is_spitz()) {
739 sharpsl_nand_partitions[1].size = 5 * 1024 * 1024;
740 } else if (machine_is_akita()) {
741 sharpsl_nand_partitions[1].size = 58 * 1024 * 1024;
742 } else if (machine_is_borzoi()) {
743 sharpsl_nand_partitions[1].size = 32 * 1024 * 1024;
748 /* Stop 3.6MHz and drive HIGH to PCMCIA and CS */
751 pxa2xx_mfp_config(ARRAY_AND_SIZE(spitz_pin_config));
753 pxa_set_ffuart_info(NULL);
754 pxa_set_btuart_info(NULL);
755 pxa_set_stuart_info(NULL);
759 platform_add_devices(devices, ARRAY_SIZE(devices));
760 spitz_mci_platform_data.detect_delay = msecs_to_jiffies(250);
761 pxa_set_mci_info(&spitz_mci_platform_data);
762 pxa_set_ohci_info(&spitz_ohci_platform_data);
763 pxa_set_ficp_info(&spitz_ficp_platform_data);
764 set_pxa_fb_info(&spitz_pxafb_info);
765 pxa_set_i2c_info(NULL);
768 #if defined(CONFIG_MACH_AKITA) || defined(CONFIG_MACH_BORZOI)
769 static struct nand_bbt_descr sharpsl_akita_bbt = {
773 .pattern = scan_ff_pattern
776 static struct nand_ecclayout akita_oobinfo = {
779 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11,
780 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23,
781 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37},
782 .oobfree = {{0x08, 0x09}}
786 #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI)
787 static void __init spitz_init(void)
789 spitz_ficp_platform_data.gpio_pwdown = SPITZ_GPIO_IR_ON;
791 #ifdef CONFIG_MACH_BORZOI
792 if (machine_is_borzoi()) {
793 sharpsl_nand_platform_data.badblock_pattern = &sharpsl_akita_bbt;
794 sharpsl_nand_platform_data.ecc_layout = &akita_oobinfo;
798 platform_scoop_config = &spitz_pcmcia_config;
802 platform_device_register(&spitzscoop2_device);
806 #ifdef CONFIG_MACH_AKITA
810 static struct pca953x_platform_data akita_ioexp = {
811 .gpio_base = AKITA_IOEXP_GPIO_BASE,
814 static struct i2c_board_info akita_i2c_board_info[] = {
818 .platform_data = &akita_ioexp,
822 static void __init akita_init(void)
824 spitz_ficp_platform_data.gpio_pwdown = AKITA_GPIO_IR_ON;
826 sharpsl_nand_platform_data.badblock_pattern = &sharpsl_akita_bbt;
827 sharpsl_nand_platform_data.ecc_layout = &akita_oobinfo;
829 /* We just pretend the second element of the array doesn't exist */
830 spitz_pcmcia_config.num_devs = 1;
831 platform_scoop_config = &spitz_pcmcia_config;
833 i2c_register_board_info(0, ARRAY_AND_SIZE(akita_i2c_board_info));
839 static void __init fixup_spitz(struct machine_desc *desc,
840 struct tag *tags, char **cmdline, struct meminfo *mi)
842 sharpsl_save_param();
844 mi->bank[0].start = 0xa0000000;
845 mi->bank[0].node = 0;
846 mi->bank[0].size = (64*1024*1024);
849 #ifdef CONFIG_MACH_SPITZ
850 MACHINE_START(SPITZ, "SHARP Spitz")
851 .phys_io = 0x40000000,
852 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
853 .fixup = fixup_spitz,
854 .map_io = pxa_map_io,
855 .init_irq = pxa27x_init_irq,
856 .init_machine = spitz_init,
861 #ifdef CONFIG_MACH_BORZOI
862 MACHINE_START(BORZOI, "SHARP Borzoi")
863 .phys_io = 0x40000000,
864 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
865 .fixup = fixup_spitz,
866 .map_io = pxa_map_io,
867 .init_irq = pxa27x_init_irq,
868 .init_machine = spitz_init,
873 #ifdef CONFIG_MACH_AKITA
874 MACHINE_START(AKITA, "SHARP Akita")
875 .phys_io = 0x40000000,
876 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
877 .fixup = fixup_spitz,
878 .map_io = pxa_map_io,
879 .init_irq = pxa27x_init_irq,
880 .init_machine = akita_init,