summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/devices.c
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2011-06-08 12:26:14 +0530
committerNiket Sirsi <nsirsi@nvidia.com>2011-06-08 16:52:25 -0700
commit23f9724164fa107b570eaf6e69d49f5afef2aab0 (patch)
tree91b29df5db0be9642d6780a413132d26487372f1 /arch/arm/mach-tegra/devices.c
parent453a7a54a04fd235b43345a6bfb970cccfc6d680 (diff)
arm: tegra: devices: entry for security engine
tegra3 has a hardware block which can be used for encryption/decryption and hashing. add an entry in the common location so that all the boards using tegra3 can leverage it. Bug 835859 Change-Id: I5f3b031f5648fb04f85caa7c42b69b7482c96a7b Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/35635 Reviewed-by: Mallikarjun Kasoju <mkasoju@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r--arch/arm/mach-tegra/devices.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
index 30e5a7c3bc08..46cae46954bd 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -1326,3 +1326,31 @@ struct platform_device tegra_kbc_device = {
.platform_data = 0,
},
};
+
+#if !defined(CONFIG_ARCH_TEGRA_2x_SOC)
+static u64 tegra_se_dma_mask = DMA_BIT_MASK(32);
+
+struct resource tegra_se_resources[] = {
+ [0] = {
+ .start = TEGRA_SE_BASE,
+ .end = TEGRA_SE_BASE + TEGRA_SE_SIZE - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ [1] = {
+ .start = INT_SE,
+ .end = INT_SE,
+ .flags = IORESOURCE_IRQ,
+ },
+};
+
+struct platform_device tegra_se_device = {
+ .name = "tegra-se",
+ .id = -1,
+ .dev = {
+ .coherent_dma_mask = DMA_BIT_MASK(32),
+ .dma_mask = &tegra_se_dma_mask,
+ },
+ .resource = tegra_se_resources,
+ .num_resources = ARRAY_SIZE(tegra_se_resources),
+};
+#endif