ARM: tegra: Fix build break for T30
Bo Yan [Tue, 2 Oct 2012 01:26:20 +0000 (18:26 -0700)]
- It's obvious that the XUSB is only supported in T11x

Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/140800

Change-Id: I685e4b8eeb47784291ee5e38d3554444d99f2f8f
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/146489
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
GVS: Gerrit_Virtual_Submit

arch/arm/mach-tegra/devices.c

index f20873f..ad6b445 100644 (file)
@@ -890,6 +890,44 @@ static struct resource tegra_usb3_resources[] = {
        },
 };
 
+#ifdef CONFIG_ARCH_TEGRA_11x_SOC
+static struct resource tegra_xusb_resources[] = {
+       [0] = {
+               .start  = TEGRA_XUSB_HOST_BASE,
+               .end    = TEGRA_XUSB_HOST_BASE + TEGRA_XUSB_HOST_SIZE - 1,
+               .flags  = IORESOURCE_MEM,
+       },
+       [1] = {
+               .start  = INT_USB3_HOST_INT,
+               .end    = INT_USB3_HOST_INT,
+               .flags  = IORESOURCE_IRQ,
+       },
+       [2] = {
+               .start  = INT_USB3_NOT_SMI,
+               .end    = INT_USB3_NOT_SMI,
+               .flags  = IORESOURCE_IRQ,
+       },
+       [3] = {
+               .start  = INT_XUSB_PADCTL,
+               .end    = INT_XUSB_PADCTL,
+               .flags  = IORESOURCE_IRQ,
+       },
+};
+
+static u64 tegra_xusb_dmamask = DMA_BIT_MASK(64);
+
+struct platform_device tegra_xhci_device = {
+       .name = "tegra-xhci",
+       .id = -1,
+       .dev = {
+               .dma_mask = &tegra_xusb_dmamask,
+               .coherent_dma_mask = DMA_BIT_MASK(64),
+       },
+       .resource = tegra_xusb_resources,
+       .num_resources = ARRAY_SIZE(tegra_xusb_resources),
+};
+#endif
+
 static u64 tegra_ehci_dmamask = DMA_BIT_MASK(32);
 
 struct platform_device tegra_ehci1_device = {