board: ti: am654: Disable SA2UL node for HS devices
authorAndrew F. Davis <afd@ti.com>
Tue, 9 Jun 2020 19:14:22 +0000 (15:14 -0400)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 16 Jun 2020 11:30:02 +0000 (17:00 +0530)
On HS devices the access to SA2UL is restricted on the non-secure
ARM side, disable the node in DT to prevent firewall violations.
We used to only disable the TRNG but now that we have full SA2UL
support in Linux, in which TRNG is a sub-module, disable both
by disabling the parent SA2UL node.

Signed-off-by: Andrew F. Davis <afd@ti.com>
board/ti/am65x/evm.c

index a22900d..20b75ba 100644 (file)
@@ -108,10 +108,10 @@ int ft_board_setup(void *blob, bd_t *bd)
        }
 
 #if defined(CONFIG_TI_SECURE_DEVICE)
-       /* Make HW RNG reserved for secure world use */
-       ret = fdt_disable_node(blob, "/interconnect@100000/trng@4e10000");
+       /* Make Crypto HW reserved for secure world use */
+       ret = fdt_disable_node(blob, "/interconnect@100000/crypto@4E00000");
        if (ret)
-               printf("%s: disabling TRGN failed %d\n", __func__, ret);
+               printf("%s: disabling SA2UL failed %d\n", __func__, ret);
 #endif
 
        return 0;