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.h>
19 #include <linux/leds.h>
20 #include <linux/mtd/physmap.h>
21 #include <linux/i2c.h>
22 #include <linux/i2c/pca953x.h>
23 #include <linux/spi/spi.h>
24 #include <linux/spi/ads7846.h>
25 #include <linux/spi/corgi_lcd.h>
26 #include <linux/mtd/sharpsl.h>
27 #include <linux/input/matrix_keypad.h>
29 #include <asm/setup.h>
30 #include <asm/mach-types.h>
31 #include <asm/mach/arch.h>
32 #include <asm/mach/sharpsl_param.h>
33 #include <asm/hardware/scoop.h>
36 #include <mach/pxa27x.h>
37 #include <mach/pxa27x-udc.h>
38 #include <mach/reset.h>
40 #include <mach/irda.h>
42 #include <mach/ohci.h>
43 #include <mach/pxafb.h>
44 #include <mach/pxa2xx_spi.h>
45 #include <mach/spitz.h>
51 static unsigned long spitz_pin_config
[] __initdata
= {
53 GPIO78_nCS_2
, /* SCOOP #2 */
54 GPIO79_nCS_3
, /* NAND */
55 GPIO80_nCS_4
, /* SCOOP #1 */
57 /* LCD - 16bpp Active TFT */
91 GPIO28_I2S_BITCLK_OUT
,
105 GPIO9_GPIO
, /* SPITZ_GPIO_nSD_DETECT */
106 GPIO81_GPIO
, /* SPITZ_GPIO_nSD_WP */
107 GPIO41_GPIO
, /* SPITZ_GPIO_USB_CONNECT */
108 GPIO37_GPIO
, /* SPITZ_GPIO_USB_HOST */
109 GPIO35_GPIO
, /* SPITZ_GPIO_USB_DEVICE */
110 GPIO22_GPIO
, /* SPITZ_GPIO_HSYNC */
111 GPIO94_GPIO
, /* SPITZ_GPIO_CF_CD */
112 GPIO105_GPIO
, /* SPITZ_GPIO_CF_IRQ */
113 GPIO106_GPIO
, /* SPITZ_GPIO_CF2_IRQ */
115 /* GPIO matrix keypad */
116 GPIO88_GPIO
, /* column 0 */
117 GPIO23_GPIO
, /* column 1 */
118 GPIO24_GPIO
, /* column 2 */
119 GPIO25_GPIO
, /* column 3 */
120 GPIO26_GPIO
, /* column 4 */
121 GPIO27_GPIO
, /* column 5 */
122 GPIO52_GPIO
, /* column 6 */
123 GPIO103_GPIO
, /* column 7 */
124 GPIO107_GPIO
, /* column 8 */
125 GPIO108_GPIO
, /* column 9 */
126 GPIO114_GPIO
, /* column 10 */
127 GPIO12_GPIO
, /* row 0 */
128 GPIO17_GPIO
, /* row 1 */
129 GPIO91_GPIO
, /* row 2 */
130 GPIO34_GPIO
, /* row 3 */
131 GPIO36_GPIO
, /* row 4 */
132 GPIO38_GPIO
, /* row 5 */
133 GPIO39_GPIO
, /* row 6 */
139 GPIO1_GPIO
| WAKEUP_ON_EDGE_RISE
,
143 * Spitz SCOOP Device #1
145 static struct resource spitz_scoop_resources
[] = {
149 .flags
= IORESOURCE_MEM
,
153 static struct scoop_config spitz_scoop_setup
= {
154 .io_dir
= SPITZ_SCP_IO_DIR
,
155 .io_out
= SPITZ_SCP_IO_OUT
,
156 .suspend_clr
= SPITZ_SCP_SUS_CLR
,
157 .suspend_set
= SPITZ_SCP_SUS_SET
,
158 .gpio_base
= SPITZ_SCP_GPIO_BASE
,
161 struct platform_device spitzscoop_device
= {
162 .name
= "sharp-scoop",
165 .platform_data
= &spitz_scoop_setup
,
167 .num_resources
= ARRAY_SIZE(spitz_scoop_resources
),
168 .resource
= spitz_scoop_resources
,
172 * Spitz SCOOP Device #2
174 static struct resource spitz_scoop2_resources
[] = {
178 .flags
= IORESOURCE_MEM
,
182 static struct scoop_config spitz_scoop2_setup
= {
183 .io_dir
= SPITZ_SCP2_IO_DIR
,
184 .io_out
= SPITZ_SCP2_IO_OUT
,
185 .suspend_clr
= SPITZ_SCP2_SUS_CLR
,
186 .suspend_set
= SPITZ_SCP2_SUS_SET
,
187 .gpio_base
= SPITZ_SCP2_GPIO_BASE
,
190 struct platform_device spitzscoop2_device
= {
191 .name
= "sharp-scoop",
194 .platform_data
= &spitz_scoop2_setup
,
196 .num_resources
= ARRAY_SIZE(spitz_scoop2_resources
),
197 .resource
= spitz_scoop2_resources
,
200 #define SPITZ_PWR_SD 0x01
201 #define SPITZ_PWR_CF 0x02
203 /* Power control is shared with between one of the CF slots and SD */
204 static void spitz_card_pwr_ctrl(int device
, unsigned short new_cpr
)
206 unsigned short cpr
= read_scoop_reg(&spitzscoop_device
.dev
, SCOOP_CPR
);
208 if (new_cpr
& 0x0007) {
209 gpio_set_value(SPITZ_GPIO_CF_POWER
, 1);
210 if (!(cpr
& 0x0002) && !(cpr
& 0x0004))
212 if (device
== SPITZ_PWR_CF
)
214 if (device
== SPITZ_PWR_SD
)
216 write_scoop_reg(&spitzscoop_device
.dev
, SCOOP_CPR
, cpr
| new_cpr
);
218 if (device
== SPITZ_PWR_CF
)
220 if (device
== SPITZ_PWR_SD
)
222 if (!(cpr
& 0x0002) && !(cpr
& 0x0004)) {
223 write_scoop_reg(&spitzscoop_device
.dev
, SCOOP_CPR
, 0x0000);
225 gpio_set_value(SPITZ_GPIO_CF_POWER
, 0);
227 write_scoop_reg(&spitzscoop_device
.dev
, SCOOP_CPR
, cpr
| new_cpr
);
232 static void spitz_pcmcia_pwr(struct device
*scoop
, unsigned short cpr
, int nr
)
234 /* Only need to override behaviour for slot 0 */
236 spitz_card_pwr_ctrl(SPITZ_PWR_CF
, cpr
);
238 write_scoop_reg(scoop
, SCOOP_CPR
, cpr
);
241 static struct scoop_pcmcia_dev spitz_pcmcia_scoop
[] = {
243 .dev
= &spitzscoop_device
.dev
,
244 .irq
= SPITZ_IRQ_GPIO_CF_IRQ
,
245 .cd_irq
= SPITZ_IRQ_GPIO_CF_CD
,
246 .cd_irq_str
= "PCMCIA0 CD",
248 .dev
= &spitzscoop2_device
.dev
,
249 .irq
= SPITZ_IRQ_GPIO_CF2_IRQ
,
254 static struct scoop_pcmcia_config spitz_pcmcia_config
= {
255 .devs
= &spitz_pcmcia_scoop
[0],
257 .power_ctrl
= spitz_pcmcia_pwr
,
260 EXPORT_SYMBOL(spitzscoop_device
);
261 EXPORT_SYMBOL(spitzscoop2_device
);
264 * Spitz Keyboard Device
266 #define SPITZ_KEY_CALENDAR KEY_F1
267 #define SPITZ_KEY_ADDRESS KEY_F2
268 #define SPITZ_KEY_FN KEY_F3
269 #define SPITZ_KEY_CANCEL KEY_F4
270 #define SPITZ_KEY_EXOK KEY_F5
271 #define SPITZ_KEY_EXCANCEL KEY_F6
272 #define SPITZ_KEY_EXJOGDOWN KEY_F7
273 #define SPITZ_KEY_EXJOGUP KEY_F8
274 #define SPITZ_KEY_JAP1 KEY_LEFTALT
275 #define SPITZ_KEY_JAP2 KEY_RIGHTCTRL
276 #define SPITZ_KEY_SYNC KEY_F9
277 #define SPITZ_KEY_MAIL KEY_F10
278 #define SPITZ_KEY_OK KEY_F11
279 #define SPITZ_KEY_MENU KEY_F12
281 static const uint32_t spitzkbd_keymap
[] = {
282 KEY(0, 0, KEY_LEFTCTRL
),
290 KEY(0, 8, KEY_BACKSPACE
),
291 KEY(0, 9, SPITZ_KEY_EXOK
), /* EXOK */
292 KEY(0, 10, SPITZ_KEY_EXCANCEL
), /* EXCANCEL */
301 KEY(1, 9, SPITZ_KEY_EXJOGDOWN
), /* EXJOGDOWN */
302 KEY(1, 10, SPITZ_KEY_EXJOGUP
), /* EXJOGUP */
311 KEY(3, 0, SPITZ_KEY_ADDRESS
), /* ADDRESS */
319 KEY(3, 9, KEY_RIGHTSHIFT
),
320 KEY(4, 0, SPITZ_KEY_CALENDAR
), /* CALENDAR */
327 KEY(4, 8, KEY_ENTER
),
328 KEY(4, 9, KEY_LEFTSHIFT
),
329 KEY(5, 0, SPITZ_KEY_MAIL
), /* MAIL */
332 KEY(5, 3, KEY_MINUS
),
333 KEY(5, 4, KEY_SPACE
),
334 KEY(5, 5, KEY_COMMA
),
336 KEY(5, 10, SPITZ_KEY_FN
), /* FN */
337 KEY(6, 0, KEY_SYSRQ
),
338 KEY(6, 1, SPITZ_KEY_JAP1
), /* JAP1 */
339 KEY(6, 2, SPITZ_KEY_JAP2
), /* JAP2 */
340 KEY(6, 3, SPITZ_KEY_CANCEL
), /* CANCEL */
341 KEY(6, 4, SPITZ_KEY_OK
), /* OK */
342 KEY(6, 5, SPITZ_KEY_MENU
), /* MENU */
345 KEY(6, 8, KEY_RIGHT
),
348 static const struct matrix_keymap_data spitzkbd_keymap_data
= {
349 .keymap
= spitzkbd_keymap
,
350 .keymap_size
= ARRAY_SIZE(spitzkbd_keymap
),
353 static const uint32_t spitzkbd_row_gpios
[] =
354 { 12, 17, 91, 34, 36, 38, 39 };
355 static const uint32_t spitzkbd_col_gpios
[] =
356 { 88, 23, 24, 25, 26, 27, 52, 103, 107, 108, 114 };
358 static struct matrix_keypad_platform_data spitzkbd_pdata
= {
359 .keymap_data
= &spitzkbd_keymap_data
,
360 .row_gpios
= spitzkbd_row_gpios
,
361 .col_gpios
= spitzkbd_col_gpios
,
362 .num_row_gpios
= ARRAY_SIZE(spitzkbd_row_gpios
),
363 .num_col_gpios
= ARRAY_SIZE(spitzkbd_col_gpios
),
364 .col_scan_delay_us
= 10,
369 static struct platform_device spitzkbd_device
= {
370 .name
= "matrix-keypad",
373 .platform_data
= &spitzkbd_pdata
,
381 static struct gpio_led spitz_gpio_leds
[] = {
383 .name
= "spitz:amber:charge",
384 .default_trigger
= "sharpsl-charge",
385 .gpio
= SPITZ_GPIO_LED_ORANGE
,
388 .name
= "spitz:green:hddactivity",
389 .default_trigger
= "ide-disk",
390 .gpio
= SPITZ_GPIO_LED_GREEN
,
394 static struct gpio_led_platform_data spitz_gpio_leds_info
= {
395 .leds
= spitz_gpio_leds
,
396 .num_leds
= ARRAY_SIZE(spitz_gpio_leds
),
399 static struct platform_device spitzled_device
= {
403 .platform_data
= &spitz_gpio_leds_info
,
407 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
408 static struct pxa2xx_spi_master spitz_spi_info
= {
412 static void spitz_wait_for_hsync(void)
414 while (gpio_get_value(SPITZ_GPIO_HSYNC
))
417 while (!gpio_get_value(SPITZ_GPIO_HSYNC
))
421 static struct ads7846_platform_data spitz_ads7846_info
= {
423 .vref_delay_usecs
= 100,
426 .gpio_pendown
= SPITZ_GPIO_TP_INT
,
427 .wait_for_sync
= spitz_wait_for_hsync
,
430 static struct pxa2xx_spi_chip spitz_ads7846_chip
= {
431 .gpio_cs
= SPITZ_GPIO_ADS7846_CS
,
434 static void spitz_bl_kick_battery(void)
436 void (*kick_batt
)(void);
438 kick_batt
= symbol_get(sharpsl_battery_kick
);
441 symbol_put(sharpsl_battery_kick
);
445 static struct corgi_lcd_platform_data spitz_lcdcon_info
= {
446 .init_mode
= CORGI_LCD_MODE_VGA
,
447 .max_intensity
= 0x2f,
448 .default_intensity
= 0x1f,
450 .gpio_backlight_cont
= SPITZ_GPIO_BACKLIGHT_CONT
,
451 .gpio_backlight_on
= SPITZ_GPIO_BACKLIGHT_ON
,
452 .kick_battery
= spitz_bl_kick_battery
,
455 static struct pxa2xx_spi_chip spitz_lcdcon_chip
= {
456 .gpio_cs
= SPITZ_GPIO_LCDCON_CS
,
459 static struct pxa2xx_spi_chip spitz_max1111_chip
= {
460 .gpio_cs
= SPITZ_GPIO_MAX1111_CS
,
463 static struct spi_board_info spitz_spi_devices
[] = {
465 .modalias
= "ads7846",
466 .max_speed_hz
= 1200000,
469 .platform_data
= &spitz_ads7846_info
,
470 .controller_data
= &spitz_ads7846_chip
,
471 .irq
= gpio_to_irq(SPITZ_GPIO_TP_INT
),
473 .modalias
= "corgi-lcd",
474 .max_speed_hz
= 50000,
477 .platform_data
= &spitz_lcdcon_info
,
478 .controller_data
= &spitz_lcdcon_chip
,
480 .modalias
= "max1111",
481 .max_speed_hz
= 450000,
484 .controller_data
= &spitz_max1111_chip
,
488 static void __init
spitz_init_spi(void)
490 if (machine_is_akita()) {
491 spitz_lcdcon_info
.gpio_backlight_cont
= AKITA_GPIO_BACKLIGHT_CONT
;
492 spitz_lcdcon_info
.gpio_backlight_on
= AKITA_GPIO_BACKLIGHT_ON
;
495 pxa2xx_set_spi_info(2, &spitz_spi_info
);
496 spi_register_board_info(ARRAY_AND_SIZE(spitz_spi_devices
));
499 static inline void spitz_init_spi(void) {}
505 * The card detect interrupt isn't debounced so we delay it by 250ms
506 * to give the card a chance to fully insert/eject.
508 static void spitz_mci_setpower(struct device
*dev
, unsigned int vdd
)
510 struct pxamci_platform_data
* p_d
= dev
->platform_data
;
512 if (( 1 << vdd
) & p_d
->ocr_mask
)
513 spitz_card_pwr_ctrl(SPITZ_PWR_SD
, 0x0004);
515 spitz_card_pwr_ctrl(SPITZ_PWR_SD
, 0x0000);
518 static struct pxamci_platform_data spitz_mci_platform_data
= {
519 .ocr_mask
= MMC_VDD_32_33
|MMC_VDD_33_34
,
520 .setpower
= spitz_mci_setpower
,
521 .gpio_card_detect
= SPITZ_GPIO_nSD_DETECT
,
522 .gpio_card_ro
= SPITZ_GPIO_nSD_WP
,
530 static int spitz_ohci_init(struct device
*dev
)
534 err
= gpio_request(SPITZ_GPIO_USB_HOST
, "USB_HOST");
538 /* Only Port 2 is connected
539 * Setup USB Port 2 Output Control Register
541 UP2OCR
= UP2OCR_HXS
| UP2OCR_HXOE
| UP2OCR_DPPDE
| UP2OCR_DMPDE
;
543 return gpio_direction_output(SPITZ_GPIO_USB_HOST
, 1);
546 static void spitz_ohci_exit(struct device
*dev
)
548 gpio_free(SPITZ_GPIO_USB_HOST
);
551 static struct pxaohci_platform_data spitz_ohci_platform_data
= {
552 .port_mode
= PMM_NPS_MODE
,
553 .init
= spitz_ohci_init
,
554 .exit
= spitz_ohci_exit
,
555 .flags
= ENABLE_PORT_ALL
| NO_OC_PROTECTION
,
564 static struct pxaficp_platform_data spitz_ficp_platform_data
= {
565 /* .gpio_pwdown is set in spitz_init() and akita_init() accordingly */
566 .transceiver_cap
= IR_SIRMODE
| IR_OFF
,
571 * Spitz PXA Framebuffer
574 static struct pxafb_mode_info spitz_pxafb_modes
[] = {
602 static struct pxafb_mach_info spitz_pxafb_info
= {
603 .modes
= &spitz_pxafb_modes
[0],
606 .lcd_conn
= LCD_COLOR_TFT_16BPP
| LCD_ALTERNATE_MAPPING
,
609 static struct mtd_partition sharpsl_nand_partitions
[] = {
611 .name
= "System Area",
613 .size
= 7 * 1024 * 1024,
616 .name
= "Root Filesystem",
617 .offset
= 7 * 1024 * 1024,
620 .name
= "Home Filesystem",
621 .offset
= MTDPART_OFS_APPEND
,
622 .size
= MTDPART_SIZ_FULL
,
626 static uint8_t scan_ff_pattern
[] = { 0xff, 0xff };
628 static struct nand_bbt_descr sharpsl_bbt
= {
632 .pattern
= scan_ff_pattern
635 static struct sharpsl_nand_platform_data sharpsl_nand_platform_data
= {
636 .badblock_pattern
= &sharpsl_bbt
,
637 .partitions
= sharpsl_nand_partitions
,
638 .nr_partitions
= ARRAY_SIZE(sharpsl_nand_partitions
),
641 static struct resource sharpsl_nand_resources
[] = {
645 .flags
= IORESOURCE_MEM
,
649 static struct platform_device sharpsl_nand_device
= {
650 .name
= "sharpsl-nand",
652 .resource
= sharpsl_nand_resources
,
653 .num_resources
= ARRAY_SIZE(sharpsl_nand_resources
),
654 .dev
.platform_data
= &sharpsl_nand_platform_data
,
658 static struct mtd_partition sharpsl_rom_parts
[] = {
660 .name
="Boot PROM Filesystem",
661 .offset
= 0x00140000,
662 .size
= MTDPART_SIZ_FULL
,
666 static struct physmap_flash_data sharpsl_rom_data
= {
668 .nr_parts
= ARRAY_SIZE(sharpsl_rom_parts
),
669 .parts
= sharpsl_rom_parts
,
672 static struct resource sharpsl_rom_resources
[] = {
676 .flags
= IORESOURCE_MEM
,
680 static struct platform_device sharpsl_rom_device
= {
681 .name
= "physmap-flash",
683 .resource
= sharpsl_rom_resources
,
684 .num_resources
= ARRAY_SIZE(sharpsl_rom_resources
),
685 .dev
.platform_data
= &sharpsl_rom_data
,
688 static struct platform_device
*devices
[] __initdata
= {
692 &sharpsl_nand_device
,
696 static void spitz_poweroff(void)
698 arm_machine_restart('g', NULL
);
701 static void spitz_restart(char mode
, const char *cmd
)
703 /* Bootloader magic for a reboot */
704 if((MSC0
& 0xffff0000) == 0x7ff00000)
705 MSC0
= (MSC0
& 0xffff) | 0x7ee00000;
710 static void __init
common_init(void)
712 init_gpio_reset(SPITZ_GPIO_ON_RESET
, 1, 0);
713 pm_power_off
= spitz_poweroff
;
714 arm_pm_restart
= spitz_restart
;
716 if (machine_is_spitz()) {
717 sharpsl_nand_partitions
[1].size
= 5 * 1024 * 1024;
718 } else if (machine_is_akita()) {
719 sharpsl_nand_partitions
[1].size
= 58 * 1024 * 1024;
720 } else if (machine_is_borzoi()) {
721 sharpsl_nand_partitions
[1].size
= 32 * 1024 * 1024;
726 /* Stop 3.6MHz and drive HIGH to PCMCIA and CS */
729 pxa2xx_mfp_config(ARRAY_AND_SIZE(spitz_pin_config
));
733 platform_add_devices(devices
, ARRAY_SIZE(devices
));
734 spitz_mci_platform_data
.detect_delay
= msecs_to_jiffies(250);
735 pxa_set_mci_info(&spitz_mci_platform_data
);
736 pxa_set_ohci_info(&spitz_ohci_platform_data
);
737 pxa_set_ficp_info(&spitz_ficp_platform_data
);
738 set_pxa_fb_info(&spitz_pxafb_info
);
739 pxa_set_i2c_info(NULL
);
742 #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI)
743 static void __init
spitz_init(void)
745 spitz_ficp_platform_data
.gpio_pwdown
= SPITZ_GPIO_IR_ON
;
747 platform_scoop_config
= &spitz_pcmcia_config
;
751 platform_device_register(&spitzscoop2_device
);
755 #ifdef CONFIG_MACH_AKITA
759 static struct pca953x_platform_data akita_ioexp
= {
760 .gpio_base
= AKITA_IOEXP_GPIO_BASE
,
763 static struct i2c_board_info akita_i2c_board_info
[] = {
767 .platform_data
= &akita_ioexp
,
771 static struct nand_bbt_descr sharpsl_akita_bbt
= {
775 .pattern
= scan_ff_pattern
778 static struct nand_ecclayout akita_oobinfo
= {
781 0x5, 0x1, 0x2, 0x3, 0x6, 0x7, 0x15, 0x11,
782 0x12, 0x13, 0x16, 0x17, 0x25, 0x21, 0x22, 0x23,
783 0x26, 0x27, 0x35, 0x31, 0x32, 0x33, 0x36, 0x37},
784 .oobfree
= {{0x08, 0x09}}
787 static void __init
akita_init(void)
789 spitz_ficp_platform_data
.gpio_pwdown
= AKITA_GPIO_IR_ON
;
791 sharpsl_nand_platform_data
.badblock_pattern
= &sharpsl_akita_bbt
;
792 sharpsl_nand_platform_data
.ecc_layout
= &akita_oobinfo
;
794 /* We just pretend the second element of the array doesn't exist */
795 spitz_pcmcia_config
.num_devs
= 1;
796 platform_scoop_config
= &spitz_pcmcia_config
;
798 i2c_register_board_info(0, ARRAY_AND_SIZE(akita_i2c_board_info
));
804 static void __init
fixup_spitz(struct machine_desc
*desc
,
805 struct tag
*tags
, char **cmdline
, struct meminfo
*mi
)
807 sharpsl_save_param();
809 mi
->bank
[0].start
= 0xa0000000;
810 mi
->bank
[0].node
= 0;
811 mi
->bank
[0].size
= (64*1024*1024);
814 #ifdef CONFIG_MACH_SPITZ
815 MACHINE_START(SPITZ
, "SHARP Spitz")
816 .phys_io
= 0x40000000,
817 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
818 .fixup
= fixup_spitz
,
819 .map_io
= pxa_map_io
,
820 .init_irq
= pxa27x_init_irq
,
821 .init_machine
= spitz_init
,
826 #ifdef CONFIG_MACH_BORZOI
827 MACHINE_START(BORZOI
, "SHARP Borzoi")
828 .phys_io
= 0x40000000,
829 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
830 .fixup
= fixup_spitz
,
831 .map_io
= pxa_map_io
,
832 .init_irq
= pxa27x_init_irq
,
833 .init_machine
= spitz_init
,
838 #ifdef CONFIG_MACH_AKITA
839 MACHINE_START(AKITA
, "SHARP Akita")
840 .phys_io
= 0x40000000,
841 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
842 .fixup
= fixup_spitz
,
843 .map_io
= pxa_map_io
,
844 .init_irq
= pxa27x_init_irq
,
845 .init_machine
= akita_init
,