2 * linux/arch/arm/mach-pxa/stargate2.c
5 * Created: Nov 05, 2002
6 * Copyright: Intel Corp.
8 * Modified 2009: Jonathan Cameron <jic23@cam.ac.uk>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
15 #include <linux/init.h>
16 #include <linux/device.h>
17 #include <linux/interrupt.h>
18 #include <linux/sched.h>
19 #include <linux/bitops.h>
21 #include <linux/delay.h>
22 #include <linux/platform_device.h>
23 #include <linux/regulator/machine.h>
24 #include <linux/mtd/mtd.h>
25 #include <linux/mtd/plat-ram.h>
26 #include <linux/mtd/partitions.h>
28 #include <linux/i2c/pxa-i2c.h>
29 #include <linux/i2c/pcf857x.h>
30 #include <linux/i2c/at24.h>
31 #include <linux/smc91x.h>
32 #include <linux/gpio.h>
33 #include <linux/leds.h>
35 #include <asm/types.h>
36 #include <asm/setup.h>
37 #include <asm/memory.h>
38 #include <asm/mach-types.h>
41 #include <asm/mach/arch.h>
42 #include <asm/mach/map.h>
43 #include <asm/mach/irq.h>
44 #include <asm/mach/flash.h>
46 #include <mach/pxa27x.h>
49 #include <mach/pxa27x-udc.h>
50 #include <mach/smemc.h>
52 #include <linux/spi/spi.h>
53 #include <linux/spi/pxa2xx_spi.h>
54 #include <linux/mfd/da903x.h>
55 #include <linux/sht15.h>
60 #define STARGATE_NR_IRQS (IRQ_BOARD_START + 8)
63 #define SG2_BT_RESET 81
66 #define SG2_GPIO_nSD_DETECT 90
67 #define SG2_SD_POWER_ENABLE 89
69 static unsigned long sg2_im2_unified_pin_config
[] __initdata
= {
70 /* Device Identification for wakeup*/
83 /* 802.15.4 radio - driver out of mainline */
84 GPIO22_GPIO
, /* CC_RSTN */
85 GPIO114_GPIO
, /* CC_FIFO */
86 GPIO116_GPIO
, /* CC_CCA */
87 GPIO0_GPIO
, /* CC_FIFOP */
88 GPIO16_GPIO
, /* CCSFD */
89 GPIO115_GPIO
, /* Power enable */
95 /* SSP 3 - 802.15.4 radio */
96 GPIO39_GPIO
, /* Chip Select */
101 /* SSP 2 to daughter boards */
105 GPIO37_GPIO
, /* chip select */
107 /* SSP 1 - to daughter boards */
108 GPIO24_GPIO
, /* Chip Select */
113 /* BTUART Basic Connector*/
119 /* STUART - IM2 via debug board not sure on SG2*/
123 /* Basic sensor board */
124 GPIO96_GPIO
, /* accelerometer interrupt */
125 GPIO99_GPIO
, /* ADC interrupt */
131 /* Basic sensor board */
132 GPIO96_GPIO
, /* accelerometer interrupt */
133 GPIO99_GPIO
, /* ADC interrupt */
135 /* Connector pins specified as gpios */
136 GPIO94_GPIO
, /* large basic connector pin 14 */
137 GPIO10_GPIO
, /* large basic connector pin 23 */
140 static struct sht15_platform_data platform_data_sht15
= {
145 static struct platform_device sht15
= {
149 .platform_data
= &platform_data_sht15
,
153 static struct regulator_consumer_supply stargate2_sensor_3_con
[] = {
163 /* a mote connector? */
165 /* the CSR bluecore chip */
167 /* The two voltages available to sensor boards */
170 /* directly connected to the pxa27x */
173 vcc_pxa_usim
, /* Reference voltage for certain gpios */
176 vcc_pxa_core
, /*Dc-Dc buck not yet supported */
179 vcc_bbio
, /*not sure!*/
180 vcc_io
, /* cc2420 802.15.4 radio and pxa vcc_io ?*/
183 /* The values of the various regulator constraints are obviously dependent
184 * on exactly what is wired to each ldo. Unfortunately this information is
185 * not generally available. More information has been requested from Xbow.
187 static struct regulator_init_data stargate2_ldo_init_data
[] = {
189 .constraints
= { /* board default 1.8V */
196 .constraints
= { /* board default 2.8V */
203 .constraints
= {/* default is 1.8V */
204 .name
= "vcc_pxa_flash",
209 [vcc_cc2420
] = { /* also vcc_io */
211 /* board default is 2.8V */
212 .name
= "vcc_cc2420",
217 [vcc_vref
] = { /* Reference for what? */
218 .constraints
= { /* default 1.8V */
225 .constraints
= { /* default 2.8V */
226 .name
= "vcc_sram_ext",
232 .constraints
= { /* default 2.8V */
239 .constraints
= { /* default 2.8V */
246 .constraints
= { /* default 2.8V */
252 [vcc_io
] = { /* Same or higher than everything
253 * bar vccbat and vccusb */
254 .constraints
= { /* default 2.8V */
261 .constraints
= { /* default 1.8V */
262 .name
= "vcc_sensor_1_8",
267 [vcc_sensor_3
] = { /* curiously default 2.8V */
269 .name
= "vcc_sensor_3",
273 .num_consumer_supplies
= ARRAY_SIZE(stargate2_sensor_3_con
),
274 .consumer_supplies
= stargate2_sensor_3_con
,
276 [vcc_pxa_pll
] = { /* 1.17V - 1.43V, default 1.3V*/
278 .name
= "vcc_pxa_pll",
284 .constraints
= { /* default 1.8V */
285 .name
= "vcc_pxa_usim",
291 .constraints
= { /* default 1.8V */
292 .name
= "vcc_pxa_mem",
299 static struct mtd_partition stargate2flash_partitions
[] = {
301 .name
= "Bootloader",
308 .offset
= 0x00040000,
311 .name
= "Filesystem",
313 .offset
= 0x00240000,
318 static struct resource flash_resources
= {
319 .start
= PXA_CS0_PHYS
,
320 .end
= PXA_CS0_PHYS
+ SZ_32M
- 1,
321 .flags
= IORESOURCE_MEM
,
324 static struct flash_platform_data stargate2_flash_data
= {
325 .map_name
= "cfi_probe",
326 .parts
= stargate2flash_partitions
,
327 .nr_parts
= ARRAY_SIZE(stargate2flash_partitions
),
328 .name
= "PXA27xOnChipROM",
332 static struct platform_device stargate2_flash_device
= {
333 .name
= "pxa2xx-flash",
336 .platform_data
= &stargate2_flash_data
,
338 .resource
= &flash_resources
,
342 static struct pxa2xx_spi_master pxa_ssp_master_0_info
= {
346 static struct pxa2xx_spi_master pxa_ssp_master_1_info
= {
350 static struct pxa2xx_spi_master pxa_ssp_master_2_info
= {
354 /* An upcoming kernel change will scrap SFRM usage so these
355 * drivers have been moved to use gpio's via cs_control */
356 static struct pxa2xx_spi_chip staccel_chip_info
= {
364 static struct pxa2xx_spi_chip cc2420_info
= {
372 static struct spi_board_info spi_board_info
[] __initdata
= {
374 .modalias
= "lis3l02dq",
375 .max_speed_hz
= 8000000,/* 8MHz max spi frequency at 3V */
378 .controller_data
= &staccel_chip_info
,
381 .modalias
= "cc2420",
382 .max_speed_hz
= 6500000,
385 .controller_data
= &cc2420_info
,
389 static void sg2_udc_command(int cmd
)
392 case PXA2XX_UDC_CMD_CONNECT
:
393 UP2OCR
|= UP2OCR_HXOE
| UP2OCR_DPPUE
| UP2OCR_DPPUBE
;
395 case PXA2XX_UDC_CMD_DISCONNECT
:
396 UP2OCR
&= ~(UP2OCR_HXOE
| UP2OCR_DPPUE
| UP2OCR_DPPUBE
);
401 static struct i2c_pxa_platform_data i2c_pwr_pdata
= {
405 static struct i2c_pxa_platform_data i2c_pdata
= {
409 static void __init
imote2_stargate2_init(void)
412 pxa2xx_mfp_config(ARRAY_AND_SIZE(sg2_im2_unified_pin_config
));
414 pxa_set_ffuart_info(NULL
);
415 pxa_set_btuart_info(NULL
);
416 pxa_set_stuart_info(NULL
);
418 pxa2xx_set_spi_info(1, &pxa_ssp_master_0_info
);
419 pxa2xx_set_spi_info(2, &pxa_ssp_master_1_info
);
420 pxa2xx_set_spi_info(3, &pxa_ssp_master_2_info
);
421 spi_register_board_info(spi_board_info
, ARRAY_SIZE(spi_board_info
));
424 pxa27x_set_i2c_power_info(&i2c_pwr_pdata
);
425 pxa_set_i2c_info(&i2c_pdata
);
428 #ifdef CONFIG_MACH_INTELMOTE2
429 /* As the the imote2 doesn't currently have a conventional SD slot
430 * there is no option to hotplug cards, making all this rather simple
432 static int imote2_mci_get_ro(struct device
*dev
)
437 /* Rather simple case as hotplugging not possible */
438 static struct pxamci_platform_data imote2_mci_platform_data
= {
439 .ocr_mask
= MMC_VDD_32_33
| MMC_VDD_33_34
, /* default anyway */
440 .get_ro
= imote2_mci_get_ro
,
441 .gpio_card_detect
= -1,
446 static struct gpio_led imote2_led_pins
[] = {
448 .name
= "imote2:red",
452 .name
= "imote2:green",
456 .name
= "imote2:blue",
462 static struct gpio_led_platform_data imote2_led_data
= {
463 .num_leds
= ARRAY_SIZE(imote2_led_pins
),
464 .leds
= imote2_led_pins
,
467 static struct platform_device imote2_leds
= {
471 .platform_data
= &imote2_led_data
,
475 static struct da903x_subdev_info imote2_da9030_subdevs
[] = {
477 .name
= "da903x-regulator",
478 .id
= DA9030_ID_LDO2
,
479 .platform_data
= &stargate2_ldo_init_data
[vcc_bbio
],
481 .name
= "da903x-regulator",
482 .id
= DA9030_ID_LDO3
,
483 .platform_data
= &stargate2_ldo_init_data
[vcc_bb
],
485 .name
= "da903x-regulator",
486 .id
= DA9030_ID_LDO4
,
487 .platform_data
= &stargate2_ldo_init_data
[vcc_pxa_flash
],
489 .name
= "da903x-regulator",
490 .id
= DA9030_ID_LDO5
,
491 .platform_data
= &stargate2_ldo_init_data
[vcc_cc2420
],
493 .name
= "da903x-regulator",
494 .id
= DA9030_ID_LDO6
,
495 .platform_data
= &stargate2_ldo_init_data
[vcc_vref
],
497 .name
= "da903x-regulator",
498 .id
= DA9030_ID_LDO7
,
499 .platform_data
= &stargate2_ldo_init_data
[vcc_sram_ext
],
501 .name
= "da903x-regulator",
502 .id
= DA9030_ID_LDO8
,
503 .platform_data
= &stargate2_ldo_init_data
[vcc_mica
],
505 .name
= "da903x-regulator",
506 .id
= DA9030_ID_LDO9
,
507 .platform_data
= &stargate2_ldo_init_data
[vcc_bt
],
509 .name
= "da903x-regulator",
510 .id
= DA9030_ID_LDO10
,
511 .platform_data
= &stargate2_ldo_init_data
[vcc_sensor_1_8
],
513 .name
= "da903x-regulator",
514 .id
= DA9030_ID_LDO11
,
515 .platform_data
= &stargate2_ldo_init_data
[vcc_sensor_3
],
517 .name
= "da903x-regulator",
518 .id
= DA9030_ID_LDO12
,
519 .platform_data
= &stargate2_ldo_init_data
[vcc_lcd
],
521 .name
= "da903x-regulator",
522 .id
= DA9030_ID_LDO15
,
523 .platform_data
= &stargate2_ldo_init_data
[vcc_pxa_pll
],
525 .name
= "da903x-regulator",
526 .id
= DA9030_ID_LDO17
,
527 .platform_data
= &stargate2_ldo_init_data
[vcc_pxa_usim
],
529 .name
= "da903x-regulator", /*pxa vcc i/o and cc2420 vcc i/o */
530 .id
= DA9030_ID_LDO18
,
531 .platform_data
= &stargate2_ldo_init_data
[vcc_io
],
533 .name
= "da903x-regulator",
534 .id
= DA9030_ID_LDO19
,
535 .platform_data
= &stargate2_ldo_init_data
[vcc_pxa_mem
],
539 static struct da903x_platform_data imote2_da9030_pdata
= {
540 .num_subdevs
= ARRAY_SIZE(imote2_da9030_subdevs
),
541 .subdevs
= imote2_da9030_subdevs
,
544 static struct i2c_board_info __initdata imote2_pwr_i2c_board_info
[] = {
548 .platform_data
= &imote2_da9030_pdata
,
549 .irq
= gpio_to_irq(1),
553 static struct i2c_board_info __initdata imote2_i2c_board_info
[] = {
554 { /* UCAM sensor board */
557 }, { /* ITS400 Sensor board only */
560 /* Through a nand gate - Also beware, on V2 sensor board the
561 * pull up resistors are missing.
564 }, { /* ITS400 Sensor board only */
567 /* Through a nand gate - Also beware, on V2 sensor board the
568 * pull up resistors are missing.
571 }, { /* ITS400 Sensor board only */
575 }, { /* IMB400 Multimedia board */
581 static unsigned long imote2_pin_config
[] __initdata
= {
587 GPIO103_GPIO
, /* red led */
588 GPIO104_GPIO
, /* green led */
589 GPIO105_GPIO
, /* blue led */
592 static struct pxa2xx_udc_mach_info imote2_udc_info __initdata
= {
593 .udc_command
= sg2_udc_command
,
596 static struct platform_device
*imote2_devices
[] = {
597 &stargate2_flash_device
,
602 static void __init
imote2_init(void)
604 pxa2xx_mfp_config(ARRAY_AND_SIZE(imote2_pin_config
));
606 imote2_stargate2_init();
608 platform_add_devices(imote2_devices
, ARRAY_SIZE(imote2_devices
));
610 i2c_register_board_info(0, imote2_i2c_board_info
,
611 ARRAY_SIZE(imote2_i2c_board_info
));
612 i2c_register_board_info(1, imote2_pwr_i2c_board_info
,
613 ARRAY_SIZE(imote2_pwr_i2c_board_info
));
615 pxa_set_mci_info(&imote2_mci_platform_data
);
616 pxa_set_udc_info(&imote2_udc_info
);
620 #ifdef CONFIG_MACH_STARGATE2
622 static unsigned long stargate2_pin_config
[] __initdata
= {
624 GPIO15_nCS_1
, /* SRAM */
627 GPIO40_GPIO
, /*cable detect?*/
630 GPIO91_GPIO
| WAKEUP_ON_LEVEL_HIGH
,
643 GPIO120_GPIO
, /* Buff ctrl */
644 GPIO108_GPIO
, /* Power ctrl */
645 GPIO82_GPIO
, /* Reset */
646 GPIO53_GPIO
, /* SG2_S0_GPIO_DETECT */
648 /* MMC not shared with imote2 */
649 GPIO90_GPIO
, /* nSD detect */
650 GPIO89_GPIO
, /* SD_POWER_ENABLE */
653 GPIO81_GPIO
, /* reset */
656 static struct resource smc91x_resources
[] = {
658 .name
= "smc91x-regs",
659 .start
= (PXA_CS4_PHYS
+ 0x300),
660 .end
= (PXA_CS4_PHYS
+ 0xfffff),
661 .flags
= IORESOURCE_MEM
,
664 .start
= IRQ_GPIO(40),
666 .flags
= IORESOURCE_IRQ
| IORESOURCE_IRQ_HIGHEDGE
,
670 static struct smc91x_platdata stargate2_smc91x_info
= {
671 .flags
= SMC91X_USE_8BIT
| SMC91X_USE_16BIT
| SMC91X_USE_32BIT
672 | SMC91X_NOWAIT
| SMC91X_USE_DMA
,
675 static struct platform_device smc91x_device
= {
678 .num_resources
= ARRAY_SIZE(smc91x_resources
),
679 .resource
= smc91x_resources
,
681 .platform_data
= &stargate2_smc91x_info
,
687 * The card detect interrupt isn't debounced so we delay it by 250ms
688 * to give the card a chance to fully insert / eject.
690 static int stargate2_mci_init(struct device
*dev
,
691 irq_handler_t stargate2_detect_int
,
696 err
= gpio_request(SG2_SD_POWER_ENABLE
, "SG2_sd_power_enable");
698 printk(KERN_ERR
"Can't get the gpio for SD power control");
701 gpio_direction_output(SG2_SD_POWER_ENABLE
, 0);
703 err
= gpio_request(SG2_GPIO_nSD_DETECT
, "SG2_sd_detect");
705 printk(KERN_ERR
"Can't get the sd detect gpio");
708 gpio_direction_input(SG2_GPIO_nSD_DETECT
);
710 err
= request_irq(IRQ_GPIO(SG2_GPIO_nSD_DETECT
),
711 stargate2_detect_int
,
716 printk(KERN_ERR
"can't request MMC card detect IRQ\n");
717 goto free_nsd_detect
;
722 gpio_free(SG2_GPIO_nSD_DETECT
);
724 gpio_free(SG2_SD_POWER_ENABLE
);
730 * stargate2_mci_setpower() - set state of mmc power supply
732 * Very simple control. Either it is on or off and is controlled by
734 static void stargate2_mci_setpower(struct device
*dev
, unsigned int vdd
)
736 gpio_set_value(SG2_SD_POWER_ENABLE
, !!vdd
);
739 static void stargate2_mci_exit(struct device
*dev
, void *data
)
741 free_irq(IRQ_GPIO(SG2_GPIO_nSD_DETECT
), data
);
742 gpio_free(SG2_SD_POWER_ENABLE
);
743 gpio_free(SG2_GPIO_nSD_DETECT
);
746 static struct pxamci_platform_data stargate2_mci_platform_data
= {
747 .detect_delay_ms
= 250,
748 .ocr_mask
= MMC_VDD_32_33
| MMC_VDD_33_34
,
749 .init
= stargate2_mci_init
,
750 .setpower
= stargate2_mci_setpower
,
751 .exit
= stargate2_mci_exit
,
756 * SRAM - The Stargate 2 has 32MB of SRAM.
758 * Here it is made available as an MTD. This will then
759 * typically have a cifs filesystem created on it to provide
760 * fast temporary storage.
762 static struct resource sram_resources
= {
763 .start
= PXA_CS1_PHYS
,
764 .end
= PXA_CS1_PHYS
+ SZ_32M
-1,
765 .flags
= IORESOURCE_MEM
,
768 static struct platdata_mtd_ram stargate2_sram_pdata
= {
769 .mapname
= "Stargate2 SRAM",
773 static struct platform_device stargate2_sram
= {
776 .resource
= &sram_resources
,
779 .platform_data
= &stargate2_sram_pdata
,
783 static struct pcf857x_platform_data platform_data_pcf857x
= {
791 static struct at24_platform_data pca9500_eeprom_pdata
= {
797 * stargate2_reset_bluetooth() reset the bluecore to ensure consistent state
799 static int stargate2_reset_bluetooth(void)
802 err
= gpio_request(SG2_BT_RESET
, "SG2_BT_RESET");
804 printk(KERN_ERR
"Could not get gpio for bluetooth reset\n");
807 gpio_direction_output(SG2_BT_RESET
, 1);
809 /* now reset it - 5 msec minimum */
810 gpio_set_value(SG2_BT_RESET
, 0);
812 gpio_set_value(SG2_BT_RESET
, 1);
813 gpio_free(SG2_BT_RESET
);
817 static struct led_info stargate2_leds
[] = {
820 .flags
= DA9030_LED_RATE_ON
,
823 .flags
= DA9030_LED_RATE_ON
,
826 .flags
= DA9030_LED_RATE_ON
,
830 static struct da903x_subdev_info stargate2_da9030_subdevs
[] = {
832 .name
= "da903x-led",
833 .id
= DA9030_ID_LED_2
,
834 .platform_data
= &stargate2_leds
[0],
836 .name
= "da903x-led",
837 .id
= DA9030_ID_LED_3
,
838 .platform_data
= &stargate2_leds
[2],
840 .name
= "da903x-led",
841 .id
= DA9030_ID_LED_4
,
842 .platform_data
= &stargate2_leds
[1],
844 .name
= "da903x-regulator",
845 .id
= DA9030_ID_LDO2
,
846 .platform_data
= &stargate2_ldo_init_data
[vcc_bbio
],
848 .name
= "da903x-regulator",
849 .id
= DA9030_ID_LDO3
,
850 .platform_data
= &stargate2_ldo_init_data
[vcc_bb
],
852 .name
= "da903x-regulator",
853 .id
= DA9030_ID_LDO4
,
854 .platform_data
= &stargate2_ldo_init_data
[vcc_pxa_flash
],
856 .name
= "da903x-regulator",
857 .id
= DA9030_ID_LDO5
,
858 .platform_data
= &stargate2_ldo_init_data
[vcc_cc2420
],
860 .name
= "da903x-regulator",
861 .id
= DA9030_ID_LDO6
,
862 .platform_data
= &stargate2_ldo_init_data
[vcc_vref
],
864 .name
= "da903x-regulator",
865 .id
= DA9030_ID_LDO7
,
866 .platform_data
= &stargate2_ldo_init_data
[vcc_sram_ext
],
868 .name
= "da903x-regulator",
869 .id
= DA9030_ID_LDO8
,
870 .platform_data
= &stargate2_ldo_init_data
[vcc_mica
],
872 .name
= "da903x-regulator",
873 .id
= DA9030_ID_LDO9
,
874 .platform_data
= &stargate2_ldo_init_data
[vcc_bt
],
876 .name
= "da903x-regulator",
877 .id
= DA9030_ID_LDO10
,
878 .platform_data
= &stargate2_ldo_init_data
[vcc_sensor_1_8
],
880 .name
= "da903x-regulator",
881 .id
= DA9030_ID_LDO11
,
882 .platform_data
= &stargate2_ldo_init_data
[vcc_sensor_3
],
884 .name
= "da903x-regulator",
885 .id
= DA9030_ID_LDO12
,
886 .platform_data
= &stargate2_ldo_init_data
[vcc_lcd
],
888 .name
= "da903x-regulator",
889 .id
= DA9030_ID_LDO15
,
890 .platform_data
= &stargate2_ldo_init_data
[vcc_pxa_pll
],
892 .name
= "da903x-regulator",
893 .id
= DA9030_ID_LDO17
,
894 .platform_data
= &stargate2_ldo_init_data
[vcc_pxa_usim
],
896 .name
= "da903x-regulator", /*pxa vcc i/o and cc2420 vcc i/o */
897 .id
= DA9030_ID_LDO18
,
898 .platform_data
= &stargate2_ldo_init_data
[vcc_io
],
900 .name
= "da903x-regulator",
901 .id
= DA9030_ID_LDO19
,
902 .platform_data
= &stargate2_ldo_init_data
[vcc_pxa_mem
],
906 static struct da903x_platform_data stargate2_da9030_pdata
= {
907 .num_subdevs
= ARRAY_SIZE(stargate2_da9030_subdevs
),
908 .subdevs
= stargate2_da9030_subdevs
,
911 static struct i2c_board_info __initdata stargate2_pwr_i2c_board_info
[] = {
915 .platform_data
= &stargate2_da9030_pdata
,
916 .irq
= gpio_to_irq(1),
920 static struct i2c_board_info __initdata stargate2_i2c_board_info
[] = {
921 /* Techically this a pca9500 - but it's compatible with the 8574
922 * for gpio expansion and the 24c02 for eeprom access.
927 .platform_data
= &platform_data_pcf857x
,
931 .platform_data
= &pca9500_eeprom_pdata
,
935 }, { /* ITS400 Sensor board only */
938 /* Through a nand gate - Also beware, on V2 sensor board the
939 * pull up resistors are missing.
942 }, { /* ITS400 Sensor board only */
945 /* Through a nand gate - Also beware, on V2 sensor board the
946 * pull up resistors are missing.
949 }, { /* ITS400 Sensor board only */
956 /* Board doesn't support cable detection - so always lie and say
957 * something is there.
959 static int sg2_udc_detect(void)
964 static struct pxa2xx_udc_mach_info stargate2_udc_info __initdata
= {
965 .udc_is_connected
= sg2_udc_detect
,
966 .udc_command
= sg2_udc_command
,
969 static struct platform_device
*stargate2_devices
[] = {
970 &stargate2_flash_device
,
976 static void __init
stargate2_init(void)
978 /* This is probably a board specific hack as this must be set
979 prior to connecting the MFP stuff up. */
980 __raw_writel(__raw_readl(MECR
) & ~MECR_NOS
, MECR
);
982 pxa2xx_mfp_config(ARRAY_AND_SIZE(stargate2_pin_config
));
984 imote2_stargate2_init();
986 platform_add_devices(ARRAY_AND_SIZE(stargate2_devices
));
988 i2c_register_board_info(0, ARRAY_AND_SIZE(stargate2_i2c_board_info
));
989 i2c_register_board_info(1, stargate2_pwr_i2c_board_info
,
990 ARRAY_SIZE(stargate2_pwr_i2c_board_info
));
992 pxa_set_mci_info(&stargate2_mci_platform_data
);
994 pxa_set_udc_info(&stargate2_udc_info
);
996 stargate2_reset_bluetooth();
1000 #ifdef CONFIG_MACH_INTELMOTE2
1001 MACHINE_START(INTELMOTE2
, "IMOTE 2")
1002 .map_io
= pxa27x_map_io
,
1003 .init_irq
= pxa27x_init_irq
,
1004 .timer
= &pxa_timer
,
1005 .init_machine
= imote2_init
,
1006 .boot_params
= 0xA0000100,
1010 #ifdef CONFIG_MACH_STARGATE2
1011 MACHINE_START(STARGATE2
, "Stargate 2")
1012 .map_io
= pxa27x_map_io
,
1013 .nr_irqs
= STARGATE_NR_IRQS
,
1014 .init_irq
= pxa27x_init_irq
,
1015 .timer
= &pxa_timer
,
1016 .init_machine
= stargate2_init
,
1017 .boot_params
= 0xA0000100,