arm: tegra: devices: Add PMC IO address in SE resources
Kasoju Mallikarjun [Wed, 3 Aug 2011 18:17:12 +0000 (23:17 +0530)]
Added PMC IO registers as platform resources of
Security Engine for storing context save buffer
address in PMC registes during context save.

Bug 855476

Original-Change-Id: I3bd5791743b157139d61ecea3d3e1ef131d8cce5
Reviewed-on: http://git-master/r/44808
Tested-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-by: Hanumanth Venkateswa Moganty <vmoganty@nvidia.com>

Rebase-Id: Rd5030cf1659887cedd9f60b00224ad7dddd7cd8c

arch/arm/mach-tegra/devices.c

index 53094a2..03b7640 100644 (file)
@@ -1474,7 +1474,7 @@ struct platform_device tegra_kbc_device = {
 #if !defined(CONFIG_ARCH_TEGRA_2x_SOC)
 static struct resource tegra_tsensor_resources[]= {
        {
-               .start  = TEGRA_TSENSOR_BASE,
+               .start  = TEGRA_TSENSOR_BASE,
                .end    = TEGRA_TSENSOR_BASE + TEGRA_TSENSOR_SIZE - 1,
                .flags  = IORESOURCE_MEM,
        },
@@ -1512,6 +1512,11 @@ struct resource tegra_se_resources[] = {
                .flags = IORESOURCE_MEM,
        },
        [1] = {
+               .start  = TEGRA_PMC_BASE,
+               .end    = TEGRA_PMC_BASE + SZ_256 - 1,
+               .flags  = IORESOURCE_MEM,
+       },
+       [2] = {
                .start = INT_SE,
                .end = INT_SE,
                .flags = IORESOURCE_IRQ,