aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/stargate2.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-pxa/stargate2.c')
-rw-r--r--arch/arm/mach-pxa/stargate2.c32
1 files changed, 19 insertions, 13 deletions
diff --git a/arch/arm/mach-pxa/stargate2.c b/arch/arm/mach-pxa/stargate2.c
index 80d7f23ad0fd..b0656e158d90 100644
--- a/arch/arm/mach-pxa/stargate2.c
+++ b/arch/arm/mach-pxa/stargate2.c
@@ -376,7 +376,7 @@ static struct spi_board_info spi_board_info[] __initdata = {
376 .bus_num = 1, 376 .bus_num = 1,
377 .chip_select = 0, 377 .chip_select = 0,
378 .controller_data = &staccel_chip_info, 378 .controller_data = &staccel_chip_info,
379 .irq = IRQ_GPIO(96), 379 .irq = PXA_GPIO_TO_IRQ(96),
380 }, { 380 }, {
381 .modalias = "cc2420", 381 .modalias = "cc2420",
382 .max_speed_hz = 6500000, 382 .max_speed_hz = 6500000,
@@ -546,7 +546,7 @@ static struct i2c_board_info __initdata imote2_pwr_i2c_board_info[] = {
546 .type = "da9030", 546 .type = "da9030",
547 .addr = 0x49, 547 .addr = 0x49,
548 .platform_data = &imote2_da9030_pdata, 548 .platform_data = &imote2_da9030_pdata,
549 .irq = gpio_to_irq(1), 549 .irq = PXA_GPIO_TO_IRQ(1),
550 }, 550 },
551}; 551};
552 552
@@ -560,18 +560,18 @@ static struct i2c_board_info __initdata imote2_i2c_board_info[] = {
560 /* Through a nand gate - Also beware, on V2 sensor board the 560 /* Through a nand gate - Also beware, on V2 sensor board the
561 * pull up resistors are missing. 561 * pull up resistors are missing.
562 */ 562 */
563 .irq = IRQ_GPIO(99), 563 .irq = PXA_GPIO_TO_IRQ(99),
564 }, { /* ITS400 Sensor board only */ 564 }, { /* ITS400 Sensor board only */
565 .type = "tsl2561", 565 .type = "tsl2561",
566 .addr = 0x49, 566 .addr = 0x49,
567 /* Through a nand gate - Also beware, on V2 sensor board the 567 /* Through a nand gate - Also beware, on V2 sensor board the
568 * pull up resistors are missing. 568 * pull up resistors are missing.
569 */ 569 */
570 .irq = IRQ_GPIO(99), 570 .irq = PXA_GPIO_TO_IRQ(99),
571 }, { /* ITS400 Sensor board only */ 571 }, { /* ITS400 Sensor board only */
572 .type = "tmp175", 572 .type = "tmp175",
573 .addr = 0x4A, 573 .addr = 0x4A,
574 .irq = IRQ_GPIO(96), 574 .irq = PXA_GPIO_TO_IRQ(96),
575 }, { /* IMB400 Multimedia board */ 575 }, { /* IMB400 Multimedia board */
576 .type = "wm8940", 576 .type = "wm8940",
577 .addr = 0x1A, 577 .addr = 0x1A,
@@ -593,10 +593,16 @@ static struct pxa2xx_udc_mach_info imote2_udc_info __initdata = {
593 .udc_command = sg2_udc_command, 593 .udc_command = sg2_udc_command,
594}; 594};
595 595
596static struct platform_device imote2_audio_device = {
597 .name = "imote2-audio",
598 .id = -1,
599};
600
596static struct platform_device *imote2_devices[] = { 601static struct platform_device *imote2_devices[] = {
597 &stargate2_flash_device, 602 &stargate2_flash_device,
598 &imote2_leds, 603 &imote2_leds,
599 &sht15, 604 &sht15,
605 &imote2_audio_device,
600}; 606};
601 607
602static void __init imote2_init(void) 608static void __init imote2_init(void)
@@ -661,8 +667,8 @@ static struct resource smc91x_resources[] = {
661 .flags = IORESOURCE_MEM, 667 .flags = IORESOURCE_MEM,
662 }, 668 },
663 [1] = { 669 [1] = {
664 .start = IRQ_GPIO(40), 670 .start = PXA_GPIO_TO_IRQ(40),
665 .end = IRQ_GPIO(40), 671 .end = PXA_GPIO_TO_IRQ(40),
666 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, 672 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
667 } 673 }
668}; 674};
@@ -707,7 +713,7 @@ static int stargate2_mci_init(struct device *dev,
707 } 713 }
708 gpio_direction_input(SG2_GPIO_nSD_DETECT); 714 gpio_direction_input(SG2_GPIO_nSD_DETECT);
709 715
710 err = request_irq(IRQ_GPIO(SG2_GPIO_nSD_DETECT), 716 err = request_irq(PXA_GPIO_TO_IRQ(SG2_GPIO_nSD_DETECT),
711 stargate2_detect_int, 717 stargate2_detect_int,
712 IRQ_TYPE_EDGE_BOTH, 718 IRQ_TYPE_EDGE_BOTH,
713 "MMC card detect", 719 "MMC card detect",
@@ -738,7 +744,7 @@ static void stargate2_mci_setpower(struct device *dev, unsigned int vdd)
738 744
739static void stargate2_mci_exit(struct device *dev, void *data) 745static void stargate2_mci_exit(struct device *dev, void *data)
740{ 746{
741 free_irq(IRQ_GPIO(SG2_GPIO_nSD_DETECT), data); 747 free_irq(PXA_GPIO_TO_IRQ(SG2_GPIO_nSD_DETECT), data);
742 gpio_free(SG2_SD_POWER_ENABLE); 748 gpio_free(SG2_SD_POWER_ENABLE);
743 gpio_free(SG2_GPIO_nSD_DETECT); 749 gpio_free(SG2_GPIO_nSD_DETECT);
744} 750}
@@ -913,7 +919,7 @@ static struct i2c_board_info __initdata stargate2_pwr_i2c_board_info[] = {
913 .type = "da9030", 919 .type = "da9030",
914 .addr = 0x49, 920 .addr = 0x49,
915 .platform_data = &stargate2_da9030_pdata, 921 .platform_data = &stargate2_da9030_pdata,
916 .irq = gpio_to_irq(1), 922 .irq = PXA_GPIO_TO_IRQ(1),
917 }, 923 },
918}; 924};
919 925
@@ -938,18 +944,18 @@ static struct i2c_board_info __initdata stargate2_i2c_board_info[] = {
938 /* Through a nand gate - Also beware, on V2 sensor board the 944 /* Through a nand gate - Also beware, on V2 sensor board the
939 * pull up resistors are missing. 945 * pull up resistors are missing.
940 */ 946 */
941 .irq = IRQ_GPIO(99), 947 .irq = PXA_GPIO_TO_IRQ(99),
942 }, { /* ITS400 Sensor board only */ 948 }, { /* ITS400 Sensor board only */
943 .type = "tsl2561", 949 .type = "tsl2561",
944 .addr = 0x49, 950 .addr = 0x49,
945 /* Through a nand gate - Also beware, on V2 sensor board the 951 /* Through a nand gate - Also beware, on V2 sensor board the
946 * pull up resistors are missing. 952 * pull up resistors are missing.
947 */ 953 */
948 .irq = IRQ_GPIO(99), 954 .irq = PXA_GPIO_TO_IRQ(99),
949 }, { /* ITS400 Sensor board only */ 955 }, { /* ITS400 Sensor board only */
950 .type = "tmp175", 956 .type = "tmp175",
951 .addr = 0x4A, 957 .addr = 0x4A,
952 .irq = IRQ_GPIO(96), 958 .irq = PXA_GPIO_TO_IRQ(96),
953 }, 959 },
954}; 960};
955 961