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
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:42:46 -0800
commit3ac93a42b00be53c959f99941c60bbfd8149085d (patch)
tree4776dcc2e91330aa1a805e035fcbbbb6951863f6 /arch/arm/mach-tegra/devices.c
parent3aa4f3d3c377899d5e2cdc793f2d0de7532b6e32 (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 Original-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> Rebase-Id: R7cbf0a98df1bc006a575a4e6728008522bc27788
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 b53ad734a3ce..1142a402b60d 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -1367,3 +1367,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