Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a5de3ae authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Stephen Warren
Browse files

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: default avatarAlexandre Courbot <acourbot@nvidia.com>
Reviewed-by: default avatarTomasz Figa <t.figa@samsung.com>
Reviewed-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent fb2947c7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -32,3 +32,8 @@ board-specific compatible values:
  nvidia,whistler
  toradex,colibri_t20-512
  toradex,iris

Trusted Foundations
-------------------------------------------
Tegra supports the Trusted Foundation secure monitor. See the
"tlm,trusted-foundations" binding's documentation for more details.
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ config ARCH_TEGRA
	bool "NVIDIA Tegra" if ARCH_MULTI_V7
	select ARCH_HAS_CPUFREQ
	select ARCH_REQUIRE_GPIOLIB
	select ARCH_SUPPORTS_TRUSTED_FOUNDATIONS
	select ARM_GIC
	select CLKSRC_MMIO
	select CLKSRC_OF
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
#include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include <asm/setup.h>
#include <asm/trusted_foundations.h>

#include "apbio.h"
#include "board.h"
@@ -90,6 +91,7 @@ static void __init tegra_init_cache(void)

static void __init tegra_init_early(void)
{
	of_register_trusted_foundations();
	tegra_apb_io_init();
	tegra_init_fuse();
	tegra_cpu_reset_handler_init();