2 * Support for CompuLab EM-X270 platform
4 * Copyright (C) 2007, 2008 CompuLab, Ltd.
5 * Author: Mike Rapoport <mike@compulab.co.il>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 #include <linux/irq.h>
13 #include <linux/platform_device.h>
15 #include <linux/dm9000.h>
16 #include <linux/rtc-v3020.h>
17 #include <linux/mtd/nand.h>
18 #include <linux/mtd/partitions.h>
19 #include <linux/mtd/physmap.h>
20 #include <linux/input.h>
21 #include <linux/gpio_keys.h>
22 #include <linux/gpio.h>
23 #include <linux/mfd/da903x.h>
24 #include <linux/regulator/machine.h>
25 #include <linux/spi/spi.h>
26 #include <linux/spi/tdo24m.h>
27 #include <linux/power_supply.h>
28 #include <linux/apm-emulation.h>
30 #include <media/soc_camera.h>
32 #include <asm/mach-types.h>
33 #include <asm/mach/arch.h>
35 #include <mach/mfp-pxa27x.h>
36 #include <mach/pxa-regs.h>
37 #include <mach/pxa27x-udc.h>
38 #include <mach/audio.h>
39 #include <mach/pxafb.h>
40 #include <mach/ohci.h>
42 #include <mach/pxa27x_keypad.h>
44 #include <mach/camera.h>
45 #include <mach/pxa2xx_spi.h>
51 #define GPIO41_ETHIRQ (41)
52 #define GPIO13_MMC_CD (13)
53 #define EM_X270_ETHIRQ IRQ_GPIO(GPIO41_ETHIRQ)
55 /* NAND control GPIOs */
56 #define GPIO11_NAND_CS (11)
57 #define GPIO56_NAND_RB (56)
59 /* Miscelaneous GPIOs */
60 #define GPIO93_CAM_RESET (93)
61 #define GPIO95_MMC_WP (95)
63 static unsigned long em_x270_pin_config
[] = {
66 GPIO29_AC97_SDATA_IN_0
,
67 GPIO30_AC97_SDATA_OUT
,
131 GPIO100_KP_MKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
132 GPIO101_KP_MKIN_1
| WAKEUP_ON_LEVEL_HIGH
,
133 GPIO102_KP_MKIN_2
| WAKEUP_ON_LEVEL_HIGH
,
134 GPIO34_KP_MKIN_3
| WAKEUP_ON_LEVEL_HIGH
,
135 GPIO39_KP_MKIN_4
| WAKEUP_ON_LEVEL_HIGH
,
136 GPIO99_KP_MKIN_5
| WAKEUP_ON_LEVEL_HIGH
,
137 GPIO91_KP_MKIN_6
| WAKEUP_ON_LEVEL_HIGH
,
138 GPIO36_KP_MKIN_7
| WAKEUP_ON_LEVEL_HIGH
,
160 /* SDRAM and local bus */
169 GPIO1_GPIO
| WAKEUP_ON_EDGE_BOTH
, /* sleep/resume button */
170 GPIO95_GPIO
, /* MMC Write protect */
173 GPIO20_GPIO
| MFP_LPM_DRIVE_LOW
, /* GPRS_PWEN */
174 GPIO93_GPIO
| MFP_LPM_DRIVE_LOW
, /* Camera reset */
175 GPIO115_GPIO
| MFP_LPM_DRIVE_LOW
, /* WLAN_PWEN */
178 GPIO11_GPIO
| MFP_LPM_DRIVE_HIGH
, /* NAND CE# */
179 GPIO56_GPIO
, /* NAND Ready/Busy */
182 GPIO13_GPIO
, /* MMC card detect */
183 GPIO41_GPIO
, /* DM9000 interrupt */
186 #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE)
187 static struct resource em_x270_dm9000_resource
[] = {
189 .start
= PXA_CS2_PHYS
,
190 .end
= PXA_CS2_PHYS
+ 3,
191 .flags
= IORESOURCE_MEM
,
194 .start
= PXA_CS2_PHYS
+ 8,
195 .end
= PXA_CS2_PHYS
+ 8 + 0x3f,
196 .flags
= IORESOURCE_MEM
,
199 .start
= EM_X270_ETHIRQ
,
200 .end
= EM_X270_ETHIRQ
,
201 .flags
= IORESOURCE_IRQ
| IORESOURCE_IRQ_HIGHEDGE
,
205 static struct dm9000_plat_data em_x270_dm9000_platdata
= {
206 .flags
= DM9000_PLATF_32BITONLY
,
209 static struct platform_device em_x270_dm9000
= {
212 .num_resources
= ARRAY_SIZE(em_x270_dm9000_resource
),
213 .resource
= em_x270_dm9000_resource
,
215 .platform_data
= &em_x270_dm9000_platdata
,
219 static void __init
em_x270_init_dm9000(void)
221 platform_device_register(&em_x270_dm9000
);
224 static inline void em_x270_init_dm9000(void) {}
228 #if defined(CONFIG_RTC_DRV_V3020) || defined(CONFIG_RTC_DRV_V3020_MODULE)
229 static struct resource em_x270_v3020_resource
[] = {
231 .start
= PXA_CS4_PHYS
,
232 .end
= PXA_CS4_PHYS
+ 3,
233 .flags
= IORESOURCE_MEM
,
237 static struct v3020_platform_data em_x270_v3020_platdata
= {
241 static struct platform_device em_x270_rtc
= {
243 .num_resources
= ARRAY_SIZE(em_x270_v3020_resource
),
244 .resource
= em_x270_v3020_resource
,
247 .platform_data
= &em_x270_v3020_platdata
,
251 static void __init
em_x270_init_rtc(void)
253 platform_device_register(&em_x270_rtc
);
256 static inline void em_x270_init_rtc(void) {}
260 #if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
261 static inline void nand_cs_on(void)
263 gpio_set_value(GPIO11_NAND_CS
, 0);
266 static void nand_cs_off(void)
270 gpio_set_value(GPIO11_NAND_CS
, 1);
273 /* hardware specific access to control-lines */
274 static void em_x270_nand_cmd_ctl(struct mtd_info
*mtd
, int dat
,
277 struct nand_chip
*this = mtd
->priv
;
278 unsigned long nandaddr
= (unsigned long)this->IO_ADDR_W
;
282 if (ctrl
& NAND_CTRL_CHANGE
) {
284 nandaddr
|= (1 << 3);
286 nandaddr
&= ~(1 << 3);
288 nandaddr
|= (1 << 2);
290 nandaddr
&= ~(1 << 2);
298 this->IO_ADDR_W
= (void __iomem
*)nandaddr
;
299 if (dat
!= NAND_CMD_NONE
)
300 writel(dat
, this->IO_ADDR_W
);
305 /* read device ready pin */
306 static int em_x270_nand_device_ready(struct mtd_info
*mtd
)
310 return gpio_get_value(GPIO56_NAND_RB
);
313 static struct mtd_partition em_x270_partition_info
[] = {
321 .offset
= MTDPART_OFS_APPEND
,
322 .size
= MTDPART_SIZ_FULL
326 static const char *em_x270_part_probes
[] = { "cmdlinepart", NULL
};
328 struct platform_nand_data em_x270_nand_platdata
= {
332 .nr_partitions
= ARRAY_SIZE(em_x270_partition_info
),
333 .partitions
= em_x270_partition_info
,
335 .part_probe_types
= em_x270_part_probes
,
339 .dev_ready
= em_x270_nand_device_ready
,
341 .cmd_ctrl
= em_x270_nand_cmd_ctl
,
345 static struct resource em_x270_nand_resource
[] = {
347 .start
= PXA_CS1_PHYS
,
348 .end
= PXA_CS1_PHYS
+ 12,
349 .flags
= IORESOURCE_MEM
,
353 static struct platform_device em_x270_nand
= {
355 .num_resources
= ARRAY_SIZE(em_x270_nand_resource
),
356 .resource
= em_x270_nand_resource
,
359 .platform_data
= &em_x270_nand_platdata
,
363 static void __init
em_x270_init_nand(void)
367 err
= gpio_request(GPIO11_NAND_CS
, "NAND CS");
369 pr_warning("EM-X270: failed to request NAND CS gpio\n");
373 gpio_direction_output(GPIO11_NAND_CS
, 1);
375 err
= gpio_request(GPIO56_NAND_RB
, "NAND R/B");
377 pr_warning("EM-X270: failed to request NAND R/B gpio\n");
378 gpio_free(GPIO11_NAND_CS
);
382 gpio_direction_input(GPIO56_NAND_RB
);
384 platform_device_register(&em_x270_nand
);
387 static inline void em_x270_init_nand(void) {}
390 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
391 static struct mtd_partition em_x270_nor_parts
[] = {
393 .name
= "Bootloader",
394 .offset
= 0x00000000,
396 .mask_flags
= MTD_WRITEABLE
/* force read-only */
398 .name
= "Environment",
399 .offset
= 0x00050000,
403 .offset
= 0x00060000,
405 .mask_flags
= MTD_WRITEABLE
/* force read-only */
407 .name
= "Splashscreen",
408 .offset
= 0x000b0000,
413 static struct physmap_flash_data em_x270_nor_data
[] = {
416 .parts
= em_x270_nor_parts
,
417 .nr_parts
= ARRAY_SIZE(em_x270_nor_parts
),
421 static struct resource em_x270_nor_flash_resource
= {
422 .start
= PXA_CS0_PHYS
,
423 .end
= PXA_CS0_PHYS
+ SZ_1M
- 1,
424 .flags
= IORESOURCE_MEM
,
427 static struct platform_device em_x270_physmap_flash
= {
428 .name
= "physmap-flash",
431 .resource
= &em_x270_nor_flash_resource
,
433 .platform_data
= &em_x270_nor_data
,
437 static void __init
em_x270_init_nor(void)
439 platform_device_register(&em_x270_physmap_flash
);
442 static inline void em_x270_init_nor(void) {}
445 /* PXA27x OHCI controller setup */
446 #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
447 static int em_x270_ohci_init(struct device
*dev
)
449 /* enable port 2 transiever */
450 UP2OCR
= UP2OCR_HXS
| UP2OCR_HXOE
;
455 static struct pxaohci_platform_data em_x270_ohci_platform_data
= {
456 .port_mode
= PMM_PERPORT_MODE
,
457 .flags
= ENABLE_PORT1
| ENABLE_PORT2
| POWER_CONTROL_LOW
,
458 .init
= em_x270_ohci_init
,
461 static void __init
em_x270_init_ohci(void)
463 pxa_set_ohci_info(&em_x270_ohci_platform_data
);
466 static inline void em_x270_init_ohci(void) {}
469 /* MCI controller setup */
470 #if defined(CONFIG_MMC) || defined(CONFIG_MMC_MODULE)
471 static struct regulator
*em_x270_sdio_ldo
;
473 static int em_x270_mci_init(struct device
*dev
,
474 irq_handler_t em_x270_detect_int
,
479 em_x270_sdio_ldo
= regulator_get(dev
, "vcc sdio");
480 if (IS_ERR(em_x270_sdio_ldo
)) {
481 dev_err(dev
, "can't request SDIO power supply: %ld\n",
482 PTR_ERR(em_x270_sdio_ldo
));
483 return PTR_ERR(em_x270_sdio_ldo
);
486 err
= request_irq(gpio_to_irq(GPIO13_MMC_CD
), em_x270_detect_int
,
487 IRQF_DISABLED
| IRQF_TRIGGER_RISING
|
488 IRQF_TRIGGER_FALLING
,
489 "MMC card detect", data
);
491 dev_err(dev
, "can't request MMC card detect IRQ: %d\n", err
);
495 err
= gpio_request(GPIO95_MMC_WP
, "MMC WP");
497 dev_err(dev
, "can't request MMC write protect: %d\n", err
);
501 gpio_direction_input(GPIO95_MMC_WP
);
506 free_irq(gpio_to_irq(GPIO13_MMC_CD
), data
);
508 regulator_put(em_x270_sdio_ldo
);
513 static void em_x270_mci_setpower(struct device
*dev
, unsigned int vdd
)
515 struct pxamci_platform_data
* p_d
= dev
->platform_data
;
517 if ((1 << vdd
) & p_d
->ocr_mask
) {
518 int vdd_uV
= (2000 + (vdd
- __ffs(MMC_VDD_20_21
)) * 100) * 1000;
520 regulator_set_voltage(em_x270_sdio_ldo
, vdd_uV
, vdd_uV
);
521 regulator_enable(em_x270_sdio_ldo
);
523 regulator_disable(em_x270_sdio_ldo
);
527 static void em_x270_mci_exit(struct device
*dev
, void *data
)
529 free_irq(gpio_to_irq(GPIO13_MMC_CD
), data
);
532 static int em_x270_mci_get_ro(struct device
*dev
)
534 return gpio_get_value(GPIO95_MMC_WP
);
537 static struct pxamci_platform_data em_x270_mci_platform_data
= {
538 .ocr_mask
= MMC_VDD_20_21
|MMC_VDD_21_22
|MMC_VDD_22_23
|
539 MMC_VDD_24_25
|MMC_VDD_25_26
|MMC_VDD_26_27
|
540 MMC_VDD_27_28
|MMC_VDD_28_29
|MMC_VDD_29_30
|
541 MMC_VDD_30_31
|MMC_VDD_31_32
,
542 .init
= em_x270_mci_init
,
543 .setpower
= em_x270_mci_setpower
,
544 .get_ro
= em_x270_mci_get_ro
,
545 .exit
= em_x270_mci_exit
,
548 static void __init
em_x270_init_mmc(void)
550 em_x270_mci_platform_data
.detect_delay
= msecs_to_jiffies(250);
551 pxa_set_mci_info(&em_x270_mci_platform_data
);
554 static inline void em_x270_init_mmc(void) {}
558 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
559 static struct pxafb_mode_info em_x270_lcd_modes
[] = {
588 static struct pxafb_mach_info em_x270_lcd
= {
589 .modes
= em_x270_lcd_modes
,
591 .lcd_conn
= LCD_COLOR_TFT_16BPP
,
594 static void __init
em_x270_init_lcd(void)
596 set_pxa_fb_info(&em_x270_lcd
);
599 static inline void em_x270_init_lcd(void) {}
602 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
603 static struct pxa2xx_spi_master em_x270_spi_info
= {
607 static struct pxa2xx_spi_chip em_x270_tdo24m_chip
= {
612 static struct tdo24m_platform_data em_x270_tdo24m_pdata
= {
616 static struct spi_board_info em_x270_spi_devices
[] __initdata
= {
618 .modalias
= "tdo24m",
619 .max_speed_hz
= 1000000,
622 .controller_data
= &em_x270_tdo24m_chip
,
623 .platform_data
= &em_x270_tdo24m_pdata
,
627 static void __init
em_x270_init_spi(void)
629 pxa2xx_set_spi_info(1, &em_x270_spi_info
);
630 spi_register_board_info(ARRAY_AND_SIZE(em_x270_spi_devices
));
633 static inline void em_x270_init_spi(void) {}
636 #if defined(CONFIG_SND_PXA2XX_AC97) || defined(CONFIG_SND_PXA2XX_AC97_MODULE)
637 static void __init
em_x270_init_ac97(void)
639 pxa_set_ac97_info(NULL
);
642 static inline void em_x270_init_ac97(void) {}
645 #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE)
646 static unsigned int em_x270_matrix_keys
[] = {
647 KEY(0, 0, KEY_A
), KEY(1, 0, KEY_UP
), KEY(2, 1, KEY_B
),
648 KEY(0, 2, KEY_LEFT
), KEY(1, 1, KEY_ENTER
), KEY(2, 0, KEY_RIGHT
),
649 KEY(0, 1, KEY_C
), KEY(1, 2, KEY_DOWN
), KEY(2, 2, KEY_D
),
652 struct pxa27x_keypad_platform_data em_x270_keypad_info
= {
653 /* code map for the matrix keys */
654 .matrix_key_rows
= 3,
655 .matrix_key_cols
= 3,
656 .matrix_key_map
= em_x270_matrix_keys
,
657 .matrix_key_map_size
= ARRAY_SIZE(em_x270_matrix_keys
),
660 static void __init
em_x270_init_keypad(void)
662 pxa_set_keypad_info(&em_x270_keypad_info
);
665 static inline void em_x270_init_keypad(void) {}
668 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
669 static struct gpio_keys_button gpio_keys_button
[] = {
671 .desc
= "sleep/wakeup",
679 static struct gpio_keys_platform_data em_x270_gpio_keys_data
= {
680 .buttons
= gpio_keys_button
,
684 static struct platform_device em_x270_gpio_keys
= {
688 .platform_data
= &em_x270_gpio_keys_data
,
692 static void __init
em_x270_init_gpio_keys(void)
694 platform_device_register(&em_x270_gpio_keys
);
697 static inline void em_x270_init_gpio_keys(void) {}
700 /* Quick Capture Interface and sensor setup */
701 #if defined(CONFIG_VIDEO_PXA27x) || defined(CONFIG_VIDEO_PXA27x_MODULE)
702 static struct regulator
*em_x270_camera_ldo
;
704 static int em_x270_sensor_init(struct device
*dev
)
708 ret
= gpio_request(GPIO93_CAM_RESET
, "camera reset");
712 gpio_direction_output(GPIO93_CAM_RESET
, 0);
714 em_x270_camera_ldo
= regulator_get(NULL
, "vcc cam");
715 if (em_x270_camera_ldo
== NULL
) {
716 gpio_free(GPIO93_CAM_RESET
);
720 ret
= regulator_enable(em_x270_camera_ldo
);
722 regulator_put(em_x270_camera_ldo
);
723 gpio_free(GPIO93_CAM_RESET
);
727 gpio_set_value(GPIO93_CAM_RESET
, 1);
732 struct pxacamera_platform_data em_x270_camera_platform_data
= {
733 .init
= em_x270_sensor_init
,
734 .flags
= PXA_CAMERA_MASTER
| PXA_CAMERA_DATAWIDTH_8
|
735 PXA_CAMERA_PCLK_EN
| PXA_CAMERA_MCLK_EN
,
739 static int em_x270_sensor_power(struct device
*dev
, int on
)
742 int is_on
= regulator_is_enabled(em_x270_camera_ldo
);
747 gpio_set_value(GPIO93_CAM_RESET
, !on
);
750 ret
= regulator_enable(em_x270_camera_ldo
);
752 ret
= regulator_disable(em_x270_camera_ldo
);
757 gpio_set_value(GPIO93_CAM_RESET
, on
);
762 static struct soc_camera_link iclink
= {
764 .power
= em_x270_sensor_power
,
767 static struct i2c_board_info em_x270_i2c_cam_info
[] = {
769 I2C_BOARD_INFO("mt9m111", 0x48),
770 .platform_data
= &iclink
,
774 static struct i2c_pxa_platform_data em_x270_i2c_info
= {
778 static void __init
em_x270_init_camera(void)
780 pxa_set_i2c_info(&em_x270_i2c_info
);
781 i2c_register_board_info(0, ARRAY_AND_SIZE(em_x270_i2c_cam_info
));
782 pxa_set_camera_info(&em_x270_camera_platform_data
);
785 static inline void em_x270_init_camera(void) {}
788 /* DA9030 related initializations */
789 #define REGULATOR_CONSUMER(_name, _dev, _supply) \
790 static struct regulator_consumer_supply _name##_consumers[] = { \
797 REGULATOR_CONSUMER(ldo3
, NULL
, "vcc gps");
798 REGULATOR_CONSUMER(ldo5
, NULL
, "vcc cam");
799 REGULATOR_CONSUMER(ldo10
, &pxa_device_mci
.dev
, "vcc sdio");
800 REGULATOR_CONSUMER(ldo12
, NULL
, "vcc usb");
801 REGULATOR_CONSUMER(ldo19
, NULL
, "vcc gprs");
803 #define REGULATOR_INIT(_ldo, _min_uV, _max_uV, _ops_mask) \
804 static struct regulator_init_data _ldo##_data = { \
811 .valid_ops_mask = _ops_mask, \
813 .num_consumer_supplies = ARRAY_SIZE(_ldo##_consumers), \
814 .consumer_supplies = _ldo##_consumers, \
817 REGULATOR_INIT(ldo3
, 3200000, 3200000, REGULATOR_CHANGE_STATUS
);
818 REGULATOR_INIT(ldo5
, 3000000, 3000000, REGULATOR_CHANGE_STATUS
);
819 REGULATOR_INIT(ldo10
, 2000000, 3200000,
820 REGULATOR_CHANGE_STATUS
| REGULATOR_CHANGE_VOLTAGE
);
821 REGULATOR_INIT(ldo12
, 3000000, 3000000, REGULATOR_CHANGE_STATUS
);
822 REGULATOR_INIT(ldo19
, 3200000, 3200000, REGULATOR_CHANGE_STATUS
);
824 struct led_info em_x270_led_info
= {
825 .name
= "em-x270:orange",
826 .default_trigger
= "battery-charging-or-full",
829 struct power_supply_info em_x270_psy_info
= {
830 .name
= "LP555597P6H-FPS",
831 .technology
= POWER_SUPPLY_TECHNOLOGY_LIPO
,
832 .voltage_max_design
= 4200000,
833 .voltage_min_design
= 3000000,
837 static void em_x270_battery_low(void)
839 apm_queue_event(APM_LOW_BATTERY
);
842 static void em_x270_battery_critical(void)
844 apm_queue_event(APM_CRITICAL_SUSPEND
);
847 struct da9030_battery_info em_x270_batterty_info
= {
848 .battery_info
= &em_x270_psy_info
,
850 .charge_milliamp
= 1000,
851 .charge_millivolt
= 4200,
855 .vbat_charge_start
= 4100,
856 .vbat_charge_stop
= 4200,
857 .vbat_charge_restart
= 4000,
866 .batmon_interval
= 0,
868 .battery_low
= em_x270_battery_low
,
869 .battery_critical
= em_x270_battery_critical
,
872 #define DA9030_SUBDEV(_name, _id, _pdata) \
874 .name = "da903x-" #_name, \
875 .id = DA9030_ID_##_id, \
876 .platform_data = _pdata, \
879 #define DA9030_LDO(num) DA9030_SUBDEV(regulator, LDO##num, &ldo##num##_data)
881 struct da903x_subdev_info em_x270_da9030_subdevs
[] = {
888 DA9030_SUBDEV(led
, LED_PC
, &em_x270_led_info
),
889 DA9030_SUBDEV(backlight
, WLED
, &em_x270_led_info
),
890 DA9030_SUBDEV(battery
, BAT
, &em_x270_batterty_info
),
893 static struct da903x_platform_data em_x270_da9030_info
= {
894 .num_subdevs
= ARRAY_SIZE(em_x270_da9030_subdevs
),
895 .subdevs
= em_x270_da9030_subdevs
,
898 static struct i2c_board_info em_x270_i2c_pmic_info
= {
899 I2C_BOARD_INFO("da9030", 0x49),
901 .platform_data
= &em_x270_da9030_info
,
904 static struct i2c_pxa_platform_data em_x270_pwr_i2c_info
= {
908 static void __init
em_x270_init_da9030(void)
910 pxa27x_set_i2c_power_info(&em_x270_pwr_i2c_info
);
911 i2c_register_board_info(1, &em_x270_i2c_pmic_info
, 1);
914 static void __init
em_x270_init(void)
916 pxa2xx_mfp_config(ARRAY_AND_SIZE(em_x270_pin_config
));
918 em_x270_init_da9030();
919 em_x270_init_dm9000();
926 em_x270_init_keypad();
927 em_x270_init_gpio_keys();
929 em_x270_init_camera();
933 MACHINE_START(EM_X270
, "Compulab EM-X270")
934 .boot_params
= 0xa0000100,
935 .phys_io
= 0x40000000,
936 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
937 .map_io
= pxa_map_io
,
938 .init_irq
= pxa27x_init_irq
,
940 .init_machine
= em_x270_init
,