diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2019-03-18 01:52:06 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-04-09 16:36:22 +0200 |
commit | ebc7c1a26578683a4d12ab3434a92c225a97e240 (patch) | |
tree | b6ecb6a1e0e93953f4b91f679a7d3e44f72668c6 /arch/arm/include | |
parent | 96446e21d6e9303cce0374af3f4012556dc501ce (diff) |
ARM: trusted_foundations: Provide information about whether firmware is registered
Add a helper that provides information about whether Trusted Foundations
firmware operations have been registered.
Tested-by: Robert Yang <decatf@gmail.com>
Tested-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/trusted_foundations.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/trusted_foundations.h b/arch/arm/include/asm/trusted_foundations.h index 201ceb259e71..54513c533811 100644 --- a/arch/arm/include/asm/trusted_foundations.h +++ b/arch/arm/include/asm/trusted_foundations.h @@ -31,6 +31,7 @@ #include <linux/of.h> #include <linux/cpu.h> #include <linux/smp.h> +#include <linux/types.h> #include <asm/hardware/cache-l2x0.h> #include <asm/outercache.h> @@ -50,6 +51,7 @@ struct trusted_foundations_platform_data { void register_trusted_foundations(struct trusted_foundations_platform_data *pd); void of_register_trusted_foundations(void); +bool trusted_foundations_registered(void); #else /* CONFIG_TRUSTED_FOUNDATIONS */ static inline void tf_dummy_write_sec(unsigned long val, unsigned int reg) @@ -84,6 +86,11 @@ static inline void of_register_trusted_foundations(void) if (of_find_compatible_node(NULL, NULL, "tlm,trusted-foundations")) register_trusted_foundations(NULL); } + +static inline bool trusted_foundations_registered(void) +{ + return false; +} #endif /* CONFIG_TRUSTED_FOUNDATIONS */ #endif |