armv8: sec_firmware: return job ring status as true in TFABOOT
authorPankit Garg <pankit.garg@nxp.com>
Mon, 5 Nov 2018 18:02:19 +0000 (18:02 +0000)
committerYork Sun <york.sun@nxp.com>
Thu, 6 Dec 2018 22:37:19 +0000 (14:37 -0800)
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>
arch/arm/cpu/armv8/sec_firmware.c

index a13c92e246a8a22c0ea6a12e91ee92756acd93b8..8dc0ac92668f2385f92a47ea5d5f40ece24bef2c 100644 (file)
@@ -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;
        }