aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPankit Garg <pankit.garg@nxp.com>2018-11-05 18:02:19 +0000
committerYork Sun <york.sun@nxp.com>2018-12-06 14:37:19 -0800
commit2e17cb8a42404201298c53fe752327f59db6ff8e (patch)
tree066cd08a99a979767b1178e6cec71509db5219dd /arch
parent339fb297d45fdb98d45c2ea944b40b3e3a63d150 (diff)
downloadu-boot-2e17cb8a42404201298c53fe752327f59db6ff8e.zip
u-boot-2e17cb8a42404201298c53fe752327f59db6ff8e.tar.gz
u-boot-2e17cb8a42404201298c53fe752327f59db6ff8e.tar.bz2
armv8: sec_firmware: return job ring status as true in TFABOOT
Returns job ring status as true in TFABOOT, as one job ring is always reserved. Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Pankit Garg <pankit.garg@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/cpu/armv8/sec_firmware.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/sec_firmware.c b/arch/arm/cpu/armv8/sec_firmware.c
index a13c92e..8dc0ac9 100644
--- a/arch/arm/cpu/armv8/sec_firmware.c
+++ b/arch/arm/cpu/armv8/sec_firmware.c
@@ -348,6 +348,10 @@ unsigned int sec_firmware_support_psci_version(void)
*/
bool sec_firmware_support_hwrng(void)
{
+#ifdef CONFIG_TFABOOT
+ /* return true as TFA has one job ring reserved */
+ return true;
+#endif
if (sec_firmware_addr & SEC_FIRMWARE_RUNNING) {
return true;
}