summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheshagiri Shenoy <sshenoy@nvidia.com>2011-03-18 11:04:01 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-04-01 19:29:27 -0700
commitb1b863de1b1a83f8f9edd8e8e6172d3aa55f3f60 (patch)
tree7cfd902d52d7f40cd79c50c4e5731829d2a4ceac
parent9d0892e0a0a1570e866ef7aaf1c19fb8356e5ff2 (diff)
ARM: tegra: spi: spi slave device related additions
- spi slave device added. - clock entry added for spi slave device. bug 785523 Change-Id: I6d3daeb3e7f4171f2dc4f9ec1fe255f19ea48928 Reviewed-on: http://git-master/r/23554 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/devices.c10
-rw-r--r--arch/arm/mach-tegra/devices.h1
-rw-r--r--arch/arm/mach-tegra/tegra2_clocks.c1
3 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
index 1bee4e58683b..3c8c818bffa4 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -173,6 +173,16 @@ static struct resource spi_resource4[] = {
},
};
+struct platform_device tegra_spi_slave_device1 = {
+ .name = "tegra_spi_slave",
+ .id = 0,
+ .resource = spi_resource1,
+ .num_resources = ARRAY_SIZE(spi_resource1),
+ .dev = {
+ .coherent_dma_mask = 0xffffffff,
+ },
+};
+
struct platform_device tegra_spi_device1 = {
.name = "spi_tegra",
.id = 0,
diff --git a/arch/arm/mach-tegra/devices.h b/arch/arm/mach-tegra/devices.h
index ca5934965a11..3d73cbce711b 100644
--- a/arch/arm/mach-tegra/devices.h
+++ b/arch/arm/mach-tegra/devices.h
@@ -31,6 +31,7 @@ extern struct platform_device tegra_i2c_device1;
extern struct platform_device tegra_i2c_device2;
extern struct platform_device tegra_i2c_device3;
extern struct platform_device tegra_i2c_device4;
+extern struct platform_device tegra_spi_slave_device1;
extern struct platform_device tegra_spi_device1;
extern struct platform_device tegra_spi_device2;
extern struct platform_device tegra_spi_device3;
diff --git a/arch/arm/mach-tegra/tegra2_clocks.c b/arch/arm/mach-tegra/tegra2_clocks.c
index a72f346d0797..c0bf72ee2a86 100644
--- a/arch/arm/mach-tegra/tegra2_clocks.c
+++ b/arch/arm/mach-tegra/tegra2_clocks.c
@@ -2087,6 +2087,7 @@ struct clk_duplicate tegra_clk_duplicates[] = {
CLK_DUPLICATE("mpe", "tegra_grhost", "mpe"),
CLK_DUPLICATE("cop", "tegra-avp", "cop"),
CLK_DUPLICATE("vde", "tegra-aes", "vde"),
+ CLK_DUPLICATE("sbc1", "tegra_spi_slave.0", NULL),
};
#define CLK(dev, con, ck) \