[ARM] tegra: board-stingray: Add mdm6600 platform device
authorBenoit Goby <benoit@android.com>
Fri, 17 Sep 2010 03:09:31 +0000 (20:09 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:51:48 +0000 (16:51 -0700)
Change-Id: Ifb61c8f5350665c4d398da343da265f8d1e9deef
Signed-off-by: Benoit Goby <benoit@android.com>
arch/arm/mach-tegra/board-stingray.c

index 86876073a7bca5fdfc93997196cd7b065fa903a0..45b0d349c64226998d6c4f50754b9b6d7cf2c273 100644 (file)
@@ -192,6 +192,21 @@ static struct platform_device hs_uarte = {
        },
 };
 
+static struct resource mdm6600_resources[] = {
+       [0] = {
+               .flags = IORESOURCE_IRQ,
+               .start = TEGRA_GPIO_TO_IRQ(TEGRA_GPIO_PQ6),
+               .end   = TEGRA_GPIO_TO_IRQ(TEGRA_GPIO_PQ6),
+       },
+};
+
+static struct platform_device mdm6600_modem = {
+       .name = "mdm6600_modem",
+       .id   = -1,
+       .resource = mdm6600_resources,
+       .num_resources = ARRAY_SIZE(mdm6600_resources),
+};
+
 /* OTG gadget device */
 static struct tegra_utmip_config udc_phy_config = {
        .hssync_start_delay = 0,
@@ -612,6 +627,7 @@ static struct platform_device *stingray_devices[] __initdata = {
        &ram_console_device,
        &tegra_camera,
        &tegra_i2s_device1,
+       &mdm6600_modem,
 };
 
 extern struct tegra_sdhci_platform_data stingray_wifi_data; /* sdhci2 */