summaryrefslogtreecommitdiffstats
path: root/arch/arm/firmware
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2019-03-18 01:52:06 +0300
committerThierry Reding <treding@nvidia.com>2019-04-09 16:36:22 +0200
commitebc7c1a26578683a4d12ab3434a92c225a97e240 (patch)
treeb6ecb6a1e0e93953f4b91f679a7d3e44f72668c6 /arch/arm/firmware
parent96446e21d6e9303cce0374af3f4012556dc501ce (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/firmware')
-rw-r--r--arch/arm/firmware/trusted_foundations.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/firmware/trusted_foundations.c b/arch/arm/firmware/trusted_foundations.c
index 720904a43c00..bb2ee73d9e02 100644
--- a/arch/arm/firmware/trusted_foundations.c
+++ b/arch/arm/firmware/trusted_foundations.c
@@ -167,3 +167,8 @@ void of_register_trusted_foundations(void)
panic("Trusted Foundation: missing version-minor property\n");
register_trusted_foundations(&pdata);
}
+
+bool trusted_foundations_registered(void)
+{
+ return firmware_ops == &trusted_foundations_ops;
+}