summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/armv8/sec_firmware.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-04-25 16:11:35 -0400
committerTom Rini <trini@konsulko.com>2017-04-25 16:11:35 -0400
commit7f4ed7cb78c324a7e8b71356f88220cf3efda367 (patch)
treea3895bc8ec76deebc5811a846aa67ca6c65410e1 /arch/arm/include/asm/armv8/sec_firmware.h
parent9fde52a8d4dc48003e328a5d087de049daa8e768 (diff)
parentfedebf0d08a7aa152f8f27de1d40eb036557c11b (diff)
Merge git://git.denx.de/u-boot-fsl-qoriq
Diffstat (limited to 'arch/arm/include/asm/armv8/sec_firmware.h')
-rw-r--r--arch/arm/include/asm/armv8/sec_firmware.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/armv8/sec_firmware.h b/arch/arm/include/asm/armv8/sec_firmware.h
index bcdb1b0072..bc1d97d7a9 100644
--- a/arch/arm/include/asm/armv8/sec_firmware.h
+++ b/arch/arm/include/asm/armv8/sec_firmware.h
@@ -7,12 +7,19 @@
#ifndef __SEC_FIRMWARE_H_
#define __SEC_FIRMWARE_H_
+#define PSCI_INVALID_VER 0xffffffff
+
int sec_firmware_init(const void *, u32 *, u32 *);
int _sec_firmware_entry(const void *, u32 *, u32 *);
bool sec_firmware_is_valid(const void *);
#ifdef CONFIG_SEC_FIRMWARE_ARMV8_PSCI
unsigned int sec_firmware_support_psci_version(void);
unsigned int _sec_firmware_support_psci_version(void);
+#else
+static inline unsigned int sec_firmware_support_psci_version(void)
+{
+ return PSCI_INVALID_VER;
+}
#endif
#endif /* __SEC_FIRMWARE_H_ */