summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2019-09-18 00:15:40 +0300
committerTom Rini <trini@konsulko.com>2019-10-04 19:21:23 +0300
commit29c9db4d98711606c48d130f328f848fa7adae55 (patch)
tree756a8525e6feba9ca563b09531732e6f8ec327ab /board
parentdd2d9899720895881e5c60fb38f91f22c53c97cc (diff)
downloadu-boot-29c9db4d98711606c48d130f328f848fa7adae55.tar.xz
board: ti: am654: Disable TRNG node for HS devices
On HS devices the access to TRNG is restricted on the non-secure ARM side, disable the node in DT to prevent firewall violations. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board')
-rw-r--r--board/ti/am65x/evm.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c
index e01adcd642..ad333ad883 100644
--- a/board/ti/am65x/evm.c
+++ b/board/ti/am65x/evm.c
@@ -96,10 +96,21 @@ int ft_board_setup(void *blob, bd_t *bd)
int ret;
ret = fdt_fixup_msmc_ram(blob, "/interconnect@100000", "sram@70000000");
- if (ret)
+ if (ret) {
printf("%s: fixing up msmc ram failed %d\n", __func__, ret);
+ return ret;
+ }
- return ret;
+#if defined(CONFIG_TI_SECURE_DEVICE)
+ /* Make HW RNG reserved for secure world use */
+ ret = fdt_disable_node(blob, "/interconnect@100000/trng@4e10000");
+ if (ret) {
+ printf("%s: disabling TRGN failed %d\n", __func__, ret);
+ return ret;
+ }
+#endif
+
+ return 0;
}
#endif