summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/devices.c
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-02-21 20:13:49 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:42:22 -0800
commit2d3adde8cbe77c98912805350f0bb0062cdd1163 (patch)
treeac53ead43673e463e81510ba63c1001173a3cc51 /arch/arm/mach-tegra/devices.c
parent7856da4d017cabe9517448cb751c230e82dbc01e (diff)
arm: tegra: Adding device entry for SPI5 and SPI6
Adding device entries for SPI5 and SPI6 for TEGRA3 ARCH. Original-Change-Id: Ie9d6a1e0cb9488bf07327c403edb78626137688b Reviewed-on: http://git-master/r/20309 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Ramachandrudu Kandhala <rkandhala@nvidia.com> Original-Change-Id: I7706a2b32177aaa4b4ca53d4f089cb3218f51ba3 Rebase-Id: Ra0f5901afa740929c904d681f89582d04ff230c1
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r--arch/arm/mach-tegra/devices.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
index 0faf5b6748a9..3d493e8af780 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -232,6 +232,33 @@ static struct resource spi_resource4[] = {
.flags = IORESOURCE_MEM,
},
};
+#if defined(CONFIG_ARCH_TEGRA_3x_SOC)
+static struct resource spi_resource5[] = {
+ [0] = {
+ .start = INT_SPI_5,
+ .end = INT_SPI_5,
+ .flags = IORESOURCE_IRQ,
+ },
+ [1] = {
+ .start = TEGRA_SPI5_BASE,
+ .end = TEGRA_SPI5_BASE + TEGRA_SPI5_SIZE-1,
+ .flags = IORESOURCE_MEM,
+ },
+};
+
+static struct resource spi_resource6[] = {
+ [0] = {
+ .start = INT_SPI_6,
+ .end = INT_SPI_6,
+ .flags = IORESOURCE_IRQ,
+ },
+ [1] = {
+ .start = TEGRA_SPI6_BASE,
+ .end = TEGRA_SPI6_BASE + TEGRA_SPI6_SIZE-1,
+ .flags = IORESOURCE_MEM,
+ },
+};
+#endif
struct platform_device tegra_spi_device1 = {
.name = "spi_tegra",
@@ -272,6 +299,27 @@ struct platform_device tegra_spi_device4 = {
.coherent_dma_mask = 0xffffffff,
},
};
+#if defined(CONFIG_ARCH_TEGRA_3x_SOC)
+struct platform_device tegra_spi_device5 = {
+ .name = "spi_tegra",
+ .id = 4,
+ .resource = spi_resource5,
+ .num_resources = ARRAY_SIZE(spi_resource5),
+ .dev = {
+ .coherent_dma_mask = 0xffffffff,
+ },
+};
+
+struct platform_device tegra_spi_device6 = {
+ .name = "spi_tegra",
+ .id = 5,
+ .resource = spi_resource6,
+ .num_resources = ARRAY_SIZE(spi_resource6),
+ .dev = {
+ .coherent_dma_mask = 0xffffffff,
+ },
+};
+#endif
static struct resource sdhci_resource1[] = {