2 * ezx.c - Common code for the EZX platform.
4 * Copyright (C) 2005-2006 Harald Welte <laforge@openezx.org>,
5 * 2007-2008 Daniel Ribeiro <drwyrm@gmail.com>,
6 * 2007-2008 Stefan Schmidt <stefan@datenfreihafen.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
14 #include <linux/kernel.h>
15 #include <linux/init.h>
16 #include <linux/platform_device.h>
17 #include <linux/delay.h>
18 #include <linux/pwm_backlight.h>
19 #include <linux/input.h>
21 #include <asm/setup.h>
22 #include <asm/mach-types.h>
23 #include <asm/mach/arch.h>
25 #include <mach/pxa27x.h>
26 #include <mach/pxafb.h>
27 #include <mach/ohci.h>
29 #include <mach/hardware.h>
30 #include <mach/pxa27x_keypad.h>
35 static struct platform_pwm_backlight_data ezx_backlight_data
= {
37 .max_brightness
= 1023,
38 .dft_brightness
= 1023,
39 .pwm_period_ns
= 78770,
42 static struct platform_device ezx_backlight_device
= {
43 .name
= "pwm-backlight",
45 .parent
= &pxa27x_device_pwm0
.dev
,
46 .platform_data
= &ezx_backlight_data
,
50 static struct pxafb_mode_info mode_ezx_old
= {
64 static struct pxafb_mach_info ezx_fb_info_1
= {
65 .modes
= &mode_ezx_old
,
67 .lcd_conn
= LCD_COLOR_TFT_16BPP
,
70 static struct pxafb_mode_info mode_72r89803y01
= {
85 static struct pxafb_mach_info ezx_fb_info_2
= {
86 .modes
= &mode_72r89803y01
,
88 .lcd_conn
= LCD_COLOR_TFT_18BPP
,
91 static struct platform_device
*devices
[] __initdata
= {
92 &ezx_backlight_device
,
95 static unsigned long ezx_pin_config
[] __initdata
= {
113 GPIO24_GPIO
, /* pcap chip select */
114 GPIO1_GPIO
, /* pcap interrupt */
115 GPIO4_GPIO
, /* WDI_AP */
116 GPIO55_GPIO
, /* SYS_RESTART */
125 GPIO11_GPIO
, /* mmc detect */
127 /* usb to external transceiver */
135 /* usb to Neptune GSM chip */
144 #if defined(CONFIG_MACH_EZX_A780) || defined(CONFIG_MACH_EZX_E680)
145 static unsigned long gen1_pin_config
[] __initdata
= {
146 /* flip / lockswitch */
149 /* bluetooth (bcm2035) */
150 GPIO14_GPIO
| WAKEUP_ON_LEVEL_HIGH
, /* HOSTWAKE */
151 GPIO48_GPIO
, /* RESET */
152 GPIO28_GPIO
, /* WAKEUP */
154 /* Neptune handshake */
155 GPIO0_GPIO
| WAKEUP_ON_LEVEL_HIGH
, /* BP_RDY */
156 GPIO57_GPIO
, /* AP_RDY */
157 GPIO13_GPIO
| WAKEUP_ON_LEVEL_HIGH
, /* WDI */
158 GPIO3_GPIO
| WAKEUP_ON_LEVEL_HIGH
, /* WDI2 */
159 GPIO82_GPIO
, /* RESET */
160 GPIO99_GPIO
, /* TC_MM_EN */
168 /* ssp2 pins to in */
169 GPIO22_GPIO
, /* SSP2_SCLK */
170 GPIO37_GPIO
, /* SSP2_SFRM */
171 GPIO38_GPIO
, /* SSP2_TXD */
172 GPIO88_GPIO
, /* SSP2_RXD */
187 GPIO50_GPIO
, /* CAM_EN */
188 GPIO19_GPIO
, /* CAM_RST */
191 GPIO120_GPIO
, /* EMU_MUX1 */
192 GPIO119_GPIO
, /* EMU_MUX2 */
193 GPIO86_GPIO
, /* SNP_INT_CTL */
194 GPIO87_GPIO
, /* SNP_INT_IN */
198 #if defined(CONFIG_MACH_EZX_A1200) || defined(CONFIG_MACH_EZX_A910) || \
199 defined(CONFIG_MACH_EZX_E2) || defined(CONFIG_MACH_EZX_E6)
200 static unsigned long gen2_pin_config
[] __initdata
= {
201 /* flip / lockswitch */
207 /* bluetooth (bcm2045) */
208 GPIO13_GPIO
| WAKEUP_ON_LEVEL_HIGH
, /* HOSTWAKE */
209 GPIO37_GPIO
, /* RESET */
210 GPIO57_GPIO
, /* WAKEUP */
212 /* Neptune handshake */
213 GPIO0_GPIO
| WAKEUP_ON_LEVEL_HIGH
, /* BP_RDY */
214 GPIO96_GPIO
, /* AP_RDY */
215 GPIO3_GPIO
| WAKEUP_ON_LEVEL_HIGH
, /* WDI */
216 GPIO116_GPIO
, /* RESET */
217 GPIO41_GPIO
, /* BP_FLASH */
225 /* ssp2 pins to in */
226 GPIO22_GPIO
, /* SSP2_SCLK */
227 GPIO14_GPIO
, /* SSP2_SFRM */
228 GPIO38_GPIO
, /* SSP2_TXD */
229 GPIO88_GPIO
, /* SSP2_RXD */
244 GPIO50_GPIO
, /* CAM_EN */
245 GPIO28_GPIO
, /* CAM_RST */
246 GPIO17_GPIO
, /* CAM_FLASH */
250 #ifdef CONFIG_MACH_EZX_A780
251 static unsigned long a780_pin_config
[] __initdata
= {
253 GPIO93_KP_DKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
254 GPIO100_KP_MKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
255 GPIO101_KP_MKIN_1
| WAKEUP_ON_LEVEL_HIGH
,
256 GPIO102_KP_MKIN_2
| WAKEUP_ON_LEVEL_HIGH
,
257 GPIO97_KP_MKIN_3
| WAKEUP_ON_LEVEL_HIGH
,
258 GPIO98_KP_MKIN_4
| WAKEUP_ON_LEVEL_HIGH
,
265 /* attenuate sound */
270 #ifdef CONFIG_MACH_EZX_E680
271 static unsigned long e680_pin_config
[] __initdata
= {
273 GPIO93_KP_DKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
274 GPIO96_KP_DKIN_3
| WAKEUP_ON_LEVEL_HIGH
,
275 GPIO97_KP_DKIN_4
| WAKEUP_ON_LEVEL_HIGH
,
276 GPIO98_KP_DKIN_5
| WAKEUP_ON_LEVEL_HIGH
,
277 GPIO100_KP_MKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
278 GPIO101_KP_MKIN_1
| WAKEUP_ON_LEVEL_HIGH
,
279 GPIO102_KP_MKIN_2
| WAKEUP_ON_LEVEL_HIGH
,
286 GPIO79_GPIO
, /* VA_SEL_BUL */
287 GPIO80_GPIO
, /* FLT_SEL_BUL */
288 GPIO78_GPIO
, /* MIDI_RESET */
289 GPIO33_GPIO
, /* MIDI_CS */
290 GPIO15_GPIO
, /* MIDI_IRQ */
291 GPIO49_GPIO
, /* MIDI_NPWE */
292 GPIO18_GPIO
, /* MIDI_RDY */
300 #ifdef CONFIG_MACH_EZX_A1200
301 static unsigned long a1200_pin_config
[] __initdata
= {
303 GPIO100_KP_MKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
304 GPIO101_KP_MKIN_1
| WAKEUP_ON_LEVEL_HIGH
,
305 GPIO102_KP_MKIN_2
| WAKEUP_ON_LEVEL_HIGH
,
306 GPIO97_KP_MKIN_3
| WAKEUP_ON_LEVEL_HIGH
,
307 GPIO98_KP_MKIN_4
| WAKEUP_ON_LEVEL_HIGH
,
317 #ifdef CONFIG_MACH_EZX_A910
318 static unsigned long a910_pin_config
[] __initdata
= {
320 GPIO100_KP_MKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
321 GPIO101_KP_MKIN_1
| WAKEUP_ON_LEVEL_HIGH
,
322 GPIO102_KP_MKIN_2
| WAKEUP_ON_LEVEL_HIGH
,
323 GPIO97_KP_MKIN_3
| WAKEUP_ON_LEVEL_HIGH
,
324 GPIO98_KP_MKIN_4
| WAKEUP_ON_LEVEL_HIGH
,
333 GPIO89_GPIO
, /* RESET */
334 GPIO33_GPIO
, /* WAKEUP */
335 GPIO94_GPIO
| WAKEUP_ON_LEVEL_HIGH
, /* HOSTWAKE */
342 #ifdef CONFIG_MACH_EZX_E2
343 static unsigned long e2_pin_config
[] __initdata
= {
345 GPIO100_KP_MKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
346 GPIO101_KP_MKIN_1
| WAKEUP_ON_LEVEL_HIGH
,
347 GPIO102_KP_MKIN_2
| WAKEUP_ON_LEVEL_HIGH
,
348 GPIO97_KP_MKIN_3
| WAKEUP_ON_LEVEL_HIGH
,
349 GPIO98_KP_MKIN_4
| WAKEUP_ON_LEVEL_HIGH
,
359 #ifdef CONFIG_MACH_EZX_E6
360 static unsigned long e6_pin_config
[] __initdata
= {
362 GPIO100_KP_MKIN_0
| WAKEUP_ON_LEVEL_HIGH
,
363 GPIO101_KP_MKIN_1
| WAKEUP_ON_LEVEL_HIGH
,
364 GPIO102_KP_MKIN_2
| WAKEUP_ON_LEVEL_HIGH
,
365 GPIO97_KP_MKIN_3
| WAKEUP_ON_LEVEL_HIGH
,
366 GPIO98_KP_MKIN_4
| WAKEUP_ON_LEVEL_HIGH
,
377 #ifdef CONFIG_MACH_EZX_A780
378 static unsigned int a780_key_map
[] = {
382 KEY(0, 3, KEY_PAGEUP
),
385 KEY(1, 0, KEY_NUMERIC_1
),
386 KEY(1, 1, KEY_NUMERIC_2
),
387 KEY(1, 2, KEY_NUMERIC_3
),
388 KEY(1, 3, KEY_SELECT
),
389 KEY(1, 4, KEY_KPENTER
),
391 KEY(2, 0, KEY_NUMERIC_4
),
392 KEY(2, 1, KEY_NUMERIC_5
),
393 KEY(2, 2, KEY_NUMERIC_6
),
394 KEY(2, 3, KEY_RECORD
),
397 KEY(3, 0, KEY_NUMERIC_7
),
398 KEY(3, 1, KEY_NUMERIC_8
),
399 KEY(3, 2, KEY_NUMERIC_9
),
401 KEY(3, 4, KEY_RIGHT
),
403 KEY(4, 0, KEY_NUMERIC_STAR
),
404 KEY(4, 1, KEY_NUMERIC_0
),
405 KEY(4, 2, KEY_NUMERIC_POUND
),
406 KEY(4, 3, KEY_PAGEDOWN
),
410 static struct pxa27x_keypad_platform_data a780_keypad_platform_data
= {
411 .matrix_key_rows
= 5,
412 .matrix_key_cols
= 5,
413 .matrix_key_map
= a780_key_map
,
414 .matrix_key_map_size
= ARRAY_SIZE(a780_key_map
),
416 .direct_key_map
= { KEY_CAMERA
},
419 .debounce_interval
= 30,
421 #endif /* CONFIG_MACH_EZX_A780 */
423 #ifdef CONFIG_MACH_EZX_E680
424 static unsigned int e680_key_map
[] = {
426 KEY(0, 1, KEY_RIGHT
),
427 KEY(0, 2, KEY_RESERVED
),
432 KEY(1, 2, KEY_PAGEUP
),
433 KEY(1, 3, KEY_PAGEDOWN
),
435 KEY(2, 0, KEY_RESERVED
),
436 KEY(2, 1, KEY_RESERVED
),
437 KEY(2, 2, KEY_RESERVED
),
438 KEY(2, 3, KEY_KPENTER
),
441 static struct pxa27x_keypad_platform_data e680_keypad_platform_data
= {
442 .matrix_key_rows
= 3,
443 .matrix_key_cols
= 4,
444 .matrix_key_map
= e680_key_map
,
445 .matrix_key_map_size
= ARRAY_SIZE(e680_key_map
),
457 .debounce_interval
= 30,
459 #endif /* CONFIG_MACH_EZX_E680 */
461 #ifdef CONFIG_MACH_EZX_A1200
462 static unsigned int a1200_key_map
[] = {
463 KEY(0, 0, KEY_RESERVED
),
464 KEY(0, 1, KEY_RIGHT
),
465 KEY(0, 2, KEY_PAGEDOWN
),
466 KEY(0, 3, KEY_RESERVED
),
467 KEY(0, 4, KEY_RESERVED
),
468 KEY(0, 5, KEY_RESERVED
),
470 KEY(1, 0, KEY_RESERVED
),
472 KEY(1, 2, KEY_CAMERA
),
473 KEY(1, 3, KEY_RESERVED
),
474 KEY(1, 4, KEY_RESERVED
),
475 KEY(1, 5, KEY_RESERVED
),
477 KEY(2, 0, KEY_RESERVED
),
478 KEY(2, 1, KEY_KPENTER
),
479 KEY(2, 2, KEY_RECORD
),
480 KEY(2, 3, KEY_RESERVED
),
481 KEY(2, 4, KEY_RESERVED
),
482 KEY(2, 5, KEY_SELECT
),
484 KEY(3, 0, KEY_RESERVED
),
487 KEY(3, 3, KEY_RESERVED
),
488 KEY(3, 4, KEY_RESERVED
),
489 KEY(3, 5, KEY_RESERVED
),
491 KEY(4, 0, KEY_RESERVED
),
493 KEY(4, 2, KEY_PAGEUP
),
494 KEY(4, 3, KEY_RESERVED
),
495 KEY(4, 4, KEY_RESERVED
),
496 KEY(4, 5, KEY_RESERVED
),
499 static struct pxa27x_keypad_platform_data a1200_keypad_platform_data
= {
500 .matrix_key_rows
= 5,
501 .matrix_key_cols
= 6,
502 .matrix_key_map
= a1200_key_map
,
503 .matrix_key_map_size
= ARRAY_SIZE(a1200_key_map
),
505 .debounce_interval
= 30,
507 #endif /* CONFIG_MACH_EZX_A1200 */
509 #ifdef CONFIG_MACH_EZX_E6
510 static unsigned int e6_key_map
[] = {
511 KEY(0, 0, KEY_RESERVED
),
512 KEY(0, 1, KEY_RIGHT
),
513 KEY(0, 2, KEY_PAGEDOWN
),
514 KEY(0, 3, KEY_RESERVED
),
515 KEY(0, 4, KEY_RESERVED
),
516 KEY(0, 5, KEY_NEXTSONG
),
518 KEY(1, 0, KEY_RESERVED
),
520 KEY(1, 2, KEY_PROG1
),
521 KEY(1, 3, KEY_RESERVED
),
522 KEY(1, 4, KEY_RESERVED
),
523 KEY(1, 5, KEY_RESERVED
),
525 KEY(2, 0, KEY_RESERVED
),
526 KEY(2, 1, KEY_ENTER
),
527 KEY(2, 2, KEY_CAMERA
),
528 KEY(2, 3, KEY_RESERVED
),
529 KEY(2, 4, KEY_RESERVED
),
532 KEY(3, 0, KEY_RESERVED
),
535 KEY(3, 3, KEY_RESERVED
),
536 KEY(3, 4, KEY_RESERVED
),
537 KEY(3, 5, KEY_PLAYPAUSE
),
539 KEY(4, 0, KEY_RESERVED
),
541 KEY(4, 2, KEY_PAGEUP
),
542 KEY(4, 3, KEY_RESERVED
),
543 KEY(4, 4, KEY_RESERVED
),
544 KEY(4, 5, KEY_PREVIOUSSONG
),
547 static struct pxa27x_keypad_platform_data e6_keypad_platform_data
= {
548 .matrix_key_rows
= 5,
549 .matrix_key_cols
= 6,
550 .matrix_key_map
= e6_key_map
,
551 .matrix_key_map_size
= ARRAY_SIZE(e6_key_map
),
553 .debounce_interval
= 30,
555 #endif /* CONFIG_MACH_EZX_E6 */
557 #ifdef CONFIG_MACH_EZX_A910
558 static unsigned int a910_key_map
[] = {
559 KEY(0, 0, KEY_NUMERIC_6
),
560 KEY(0, 1, KEY_RIGHT
),
561 KEY(0, 2, KEY_PAGEDOWN
),
562 KEY(0, 3, KEY_KPENTER
),
563 KEY(0, 4, KEY_NUMERIC_5
),
564 KEY(0, 5, KEY_CAMERA
),
566 KEY(1, 0, KEY_NUMERIC_8
),
568 KEY(1, 2, KEY_RESERVED
),
569 KEY(1, 3, KEY_F1
), /* Left SoftKey */
570 KEY(1, 4, KEY_NUMERIC_STAR
),
571 KEY(1, 5, KEY_RESERVED
),
573 KEY(2, 0, KEY_NUMERIC_7
),
574 KEY(2, 1, KEY_NUMERIC_9
),
575 KEY(2, 2, KEY_RECORD
),
576 KEY(2, 3, KEY_F2
), /* Right SoftKey */
578 KEY(2, 5, KEY_SELECT
),
580 KEY(3, 0, KEY_NUMERIC_2
),
583 KEY(3, 3, KEY_NUMERIC_0
),
584 KEY(3, 4, KEY_NUMERIC_1
),
585 KEY(3, 5, KEY_RECORD
),
587 KEY(4, 0, KEY_NUMERIC_4
),
589 KEY(4, 2, KEY_PAGEUP
),
590 KEY(4, 3, KEY_NUMERIC_POUND
),
591 KEY(4, 4, KEY_NUMERIC_3
),
592 KEY(4, 5, KEY_RESERVED
),
595 static struct pxa27x_keypad_platform_data a910_keypad_platform_data
= {
596 .matrix_key_rows
= 5,
597 .matrix_key_cols
= 6,
598 .matrix_key_map
= a910_key_map
,
599 .matrix_key_map_size
= ARRAY_SIZE(a910_key_map
),
601 .debounce_interval
= 30,
603 #endif /* CONFIG_MACH_EZX_A910 */
605 #ifdef CONFIG_MACH_EZX_E2
606 static unsigned int e2_key_map
[] = {
607 KEY(0, 0, KEY_NUMERIC_6
),
608 KEY(0, 1, KEY_RIGHT
),
609 KEY(0, 2, KEY_NUMERIC_9
),
610 KEY(0, 3, KEY_NEXTSONG
),
611 KEY(0, 4, KEY_NUMERIC_5
),
612 KEY(0, 5, KEY_F1
), /* Left SoftKey */
614 KEY(1, 0, KEY_NUMERIC_8
),
616 KEY(1, 2, KEY_RESERVED
),
617 KEY(1, 3, KEY_PAGEUP
),
618 KEY(1, 4, KEY_NUMERIC_STAR
),
619 KEY(1, 5, KEY_F2
), /* Right SoftKey */
621 KEY(2, 0, KEY_NUMERIC_7
),
622 KEY(2, 1, KEY_KPENTER
),
623 KEY(2, 2, KEY_RECORD
),
624 KEY(2, 3, KEY_PAGEDOWN
),
626 KEY(2, 5, KEY_NUMERIC_0
),
628 KEY(3, 0, KEY_NUMERIC_2
),
631 KEY(3, 3, KEY_PLAYPAUSE
),
632 KEY(3, 4, KEY_NUMERIC_1
),
633 KEY(3, 5, KEY_SOUND
), /* Music SoftKey */
635 KEY(4, 0, KEY_NUMERIC_4
),
637 KEY(4, 2, KEY_NUMERIC_POUND
),
638 KEY(4, 3, KEY_PREVIOUSSONG
),
639 KEY(4, 4, KEY_NUMERIC_3
),
640 KEY(4, 5, KEY_RESERVED
),
643 static struct pxa27x_keypad_platform_data e2_keypad_platform_data
= {
644 .matrix_key_rows
= 5,
645 .matrix_key_cols
= 6,
646 .matrix_key_map
= e2_key_map
,
647 .matrix_key_map_size
= ARRAY_SIZE(e2_key_map
),
649 .debounce_interval
= 30,
651 #endif /* CONFIG_MACH_EZX_E2 */
653 #ifdef CONFIG_MACH_EZX_A780
654 static void __init
a780_init(void)
656 pxa2xx_mfp_config(ARRAY_AND_SIZE(ezx_pin_config
));
657 pxa2xx_mfp_config(ARRAY_AND_SIZE(gen1_pin_config
));
658 pxa2xx_mfp_config(ARRAY_AND_SIZE(a780_pin_config
));
660 pxa_set_i2c_info(NULL
);
662 set_pxa_fb_info(&ezx_fb_info_1
);
664 pxa_set_keypad_info(&a780_keypad_platform_data
);
666 platform_add_devices(devices
, ARRAY_SIZE(devices
));
669 MACHINE_START(EZX_A780
, "Motorola EZX A780")
670 .phys_io
= 0x40000000,
671 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
672 .boot_params
= 0xa0000100,
673 .map_io
= pxa_map_io
,
674 .init_irq
= pxa27x_init_irq
,
676 .init_machine
= a780_init
,
680 #ifdef CONFIG_MACH_EZX_E680
681 static struct i2c_board_info __initdata e680_i2c_board_info
[] = {
682 { I2C_BOARD_INFO("tea5767", 0x81) },
685 static void __init
e680_init(void)
687 pxa2xx_mfp_config(ARRAY_AND_SIZE(ezx_pin_config
));
688 pxa2xx_mfp_config(ARRAY_AND_SIZE(gen1_pin_config
));
689 pxa2xx_mfp_config(ARRAY_AND_SIZE(e680_pin_config
));
691 pxa_set_i2c_info(NULL
);
692 i2c_register_board_info(0, ARRAY_AND_SIZE(e680_i2c_board_info
));
694 set_pxa_fb_info(&ezx_fb_info_1
);
696 pxa_set_keypad_info(&e680_keypad_platform_data
);
698 platform_add_devices(devices
, ARRAY_SIZE(devices
));
701 MACHINE_START(EZX_E680
, "Motorola EZX E680")
702 .phys_io
= 0x40000000,
703 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
704 .boot_params
= 0xa0000100,
705 .map_io
= pxa_map_io
,
706 .init_irq
= pxa27x_init_irq
,
708 .init_machine
= e680_init
,
712 #ifdef CONFIG_MACH_EZX_A1200
713 static struct i2c_board_info __initdata a1200_i2c_board_info
[] = {
714 { I2C_BOARD_INFO("tea5767", 0x81) },
717 static void __init
a1200_init(void)
719 pxa2xx_mfp_config(ARRAY_AND_SIZE(ezx_pin_config
));
720 pxa2xx_mfp_config(ARRAY_AND_SIZE(gen2_pin_config
));
721 pxa2xx_mfp_config(ARRAY_AND_SIZE(a1200_pin_config
));
723 pxa_set_i2c_info(NULL
);
724 i2c_register_board_info(0, ARRAY_AND_SIZE(a1200_i2c_board_info
));
726 set_pxa_fb_info(&ezx_fb_info_2
);
728 pxa_set_keypad_info(&a1200_keypad_platform_data
);
730 platform_add_devices(devices
, ARRAY_SIZE(devices
));
733 MACHINE_START(EZX_A1200
, "Motorola EZX A1200")
734 .phys_io
= 0x40000000,
735 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
736 .boot_params
= 0xa0000100,
737 .map_io
= pxa_map_io
,
738 .init_irq
= pxa27x_init_irq
,
740 .init_machine
= a1200_init
,
744 #ifdef CONFIG_MACH_EZX_A910
745 static void __init
a910_init(void)
747 pxa2xx_mfp_config(ARRAY_AND_SIZE(ezx_pin_config
));
748 pxa2xx_mfp_config(ARRAY_AND_SIZE(gen2_pin_config
));
749 pxa2xx_mfp_config(ARRAY_AND_SIZE(a910_pin_config
));
751 pxa_set_i2c_info(NULL
);
753 set_pxa_fb_info(&ezx_fb_info_2
);
755 pxa_set_keypad_info(&a910_keypad_platform_data
);
757 platform_add_devices(devices
, ARRAY_SIZE(devices
));
760 MACHINE_START(EZX_A910
, "Motorola EZX A910")
761 .phys_io
= 0x40000000,
762 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
763 .boot_params
= 0xa0000100,
764 .map_io
= pxa_map_io
,
765 .init_irq
= pxa27x_init_irq
,
767 .init_machine
= a910_init
,
771 #ifdef CONFIG_MACH_EZX_E6
772 static struct i2c_board_info __initdata e6_i2c_board_info
[] = {
773 { I2C_BOARD_INFO("tea5767", 0x81) },
776 static void __init
e6_init(void)
778 pxa2xx_mfp_config(ARRAY_AND_SIZE(ezx_pin_config
));
779 pxa2xx_mfp_config(ARRAY_AND_SIZE(gen2_pin_config
));
780 pxa2xx_mfp_config(ARRAY_AND_SIZE(e6_pin_config
));
782 pxa_set_i2c_info(NULL
);
783 i2c_register_board_info(0, ARRAY_AND_SIZE(e6_i2c_board_info
));
785 set_pxa_fb_info(&ezx_fb_info_2
);
787 pxa_set_keypad_info(&e6_keypad_platform_data
);
789 platform_add_devices(devices
, ARRAY_SIZE(devices
));
792 MACHINE_START(EZX_E6
, "Motorola EZX E6")
793 .phys_io
= 0x40000000,
794 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
795 .boot_params
= 0xa0000100,
796 .map_io
= pxa_map_io
,
797 .init_irq
= pxa27x_init_irq
,
799 .init_machine
= e6_init
,
803 #ifdef CONFIG_MACH_EZX_E2
804 static struct i2c_board_info __initdata e2_i2c_board_info
[] = {
805 { I2C_BOARD_INFO("tea5767", 0x81) },
808 static void __init
e2_init(void)
810 pxa2xx_mfp_config(ARRAY_AND_SIZE(ezx_pin_config
));
811 pxa2xx_mfp_config(ARRAY_AND_SIZE(gen2_pin_config
));
812 pxa2xx_mfp_config(ARRAY_AND_SIZE(e2_pin_config
));
814 pxa_set_i2c_info(NULL
);
815 i2c_register_board_info(0, ARRAY_AND_SIZE(e2_i2c_board_info
));
817 set_pxa_fb_info(&ezx_fb_info_2
);
819 pxa_set_keypad_info(&e2_keypad_platform_data
);
821 platform_add_devices(devices
, ARRAY_SIZE(devices
));
824 MACHINE_START(EZX_E2
, "Motorola EZX E2")
825 .phys_io
= 0x40000000,
826 .io_pg_offst
= (io_p2v(0x40000000) >> 18) & 0xfffc,
827 .boot_params
= 0xa0000100,
828 .map_io
= pxa_map_io
,
829 .init_irq
= pxa27x_init_irq
,
831 .init_machine
= e2_init
,