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 GPIO16_GPIO
, /* SPITZ_GPIO_SYNC */
90 GPIO81_GPIO
, /* SPITZ_GPIO_nSD_WP */
91 GPIO41_GPIO
, /* SPITZ_GPIO_USB_CONNECT */
92 GPIO37_GPIO
, /* SPITZ_GPIO_USB_HOST */
93 GPIO35_GPIO
, /* SPITZ_GPIO_USB_DEVICE */
94 GPIO22_GPIO
, /* SPITZ_GPIO_HSYNC */
95 GPIO94_GPIO
, /* SPITZ_GPIO_CF_CD */
96 GPIO105_GPIO
, /* SPITZ_GPIO_CF_IRQ */
97 GPIO106_GPIO
, /* SPITZ_GPIO_CF2_IRQ */
99 /* GPIO matrix keypad */
100 GPIO88_GPIO
, /* column 0 */
101 GPIO23_GPIO
, /* column 1 */
102 GPIO24_GPIO
, /* column 2 */
103 GPIO25_GPIO
, /* column 3 */
104 GPIO26_GPIO
, /* column 4 */
105 GPIO27_GPIO
, /* column 5 */
106 GPIO52_GPIO
, /* column 6 */
107 GPIO103_GPIO
, /* column 7 */
108 GPIO107_GPIO
, /* column 8 */
109 GPIO108_GPIO
, /* column 9 */
110 GPIO114_GPIO
, /* column 10 */
111 GPIO12_GPIO
, /* row 0 */
112 GPIO17_GPIO
, /* row 1 */
113 GPIO91_GPIO
, /* row 2 */
114 GPIO34_GPIO
, /* row 3 */
115 GPIO36_GPIO
, /* row 4 */
116 GPIO38_GPIO
, /* row 5 */
117 GPIO39_GPIO
, /* row 6 */
123 GPIO0_GPIO
| WAKEUP_ON_EDGE_RISE
, /* SPITZ_GPIO_KEY_INT */
124 GPIO1_GPIO
| WAKEUP_ON_EDGE_FALL
, /* SPITZ_GPIO_RESET */
128 * Spitz SCOOP Device #1
130 static struct resource spitz_scoop_resources
[] = {
134 .flags
= IORESOURCE_MEM
,
138 static struct scoop_config spitz_scoop_setup
= {
139 .io_dir
= SPITZ_SCP_IO_DIR
,
140 .io_out
= SPITZ_SCP_IO_OUT
,
141 .suspend_clr
= SPITZ_SCP_SUS_CLR
,
142 .suspend_set
= SPITZ_SCP_SUS_SET
,
143 .gpio_base
= SPITZ_SCP_GPIO_BASE
,
146 struct platform_device spitzscoop_device
= {
147 .name
= "sharp-scoop",
150 .platform_data
= &spitz_scoop_setup
,
152 .num_resources
= ARRAY_SIZE(spitz_scoop_resources
),
153 .resource
= spitz_scoop_resources
,
157 * Spitz SCOOP Device #2
159 static struct resource spitz_scoop2_resources
[] = {
163 .flags
= IORESOURCE_MEM
,
167 static struct scoop_config spitz_scoop2_setup
= {
168 .io_dir
= SPITZ_SCP2_IO_DIR
,
169 .io_out
= SPITZ_SCP2_IO_OUT
,
170 .suspend_clr
= SPITZ_SCP2_SUS_CLR
,
171 .suspend_set
= SPITZ_SCP2_SUS_SET
,
172 .gpio_base
= SPITZ_SCP2_GPIO_BASE
,
175 struct platform_device spitzscoop2_device
= {
176 .name
= "sharp-scoop",
179 .platform_data
= &spitz_scoop2_setup
,
181 .num_resources
= ARRAY_SIZE(spitz_scoop2_resources
),
182 .resource
= spitz_scoop2_resources
,
185 #define SPITZ_PWR_SD 0x01
186 #define SPITZ_PWR_CF 0x02
188 /* Power control is shared with between one of the CF slots and SD */
189 static void spitz_card_pwr_ctrl(int device
, unsigned short new_cpr
)
191 unsigned short cpr
= read_scoop_reg(&spitzscoop_device
.dev
, SCOOP_CPR
);
193 if (new_cpr
& 0x0007) {
194 gpio_set_value(SPITZ_GPIO_CF_POWER
, 1);
195 if (!(cpr
& 0x0002) && !(cpr
& 0x0004))
197 if (device
== SPITZ_PWR_CF
)
199 if (device
== SPITZ_PWR_SD
)
201 write_scoop_reg(&spitzscoop_device
.dev
, SCOOP_CPR
, cpr
| new_cpr
);
203 if (device
== SPITZ_PWR_CF
)
205 if (device
== SPITZ_PWR_SD
)
207 if (!(cpr
& 0x0002) && !(cpr
& 0x0004)) {
208 write_scoop_reg(&spitzscoop_device
.dev
, SCOOP_CPR
, 0x0000);
210 gpio_set_value(SPITZ_GPIO_CF_POWER
, 0);
212 write_scoop_reg(&spitzscoop_device
.dev
, SCOOP_CPR
, cpr
| new_cpr
);
217 static void spitz_pcmcia_pwr(struct device
*scoop
, unsigned short cpr
, int nr
)
219 /* Only need to override behaviour for slot 0 */
221 spitz_card_pwr_ctrl(SPITZ_PWR_CF
, cpr
);
223 write_scoop_reg(scoop
, SCOOP_CPR
, cpr
);
226 static struct scoop_pcmcia_dev spitz_pcmcia_scoop
[] = {
228 .dev
= &spitzscoop_device
.dev
,
229 .irq
= SPITZ_IRQ_GPIO_CF_IRQ
,
230 .cd_irq
= SPITZ_IRQ_GPIO_CF_CD
,
231 .cd_irq_str
= "PCMCIA0 CD",
233 .dev
= &spitzscoop2_device
.dev
,
234 .irq
= SPITZ_IRQ_GPIO_CF2_IRQ
,
239 static struct scoop_pcmcia_config spitz_pcmcia_config
= {
240 .devs
= &spitz_pcmcia_scoop
[0],
242 .power_ctrl
= spitz_pcmcia_pwr
,
245 EXPORT_SYMBOL(spitzscoop_device
);
246 EXPORT_SYMBOL(spitzscoop2_device
);
249 * Spitz Keyboard Device
251 #define SPITZ_KEY_CALENDAR KEY_F1
252 #define SPITZ_KEY_ADDRESS KEY_F2
253 #define SPITZ_KEY_FN KEY_F3
254 #define SPITZ_KEY_CANCEL KEY_F4
255 #define SPITZ_KEY_EXOK KEY_F5
256 #define SPITZ_KEY_EXCANCEL KEY_F6
257 #define SPITZ_KEY_EXJOGDOWN KEY_F7
258 #define SPITZ_KEY_EXJOGUP KEY_F8
259 #define SPITZ_KEY_JAP1 KEY_LEFTALT
260 #define SPITZ_KEY_JAP2 KEY_RIGHTCTRL
261 #define SPITZ_KEY_SYNC KEY_F9
262 #define SPITZ_KEY_MAIL KEY_F10
263 #define SPITZ_KEY_OK KEY_F11
264 #define SPITZ_KEY_MENU KEY_F12
266 static const uint32_t spitzkbd_keymap
[] = {
267 KEY(0, 0, KEY_LEFTCTRL
),
275 KEY(0, 8, KEY_BACKSPACE
),
276 KEY(0, 9, SPITZ_KEY_EXOK
), /* EXOK */
277 KEY(0, 10, SPITZ_KEY_EXCANCEL
), /* EXCANCEL */
286 KEY(1, 9, SPITZ_KEY_EXJOGDOWN
), /* EXJOGDOWN */
287 KEY(1, 10, SPITZ_KEY_EXJOGUP
), /* EXJOGUP */
296 KEY(3, 0, SPITZ_KEY_ADDRESS
), /* ADDRESS */
304 KEY(3, 9, KEY_RIGHTSHIFT
),
305 KEY(4, 0, SPITZ_KEY_CALENDAR
), /* CALENDAR */
312 KEY(4, 8, KEY_ENTER
),
313 KEY(4, 9, KEY_LEFTSHIFT
),
314 KEY(5, 0, SPITZ_KEY_MAIL
), /* MAIL */
317 KEY(5, 3, KEY_MINUS
),
318 KEY(5, 4, KEY_SPACE
),
319 KEY(5, 5, KEY_COMMA
),
321 KEY(5, 10, SPITZ_KEY_FN
), /* FN */
322 KEY(6, 0, KEY_SYSRQ
),
323 KEY(6, 1, SPITZ_KEY_JAP1
), /* JAP1 */
324 KEY(6, 2, SPITZ_KEY_JAP2
), /* JAP2 */
325 KEY(6, 3, SPITZ_KEY_CANCEL
), /* CANCEL */
326 KEY(6, 4, SPITZ_KEY_OK
), /* OK */
327 KEY(6, 5, SPITZ_KEY_MENU
), /* MENU */
330 KEY(6, 8, KEY_RIGHT
),
333 static const struct matrix_keymap_data spitzkbd_keymap_data
= {
334 .keymap
= spitzkbd_keymap
,
335 .keymap_size
= ARRAY_SIZE(spitzkbd_keymap
),
338 static const uint32_t spitzkbd_row_gpios
[] =
339 { 12, 17, 91, 34, 36, 38, 39 };
340 static const uint32_t spitzkbd_col_gpios
[] =
341 { 88, 23, 24, 25, 26, 27, 52, 103, 107, 108, 114 };
343 static struct matrix_keypad_platform_data spitzkbd_pdata
= {
344 .keymap_data
= &spitzkbd_keymap_data
,
345 .row_gpios
= spitzkbd_row_gpios
,
346 .col_gpios
= spitzkbd_col_gpios
,
347 .num_row_gpios
= ARRAY_SIZE(spitzkbd_row_gpios
),
348 .num_col_gpios
= ARRAY_SIZE(spitzkbd_col_gpios
),
349 .col_scan_delay_us
= 10,
354 static struct platform_device spitzkbd_device
= {
355 .name
= "matrix-keypad",
358 .platform_data
= &spitzkbd_pdata
,
363 static struct gpio_keys_button spitz_gpio_keys
[] = {
367 .gpio
= SPITZ_GPIO_ON_KEY
,
371 /* Two buttons detecting the lid state */
375 .gpio
= SPITZ_GPIO_SWA
,
376 .desc
= "Display Down",
381 .gpio
= SPITZ_GPIO_SWB
,
382 .desc
= "Lid Closed",
386 static struct gpio_keys_platform_data spitz_gpio_keys_platform_data
= {
387 .buttons
= spitz_gpio_keys
,
388 .nbuttons
= ARRAY_SIZE(spitz_gpio_keys
),
391 static struct platform_device spitz_gpio_keys_device
= {
395 .platform_data
= &spitz_gpio_keys_platform_data
,
403 static struct gpio_led spitz_gpio_leds
[] = {
405 .name
= "spitz:amber:charge",
406 .default_trigger
= "sharpsl-charge",
407 .gpio
= SPITZ_GPIO_LED_ORANGE
,
410 .name
= "spitz:green:hddactivity",
411 .default_trigger
= "ide-disk",
412 .gpio
= SPITZ_GPIO_LED_GREEN
,
416 static struct gpio_led_platform_data spitz_gpio_leds_info
= {
417 .leds
= spitz_gpio_leds
,
418 .num_leds
= ARRAY_SIZE(spitz_gpio_leds
),
421 static struct platform_device spitzled_device
= {
425 .platform_data
= &spitz_gpio_leds_info
,
429 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
430 static struct pxa2xx_spi_master spitz_spi_info
= {
434 static void spitz_wait_for_hsync(void)
436 while (gpio_get_value(SPITZ_GPIO_HSYNC
))
439 while (!gpio_get_value(SPITZ_GPIO_HSYNC
))
443 static struct ads7846_platform_data spitz_ads7846_info
= {
445 .vref_delay_usecs
= 100,
448 .pressure_max
= 1024,
449 .gpio_pendown
= SPITZ_GPIO_TP_INT
,
450 .wait_for_sync
= spitz_wait_for_hsync
,
453 static struct pxa2xx_spi_chip spitz_ads7846_chip
= {
454 .gpio_cs
= SPITZ_GPIO_ADS7846_CS
,
457 static void spitz_bl_kick_battery(void)
459 void (*kick_batt
)(void);
461 kick_batt
= symbol_get(sharpsl_battery_kick
);
464 symbol_put(sharpsl_battery_kick
);
468 static struct corgi_lcd_platform_data spitz_lcdcon_info
= {
469 .init_mode
= CORGI_LCD_MODE_VGA
,
470 .max_intensity
= 0x2f,
471 .default_intensity
= 0x1f,
473 .gpio_backlight_cont
= SPITZ_GPIO_BACKLIGHT_CONT
,
474 .gpio_backlight_on
= SPITZ_GPIO_BACKLIGHT_ON
,
475 .kick_battery
= spitz_bl_kick_battery
,
478 static struct pxa2xx_spi_chip spitz_lcdcon_chip
= {
479 .gpio_cs
= SPITZ_GPIO_LCDCON_CS
,
482 static struct pxa2xx_spi_chip spitz_max1111_chip
= {
483 .gpio_cs
= SPITZ_GPIO_MAX1111_CS
,
486 static struct spi_board_info spitz_spi_devices
[] = {
488 .modalias
= "ads7846",
489 .max_speed_hz
= 1200000,
492 .platform_data
= &spitz_ads7846_info
,
493 .controller_data
= &spitz_ads7846_chip
,
494 .irq
= gpio_to_irq(SPITZ_GPIO_TP_INT
),
496 .modalias
= "corgi-lcd",
497 .max_speed_hz
= 50000,
500 .platform_data
= &spitz_lcdcon_info
,
501 .controller_data
= &spitz_lcdcon_chip
,
503 .modalias
= "max1111",
504 .max_speed_hz
= 450000,
507 .controller_data
= &spitz_max1111_chip
,
511 static void __init
spitz_init_spi(void)
513 if (machine_is_akita()) {
514 spitz_lcdcon_info
.gpio_backlight_cont
= AKITA_GPIO_BACKLIGHT_CONT
;
515 spitz_lcdcon_info
.gpio_backlight_on
= AKITA_GPIO_BACKLIGHT_ON
;
518 pxa2xx_set_spi_info(2, &spitz_spi_info
);
519 spi_register_board_info(ARRAY_AND_SIZE(spitz_spi_devices
));
522 static inline void spitz_init_spi(void) {}
528 * The card detect interrupt isn't debounced so we delay it by 250ms
529 * to give the card a chance to fully insert/eject.
531 static void spitz_mci_setpower(struct device
*dev
, unsigned int vdd
)
533 struct pxamci_platform_data
* p_d
= dev
->platform_data
;
535 if (( 1 << vdd
) & p_d
->ocr_mask
)
536 spitz_card_pwr_ctrl(SPITZ_PWR_SD
, 0x0004);
538 spitz_card_pwr_ctrl(SPITZ_PWR_SD
, 0x0000);
541 static struct pxamci_platform_data spitz_mci_platform_data
= {
542 .detect_delay_ms
= 250,
543 .ocr_mask
= MMC_VDD_32_33
|MMC_VDD_33_34
,
544 .setpower
= spitz_mci_setpower
,
545 .gpio_card_detect
= SPITZ_GPIO_nSD_DETECT
,
546 .gpio_card_ro
= SPITZ_GPIO_nSD_WP
,
554 static int spitz_ohci_init(struct device
*dev
)
558 err
= gpio_request(SPITZ_GPIO_USB_HOST
, "USB_HOST");
562 /* Only Port 2 is connected
563 * Setup USB Port 2 Output Control Register
565 UP2OCR
= UP2OCR_HXS
| UP2OCR_HXOE
| UP2OCR_DPPDE
| UP2OCR_DMPDE
;
567 return gpio_direction_output(SPITZ_GPIO_USB_HOST
, 1);
570 static void spitz_ohci_exit(struct device
*dev
)
572 gpio_free(SPITZ_GPIO_USB_HOST
);
575 static struct pxaohci_platform_data spitz_ohci_platform_data
= {
576 .port_mode
= PMM_NPS_MODE
,
577 .init
= spitz_ohci_init
,
578 .exit
= spitz_ohci_exit
,
579 .flags
= ENABLE_PORT_ALL
| NO_OC_PROTECTION
,
588 static struct pxaficp_platform_data spitz_ficp_platform_data
= {
589 /* .gpio_pwdown is set in spitz_init() and akita_init() accordingly */
590 .transceiver_cap
= IR_SIRMODE
| IR_OFF
,
595 * Spitz PXA Framebuffer
598 static struct pxafb_mode_info spitz_pxafb_modes
[] = {
626 static struct pxafb_mach_info spitz_pxafb_info
= {
627 .modes
= &spitz_pxafb_modes
[0],
630 .lcd_conn
= LCD_COLOR_TFT_16BPP
| LCD_ALTERNATE_MAPPING
,
633 static struct mtd_partition sharpsl_nand_partitions
[] = {
635 .name
= "System Area",
637 .size
= 7 * 1024 * 1024,
640 .name
= "Root Filesystem",
641 .offset
= 7 * 1024 * 1024,
644 .name
= "Home Filesystem",
645 .offset
= MTDPART_OFS_APPEND
,
646 .size
= MTDPART_SIZ_FULL
,
650 static uint8_t scan_ff_pattern
[] = { 0xff, 0xff };
652 static struct nand_bbt_descr sharpsl_bbt
= {
656 .pattern
= scan_ff_pattern
659 static struct sharpsl_nand_platform_data sharpsl_nand_platform_data
= {
660 .badblock_pattern
= &sharpsl_bbt
,
661 .partitions
= sharpsl_nand_partitions
,
662 .nr_partitions
= ARRAY_SIZE(sharpsl_nand_partitions
),
665 static struct resource sharpsl_nand_resources
[] = {
669 .flags
= IORESOURCE_MEM
,
673 static struct platform_device sharpsl_nand_device
= {
674 .name
= "sharpsl-nand",
676 .resource
= sharpsl_nand_resources
,
677 .num_resources
= ARRAY_SIZE(sharpsl_nand_resources
),
678 .dev
.platform_data
= &sharpsl_nand_platform_data
,
682 static struct mtd_partition sharpsl_rom_parts
[] = {
684 .name
="Boot PROM Filesystem",
685 .offset
= 0x00140000,
686 .size
= MTDPART_SIZ_FULL
,
690 static struct physmap_flash_data sharpsl_rom_data
= {
692 .nr_parts
= ARRAY_SIZE(sharpsl_rom_parts
),
693 .parts
= sharpsl_rom_parts
,
696 static struct resource sharpsl_rom_resources
[] = {
700 .flags
= IORESOURCE_MEM
,
704 static struct platform_device sharpsl_rom_device
= {
705 .name
= "physmap-flash",
707 .resource
= sharpsl_rom_resources
,
708 .num_resources
= ARRAY_SIZE(sharpsl_rom_resources
),
709 .dev
.platform_data
= &sharpsl_rom_data
,
712 static struct platform_device
*devices
[] __initdata
= {
715 &spitz_gpio_keys_device
,
717 &sharpsl_nand_device
,
721 static void spitz_poweroff(void)
723 arm_machine_restart('g', NULL
);
726 static void spitz_restart(char mode
, const char *cmd
)
728 /* Bootloader magic for a reboot */
729 if((MSC0
& 0xffff0000) == 0x7ff00000)
730 MSC0
= (MSC0
& 0xffff) | 0x7ee00000;
735 static void __init
common_init(void)
737 init_gpio_reset(SPITZ_GPIO_ON_RESET
, 1, 0);
738 pm_power_off
= spitz_poweroff
;
739 arm_pm_restart
= spitz_restart
;
741 if (machine_is_spitz()) {
742 sharpsl_nand_partitions
[1].size
= 5 * 1024 * 1024;
743 } else if (machine_is_akita()) {
744 sharpsl_nand_partitions
[1].size
= 58 * 1024 * 1024;
745 } else if (machine_is_borzoi()) {
746 sharpsl_nand_partitions
[1].size
= 32 * 1024 * 1024;
751 /* Stop 3.6MHz and drive HIGH to PCMCIA and CS */
754 pxa2xx_mfp_config(ARRAY_AND_SIZE(spitz_pin_config
));
756 pxa_set_ffuart_info(NULL
);
757 pxa_set_btuart_info(NULL
);
758 pxa_set_stuart_info(NULL
);
762 platform_add_devices(devices
, ARRAY_SIZE(devices
));
763 pxa_set_mci_info(&spitz_mci_platform_data
);
764 pxa_set_ohci_info(&spitz_ohci_platform_data
);
765 pxa_set_ficp_info(&spitz_ficp_platform_data
);
766 set_pxa_fb_info(&spitz_pxafb_info
);
767 pxa_set_i2c_info(NULL
);
770 #if defined(CONFIG_MACH_AKITA) || defined(CONFIG_MACH_BORZOI)
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}}
788 #if defined(CONFIG_MACH_SPITZ) || defined(CONFIG_MACH_BORZOI)
789 static void __init
spitz_init(void)
791 spitz_ficp_platform_data
.gpio_pwdown
= SPITZ_GPIO_IR_ON
;
793 #ifdef CONFIG_MACH_BORZOI
794 if (machine_is_borzoi()) {
795 sharpsl_nand_platform_data
.badblock_pattern
= &sharpsl_akita_bbt
;
796 sharpsl_nand_platform_data
.ecc_layout
= &akita_oobinfo
;
800 platform_scoop_config
= &spitz_pcmcia_config
;
804 platform_device_register(&spitzscoop2_device
);
808 #ifdef CONFIG_MACH_AKITA
812 static struct pca953x_platform_data akita_ioexp
= {
813 .gpio_base
= AKITA_IOEXP_GPIO_BASE
,
816 static struct i2c_board_info akita_i2c_board_info
[] = {
820 .platform_data
= &akita_ioexp
,
827 static void __init
akita_init(void)
829 spitz_ficp_platform_data
.gpio_pwdown
= AKITA_GPIO_IR_ON
;
831 sharpsl_nand_platform_data
.badblock_pattern
= &sharpsl_akita_bbt
;
832 sharpsl_nand_platform_data
.ecc_layout
= &akita_oobinfo
;
834 /* We just pretend the second element of the array doesn't exist */
835 spitz_pcmcia_config
.num_devs
= 1;
836 platform_scoop_config
= &spitz_pcmcia_config
;
838 i2c_register_board_info(0, ARRAY_AND_SIZE(akita_i2c_board_info
));
844 static void __init
fixup_spitz(struct machine_desc
*desc
,
845 struct tag
*tags
, char **cmdline
, struct meminfo
*mi
)
847 sharpsl_save_param();
849 mi
->bank
[0].start
= 0xa0000000;
850 mi
->bank
[0].node
= 0;
851 mi
->bank
[0].size
= (64*1024*1024);
854 #ifdef CONFIG_MACH_SPITZ
855 MACHINE_START(SPITZ
, "SHARP Spitz")
856 .phys_io
= 0x40000000,
857 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
858 .fixup
= fixup_spitz
,
859 .map_io
= pxa_map_io
,
860 .init_irq
= pxa27x_init_irq
,
861 .init_machine
= spitz_init
,
866 #ifdef CONFIG_MACH_BORZOI
867 MACHINE_START(BORZOI
, "SHARP Borzoi")
868 .phys_io
= 0x40000000,
869 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
870 .fixup
= fixup_spitz
,
871 .map_io
= pxa_map_io
,
872 .init_irq
= pxa27x_init_irq
,
873 .init_machine
= spitz_init
,
878 #ifdef CONFIG_MACH_AKITA
879 MACHINE_START(AKITA
, "SHARP Akita")
880 .phys_io
= 0x40000000,
881 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
882 .fixup
= fixup_spitz
,
883 .map_io
= pxa_map_io
,
884 .init_irq
= pxa27x_init_irq
,
885 .init_machine
= akita_init
,