From: Benoit Goby Date: Fri, 17 Sep 2010 03:09:31 +0000 (-0700) Subject: [ARM] tegra: board-stingray: Add mdm6600 platform device X-Git-Tag: firefly_0821_release~9834^2~544 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1cc943e8eb72d52af5bd8d41ed2ee99a05e1b466;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: board-stingray: Add mdm6600 platform device Change-Id: Ifb61c8f5350665c4d398da343da265f8d1e9deef Signed-off-by: Benoit Goby --- diff --git a/arch/arm/mach-tegra/board-stingray.c b/arch/arm/mach-tegra/board-stingray.c index 86876073a7bc..45b0d349c642 100644 --- a/arch/arm/mach-tegra/board-stingray.c +++ b/arch/arm/mach-tegra/board-stingray.c @@ -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 */