diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2013-11-24 01:30:49 -0500 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-12-13 14:50:31 -0500 |
commit | 1a5de3aeb015e495b7ffe03186cc598f17d8ad88 (patch) | |
tree | 0f5be4164e6c9d9cbcb08b4ae9d208b42afe6a36 | |
parent | fb2947c74b422f8aaef844128d20bc7c641356ea (diff) |
ARM: tegra: add support for Trusted Foundations
Register the firmware operations for Trusted Foundations if the device
tree indicates it is active on the device.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r-- | Documentation/devicetree/bindings/arm/tegra.txt | 5 | ||||
-rw-r--r-- | arch/arm/mach-tegra/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/tegra.c | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/arm/tegra.txt b/Documentation/devicetree/bindings/arm/tegra.txt index ed9c85334436..558ed4b4ef39 100644 --- a/Documentation/devicetree/bindings/arm/tegra.txt +++ b/Documentation/devicetree/bindings/arm/tegra.txt | |||
@@ -32,3 +32,8 @@ board-specific compatible values: | |||
32 | nvidia,whistler | 32 | nvidia,whistler |
33 | toradex,colibri_t20-512 | 33 | toradex,colibri_t20-512 |
34 | toradex,iris | 34 | toradex,iris |
35 | |||
36 | Trusted Foundations | ||
37 | ------------------------------------------- | ||
38 | Tegra supports the Trusted Foundation secure monitor. See the | ||
39 | "tlm,trusted-foundations" binding's documentation for more details. | ||
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 09e740f58b27..00b85fd9285d 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig | |||
@@ -2,6 +2,7 @@ config ARCH_TEGRA | |||
2 | bool "NVIDIA Tegra" if ARCH_MULTI_V7 | 2 | bool "NVIDIA Tegra" if ARCH_MULTI_V7 |
3 | select ARCH_HAS_CPUFREQ | 3 | select ARCH_HAS_CPUFREQ |
4 | select ARCH_REQUIRE_GPIOLIB | 4 | select ARCH_REQUIRE_GPIOLIB |
5 | select ARCH_SUPPORTS_TRUSTED_FOUNDATIONS | ||
5 | select ARM_GIC | 6 | select ARM_GIC |
6 | select CLKSRC_MMIO | 7 | select CLKSRC_MMIO |
7 | select CLKSRC_OF | 8 | select CLKSRC_OF |
diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c index 73368176c6e8..09a1f8d98ca2 100644 --- a/arch/arm/mach-tegra/tegra.c +++ b/arch/arm/mach-tegra/tegra.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <asm/mach/arch.h> | 40 | #include <asm/mach/arch.h> |
41 | #include <asm/mach/time.h> | 41 | #include <asm/mach/time.h> |
42 | #include <asm/setup.h> | 42 | #include <asm/setup.h> |
43 | #include <asm/trusted_foundations.h> | ||
43 | 44 | ||
44 | #include "apbio.h" | 45 | #include "apbio.h" |
45 | #include "board.h" | 46 | #include "board.h" |
@@ -90,6 +91,7 @@ static void __init tegra_init_cache(void) | |||
90 | 91 | ||
91 | static void __init tegra_init_early(void) | 92 | static void __init tegra_init_early(void) |
92 | { | 93 | { |
94 | of_register_trusted_foundations(); | ||
93 | tegra_apb_io_init(); | 95 | tegra_apb_io_init(); |
94 | tegra_init_fuse(); | 96 | tegra_init_fuse(); |
95 | tegra_cpu_reset_handler_init(); | 97 | tegra_cpu_reset_handler_init(); |