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)
65 static int dm9000_flags
;
67 static unsigned long common_pin_config
[] = {
70 GPIO29_AC97_SDATA_IN_0
,
71 GPIO30_AC97_SDATA_OUT
,
135 GPIO100_KP_MKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
136 GPIO101_KP_MKIN_1
| WAKEUP_ON_LEVEL_HIGH
,
137 GPIO102_KP_MKIN_2
| WAKEUP_ON_LEVEL_HIGH
,
138 GPIO34_KP_MKIN_3
| WAKEUP_ON_LEVEL_HIGH
,
139 GPIO39_KP_MKIN_4
| WAKEUP_ON_LEVEL_HIGH
,
140 GPIO99_KP_MKIN_5
| WAKEUP_ON_LEVEL_HIGH
,
141 GPIO91_KP_MKIN_6
| WAKEUP_ON_LEVEL_HIGH
,
142 GPIO36_KP_MKIN_7
| WAKEUP_ON_LEVEL_HIGH
,
164 /* SDRAM and local bus */
173 GPIO1_GPIO
| WAKEUP_ON_EDGE_BOTH
, /* sleep/resume button */
176 GPIO20_GPIO
| MFP_LPM_DRIVE_LOW
, /* GPRS_PWEN */
177 GPIO93_GPIO
| MFP_LPM_DRIVE_LOW
, /* Camera reset */
178 GPIO115_GPIO
| MFP_LPM_DRIVE_LOW
, /* WLAN_PWEN */
181 GPIO11_GPIO
| MFP_LPM_DRIVE_HIGH
, /* NAND CE# */
184 GPIO41_GPIO
, /* DM9000 interrupt */
187 static unsigned long em_x270_pin_config
[] = {
188 GPIO13_GPIO
, /* MMC card detect */
189 GPIO56_GPIO
, /* NAND Ready/Busy */
190 GPIO95_GPIO
, /* MMC Write protect */
193 #if defined(CONFIG_DM9000) || defined(CONFIG_DM9000_MODULE)
194 static struct resource em_x270_dm9000_resource
[] = {
196 .start
= PXA_CS2_PHYS
,
197 .end
= PXA_CS2_PHYS
+ 3,
198 .flags
= IORESOURCE_MEM
,
201 .start
= PXA_CS2_PHYS
+ 8,
202 .end
= PXA_CS2_PHYS
+ 8 + 0x3f,
203 .flags
= IORESOURCE_MEM
,
206 .start
= EM_X270_ETHIRQ
,
207 .end
= EM_X270_ETHIRQ
,
208 .flags
= IORESOURCE_IRQ
| IORESOURCE_IRQ_HIGHEDGE
,
212 static struct dm9000_plat_data em_x270_dm9000_platdata
= {
213 .flags
= DM9000_PLATF_NO_EEPROM
,
216 static struct platform_device em_x270_dm9000
= {
219 .num_resources
= ARRAY_SIZE(em_x270_dm9000_resource
),
220 .resource
= em_x270_dm9000_resource
,
222 .platform_data
= &em_x270_dm9000_platdata
,
226 static void __init
em_x270_init_dm9000(void)
228 em_x270_dm9000_platdata
.flags
|= dm9000_flags
;
229 platform_device_register(&em_x270_dm9000
);
232 static inline void em_x270_init_dm9000(void) {}
236 #if defined(CONFIG_RTC_DRV_V3020) || defined(CONFIG_RTC_DRV_V3020_MODULE)
237 static struct resource em_x270_v3020_resource
[] = {
239 .start
= PXA_CS4_PHYS
,
240 .end
= PXA_CS4_PHYS
+ 3,
241 .flags
= IORESOURCE_MEM
,
245 static struct v3020_platform_data em_x270_v3020_platdata
= {
249 static struct platform_device em_x270_rtc
= {
251 .num_resources
= ARRAY_SIZE(em_x270_v3020_resource
),
252 .resource
= em_x270_v3020_resource
,
255 .platform_data
= &em_x270_v3020_platdata
,
259 static void __init
em_x270_init_rtc(void)
261 platform_device_register(&em_x270_rtc
);
264 static inline void em_x270_init_rtc(void) {}
268 #if defined(CONFIG_MTD_NAND_PLATFORM) || defined(CONFIG_MTD_NAND_PLATFORM_MODULE)
269 static inline void nand_cs_on(void)
271 gpio_set_value(GPIO11_NAND_CS
, 0);
274 static void nand_cs_off(void)
278 gpio_set_value(GPIO11_NAND_CS
, 1);
281 /* hardware specific access to control-lines */
282 static void em_x270_nand_cmd_ctl(struct mtd_info
*mtd
, int dat
,
285 struct nand_chip
*this = mtd
->priv
;
286 unsigned long nandaddr
= (unsigned long)this->IO_ADDR_W
;
290 if (ctrl
& NAND_CTRL_CHANGE
) {
292 nandaddr
|= (1 << 3);
294 nandaddr
&= ~(1 << 3);
296 nandaddr
|= (1 << 2);
298 nandaddr
&= ~(1 << 2);
306 this->IO_ADDR_W
= (void __iomem
*)nandaddr
;
307 if (dat
!= NAND_CMD_NONE
)
308 writel(dat
, this->IO_ADDR_W
);
313 /* read device ready pin */
314 static int em_x270_nand_device_ready(struct mtd_info
*mtd
)
318 return gpio_get_value(nand_rb
);
321 static struct mtd_partition em_x270_partition_info
[] = {
329 .offset
= MTDPART_OFS_APPEND
,
330 .size
= MTDPART_SIZ_FULL
334 static const char *em_x270_part_probes
[] = { "cmdlinepart", NULL
};
336 struct platform_nand_data em_x270_nand_platdata
= {
340 .nr_partitions
= ARRAY_SIZE(em_x270_partition_info
),
341 .partitions
= em_x270_partition_info
,
343 .part_probe_types
= em_x270_part_probes
,
347 .dev_ready
= em_x270_nand_device_ready
,
349 .cmd_ctrl
= em_x270_nand_cmd_ctl
,
353 static struct resource em_x270_nand_resource
[] = {
355 .start
= PXA_CS1_PHYS
,
356 .end
= PXA_CS1_PHYS
+ 12,
357 .flags
= IORESOURCE_MEM
,
361 static struct platform_device em_x270_nand
= {
363 .num_resources
= ARRAY_SIZE(em_x270_nand_resource
),
364 .resource
= em_x270_nand_resource
,
367 .platform_data
= &em_x270_nand_platdata
,
371 static void __init
em_x270_init_nand(void)
375 err
= gpio_request(GPIO11_NAND_CS
, "NAND CS");
377 pr_warning("EM-X270: failed to request NAND CS gpio\n");
381 gpio_direction_output(GPIO11_NAND_CS
, 1);
383 err
= gpio_request(nand_rb
, "NAND R/B");
385 pr_warning("EM-X270: failed to request NAND R/B gpio\n");
386 gpio_free(GPIO11_NAND_CS
);
390 gpio_direction_input(nand_rb
);
392 platform_device_register(&em_x270_nand
);
395 static inline void em_x270_init_nand(void) {}
398 #if defined(CONFIG_MTD_PHYSMAP) || defined(CONFIG_MTD_PHYSMAP_MODULE)
399 static struct mtd_partition em_x270_nor_parts
[] = {
401 .name
= "Bootloader",
402 .offset
= 0x00000000,
404 .mask_flags
= MTD_WRITEABLE
/* force read-only */
406 .name
= "Environment",
407 .offset
= 0x00050000,
411 .offset
= 0x00060000,
413 .mask_flags
= MTD_WRITEABLE
/* force read-only */
415 .name
= "Splashscreen",
416 .offset
= 0x000b0000,
421 static struct physmap_flash_data em_x270_nor_data
[] = {
424 .parts
= em_x270_nor_parts
,
425 .nr_parts
= ARRAY_SIZE(em_x270_nor_parts
),
429 static struct resource em_x270_nor_flash_resource
= {
430 .start
= PXA_CS0_PHYS
,
431 .end
= PXA_CS0_PHYS
+ SZ_1M
- 1,
432 .flags
= IORESOURCE_MEM
,
435 static struct platform_device em_x270_physmap_flash
= {
436 .name
= "physmap-flash",
439 .resource
= &em_x270_nor_flash_resource
,
441 .platform_data
= &em_x270_nor_data
,
445 static void __init
em_x270_init_nor(void)
447 platform_device_register(&em_x270_physmap_flash
);
450 static inline void em_x270_init_nor(void) {}
453 /* PXA27x OHCI controller setup */
454 #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE)
455 static int em_x270_ohci_init(struct device
*dev
)
457 /* enable port 2 transiever */
458 UP2OCR
= UP2OCR_HXS
| UP2OCR_HXOE
;
463 static struct pxaohci_platform_data em_x270_ohci_platform_data
= {
464 .port_mode
= PMM_PERPORT_MODE
,
465 .flags
= ENABLE_PORT1
| ENABLE_PORT2
| POWER_CONTROL_LOW
,
466 .init
= em_x270_ohci_init
,
469 static void __init
em_x270_init_ohci(void)
471 pxa_set_ohci_info(&em_x270_ohci_platform_data
);
474 static inline void em_x270_init_ohci(void) {}
477 /* MCI controller setup */
478 #if defined(CONFIG_MMC) || defined(CONFIG_MMC_MODULE)
479 static struct regulator
*em_x270_sdio_ldo
;
481 static int em_x270_mci_init(struct device
*dev
,
482 irq_handler_t em_x270_detect_int
,
487 em_x270_sdio_ldo
= regulator_get(dev
, "vcc sdio");
488 if (IS_ERR(em_x270_sdio_ldo
)) {
489 dev_err(dev
, "can't request SDIO power supply: %ld\n",
490 PTR_ERR(em_x270_sdio_ldo
));
491 return PTR_ERR(em_x270_sdio_ldo
);
494 err
= request_irq(gpio_to_irq(mmc_cd
), em_x270_detect_int
,
495 IRQF_DISABLED
| IRQF_TRIGGER_RISING
|
496 IRQF_TRIGGER_FALLING
,
497 "MMC card detect", data
);
499 dev_err(dev
, "can't request MMC card detect IRQ: %d\n", err
);
503 err
= gpio_request(GPIO95_MMC_WP
, "MMC WP");
505 dev_err(dev
, "can't request MMC write protect: %d\n", err
);
509 gpio_direction_input(GPIO95_MMC_WP
);
514 free_irq(gpio_to_irq(mmc_cd
), data
);
516 regulator_put(em_x270_sdio_ldo
);
521 static void em_x270_mci_setpower(struct device
*dev
, unsigned int vdd
)
523 struct pxamci_platform_data
* p_d
= dev
->platform_data
;
525 if ((1 << vdd
) & p_d
->ocr_mask
) {
526 int vdd_uV
= (2000 + (vdd
- __ffs(MMC_VDD_20_21
)) * 100) * 1000;
528 regulator_set_voltage(em_x270_sdio_ldo
, vdd_uV
, vdd_uV
);
529 regulator_enable(em_x270_sdio_ldo
);
531 regulator_disable(em_x270_sdio_ldo
);
535 static void em_x270_mci_exit(struct device
*dev
, void *data
)
537 free_irq(gpio_to_irq(mmc_cd
), data
);
540 static int em_x270_mci_get_ro(struct device
*dev
)
542 return gpio_get_value(GPIO95_MMC_WP
);
545 static struct pxamci_platform_data em_x270_mci_platform_data
= {
546 .ocr_mask
= MMC_VDD_20_21
|MMC_VDD_21_22
|MMC_VDD_22_23
|
547 MMC_VDD_24_25
|MMC_VDD_25_26
|MMC_VDD_26_27
|
548 MMC_VDD_27_28
|MMC_VDD_28_29
|MMC_VDD_29_30
|
549 MMC_VDD_30_31
|MMC_VDD_31_32
,
550 .init
= em_x270_mci_init
,
551 .setpower
= em_x270_mci_setpower
,
552 .get_ro
= em_x270_mci_get_ro
,
553 .exit
= em_x270_mci_exit
,
556 static void __init
em_x270_init_mmc(void)
558 em_x270_mci_platform_data
.detect_delay
= msecs_to_jiffies(250);
559 pxa_set_mci_info(&em_x270_mci_platform_data
);
562 static inline void em_x270_init_mmc(void) {}
566 #if defined(CONFIG_FB_PXA) || defined(CONFIG_FB_PXA_MODULE)
567 static struct pxafb_mode_info em_x270_lcd_modes
[] = {
596 static struct pxafb_mach_info em_x270_lcd
= {
597 .modes
= em_x270_lcd_modes
,
599 .lcd_conn
= LCD_COLOR_TFT_16BPP
,
602 static void __init
em_x270_init_lcd(void)
604 set_pxa_fb_info(&em_x270_lcd
);
607 static inline void em_x270_init_lcd(void) {}
610 #if defined(CONFIG_SPI_PXA2XX) || defined(CONFIG_SPI_PXA2XX_MODULE)
611 static struct pxa2xx_spi_master em_x270_spi_info
= {
615 static struct pxa2xx_spi_chip em_x270_tdo24m_chip
= {
620 static struct tdo24m_platform_data em_x270_tdo24m_pdata
= {
624 static struct spi_board_info em_x270_spi_devices
[] __initdata
= {
626 .modalias
= "tdo24m",
627 .max_speed_hz
= 1000000,
630 .controller_data
= &em_x270_tdo24m_chip
,
631 .platform_data
= &em_x270_tdo24m_pdata
,
635 static void __init
em_x270_init_spi(void)
637 pxa2xx_set_spi_info(1, &em_x270_spi_info
);
638 spi_register_board_info(ARRAY_AND_SIZE(em_x270_spi_devices
));
641 static inline void em_x270_init_spi(void) {}
644 #if defined(CONFIG_SND_PXA2XX_AC97) || defined(CONFIG_SND_PXA2XX_AC97_MODULE)
645 static void __init
em_x270_init_ac97(void)
647 pxa_set_ac97_info(NULL
);
650 static inline void em_x270_init_ac97(void) {}
653 #if defined(CONFIG_KEYBOARD_PXA27x) || defined(CONFIG_KEYBOARD_PXA27x_MODULE)
654 static unsigned int em_x270_matrix_keys
[] = {
655 KEY(0, 0, KEY_A
), KEY(1, 0, KEY_UP
), KEY(2, 1, KEY_B
),
656 KEY(0, 2, KEY_LEFT
), KEY(1, 1, KEY_ENTER
), KEY(2, 0, KEY_RIGHT
),
657 KEY(0, 1, KEY_C
), KEY(1, 2, KEY_DOWN
), KEY(2, 2, KEY_D
),
660 struct pxa27x_keypad_platform_data em_x270_keypad_info
= {
661 /* code map for the matrix keys */
662 .matrix_key_rows
= 3,
663 .matrix_key_cols
= 3,
664 .matrix_key_map
= em_x270_matrix_keys
,
665 .matrix_key_map_size
= ARRAY_SIZE(em_x270_matrix_keys
),
668 static void __init
em_x270_init_keypad(void)
670 pxa_set_keypad_info(&em_x270_keypad_info
);
673 static inline void em_x270_init_keypad(void) {}
676 #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
677 static struct gpio_keys_button gpio_keys_button
[] = {
679 .desc
= "sleep/wakeup",
687 static struct gpio_keys_platform_data em_x270_gpio_keys_data
= {
688 .buttons
= gpio_keys_button
,
692 static struct platform_device em_x270_gpio_keys
= {
696 .platform_data
= &em_x270_gpio_keys_data
,
700 static void __init
em_x270_init_gpio_keys(void)
702 platform_device_register(&em_x270_gpio_keys
);
705 static inline void em_x270_init_gpio_keys(void) {}
708 /* Quick Capture Interface and sensor setup */
709 #if defined(CONFIG_VIDEO_PXA27x) || defined(CONFIG_VIDEO_PXA27x_MODULE)
710 static struct regulator
*em_x270_camera_ldo
;
712 static int em_x270_sensor_init(struct device
*dev
)
716 ret
= gpio_request(GPIO93_CAM_RESET
, "camera reset");
720 gpio_direction_output(GPIO93_CAM_RESET
, 0);
722 em_x270_camera_ldo
= regulator_get(NULL
, "vcc cam");
723 if (em_x270_camera_ldo
== NULL
) {
724 gpio_free(GPIO93_CAM_RESET
);
728 ret
= regulator_enable(em_x270_camera_ldo
);
730 regulator_put(em_x270_camera_ldo
);
731 gpio_free(GPIO93_CAM_RESET
);
735 gpio_set_value(GPIO93_CAM_RESET
, 1);
740 struct pxacamera_platform_data em_x270_camera_platform_data
= {
741 .init
= em_x270_sensor_init
,
742 .flags
= PXA_CAMERA_MASTER
| PXA_CAMERA_DATAWIDTH_8
|
743 PXA_CAMERA_PCLK_EN
| PXA_CAMERA_MCLK_EN
,
747 static int em_x270_sensor_power(struct device
*dev
, int on
)
750 int is_on
= regulator_is_enabled(em_x270_camera_ldo
);
755 gpio_set_value(GPIO93_CAM_RESET
, !on
);
758 ret
= regulator_enable(em_x270_camera_ldo
);
760 ret
= regulator_disable(em_x270_camera_ldo
);
765 gpio_set_value(GPIO93_CAM_RESET
, on
);
770 static struct soc_camera_link iclink
= {
772 .power
= em_x270_sensor_power
,
775 static struct i2c_board_info em_x270_i2c_cam_info
[] = {
777 I2C_BOARD_INFO("mt9m111", 0x48),
778 .platform_data
= &iclink
,
782 static struct i2c_pxa_platform_data em_x270_i2c_info
= {
786 static void __init
em_x270_init_camera(void)
788 pxa_set_i2c_info(&em_x270_i2c_info
);
789 i2c_register_board_info(0, ARRAY_AND_SIZE(em_x270_i2c_cam_info
));
790 pxa_set_camera_info(&em_x270_camera_platform_data
);
793 static inline void em_x270_init_camera(void) {}
796 /* DA9030 related initializations */
797 #define REGULATOR_CONSUMER(_name, _dev, _supply) \
798 static struct regulator_consumer_supply _name##_consumers[] = { \
805 REGULATOR_CONSUMER(ldo3
, NULL
, "vcc gps");
806 REGULATOR_CONSUMER(ldo5
, NULL
, "vcc cam");
807 REGULATOR_CONSUMER(ldo10
, &pxa_device_mci
.dev
, "vcc sdio");
808 REGULATOR_CONSUMER(ldo12
, NULL
, "vcc usb");
809 REGULATOR_CONSUMER(ldo19
, NULL
, "vcc gprs");
811 #define REGULATOR_INIT(_ldo, _min_uV, _max_uV, _ops_mask) \
812 static struct regulator_init_data _ldo##_data = { \
819 .valid_ops_mask = _ops_mask, \
821 .num_consumer_supplies = ARRAY_SIZE(_ldo##_consumers), \
822 .consumer_supplies = _ldo##_consumers, \
825 REGULATOR_INIT(ldo3
, 3200000, 3200000, REGULATOR_CHANGE_STATUS
);
826 REGULATOR_INIT(ldo5
, 3000000, 3000000, REGULATOR_CHANGE_STATUS
);
827 REGULATOR_INIT(ldo10
, 2000000, 3200000,
828 REGULATOR_CHANGE_STATUS
| REGULATOR_CHANGE_VOLTAGE
);
829 REGULATOR_INIT(ldo12
, 3000000, 3000000, REGULATOR_CHANGE_STATUS
);
830 REGULATOR_INIT(ldo19
, 3200000, 3200000, REGULATOR_CHANGE_STATUS
);
832 struct led_info em_x270_led_info
= {
833 .name
= "em-x270:orange",
834 .default_trigger
= "battery-charging-or-full",
837 struct power_supply_info em_x270_psy_info
= {
838 .name
= "LP555597P6H-FPS",
839 .technology
= POWER_SUPPLY_TECHNOLOGY_LIPO
,
840 .voltage_max_design
= 4200000,
841 .voltage_min_design
= 3000000,
845 static void em_x270_battery_low(void)
847 apm_queue_event(APM_LOW_BATTERY
);
850 static void em_x270_battery_critical(void)
852 apm_queue_event(APM_CRITICAL_SUSPEND
);
855 struct da9030_battery_info em_x270_batterty_info
= {
856 .battery_info
= &em_x270_psy_info
,
858 .charge_milliamp
= 1000,
859 .charge_millivolt
= 4200,
863 .vbat_charge_start
= 4100,
864 .vbat_charge_stop
= 4200,
865 .vbat_charge_restart
= 4000,
874 .batmon_interval
= 0,
876 .battery_low
= em_x270_battery_low
,
877 .battery_critical
= em_x270_battery_critical
,
880 #define DA9030_SUBDEV(_name, _id, _pdata) \
882 .name = "da903x-" #_name, \
883 .id = DA9030_ID_##_id, \
884 .platform_data = _pdata, \
887 #define DA9030_LDO(num) DA9030_SUBDEV(regulator, LDO##num, &ldo##num##_data)
889 struct da903x_subdev_info em_x270_da9030_subdevs
[] = {
896 DA9030_SUBDEV(led
, LED_PC
, &em_x270_led_info
),
897 DA9030_SUBDEV(backlight
, WLED
, &em_x270_led_info
),
898 DA9030_SUBDEV(battery
, BAT
, &em_x270_batterty_info
),
901 static struct da903x_platform_data em_x270_da9030_info
= {
902 .num_subdevs
= ARRAY_SIZE(em_x270_da9030_subdevs
),
903 .subdevs
= em_x270_da9030_subdevs
,
906 static struct i2c_board_info em_x270_i2c_pmic_info
= {
907 I2C_BOARD_INFO("da9030", 0x49),
909 .platform_data
= &em_x270_da9030_info
,
912 static struct i2c_pxa_platform_data em_x270_pwr_i2c_info
= {
916 static void __init
em_x270_init_da9030(void)
918 pxa27x_set_i2c_power_info(&em_x270_pwr_i2c_info
);
919 i2c_register_board_info(1, &em_x270_i2c_pmic_info
, 1);
922 static void __init
em_x270_module_init(void)
924 pxa2xx_mfp_config(ARRAY_AND_SIZE(em_x270_pin_config
));
926 mmc_cd
= GPIO13_MMC_CD
;
927 nand_rb
= GPIO56_NAND_RB
;
928 dm9000_flags
= DM9000_PLATF_32BITONLY
;
931 static void __init
em_x270_init(void)
933 pxa2xx_mfp_config(ARRAY_AND_SIZE(common_pin_config
));
935 em_x270_module_init();
937 em_x270_init_da9030();
938 em_x270_init_dm9000();
945 em_x270_init_keypad();
946 em_x270_init_gpio_keys();
948 em_x270_init_camera();
952 MACHINE_START(EM_X270
, "Compulab EM-X270")
953 .boot_params
= 0xa0000100,
954 .phys_io
= 0x40000000,
955 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
956 .map_io
= pxa_map_io
,
957 .init_irq
= pxa27x_init_irq
,
959 .init_machine
= em_x270_init
,