aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikhil Devshatwar2020-01-20 12:51:14 -0600
committerLokesh Vutla2020-01-21 23:47:05 -0600
commit95b73566071ec00e0002bd34acfe5c4d0c4a3b10 (patch)
tree159306d6d9fb75792f02f4ae468606ee66b29a28 /soc/j721e/evm/sec-cfg.c
parente2eadcb4c856a241b227a0b91a1cb955c2d086a1 (diff)
downloadk3-image-gen-95b73566071ec00e0002bd34acfe5c4d0c4a3b10.tar.gz
k3-image-gen-95b73566071ec00e0002bd34acfe5c4d0c4a3b10.tar.xz
k3-image-gen-95b73566071ec00e0002bd34acfe5c4d0c4a3b10.zip
j721e: am65x: sec-cfg: Add otp_config section
Update the common.h headers to add new defines from SYSFW 2019.12. Starting from SYSFW v2019.12, an otp_config section is mandatory in the security config. Otherwise the boot fails. Fix this by adding a section for opt_config with no other host having permission to OTP array. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Diffstat (limited to 'soc/j721e/evm/sec-cfg.c')
-rw-r--r--soc/j721e/evm/sec-cfg.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/soc/j721e/evm/sec-cfg.c b/soc/j721e/evm/sec-cfg.c
index b628d8b34..4392a3188 100644
--- a/soc/j721e/evm/sec-cfg.c
+++ b/soc/j721e/evm/sec-cfg.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * K3 System Firmware Security Configuration Data 2 * K3 System Firmware Security Configuration Data
3 * 3 *
4 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ 4 * Copyright (C) 2019-2020 Texas Instruments Incorporated - http://www.ti.com/
5 * Andreas Dannenberg <dannenberg@ti.com> 5 * Andreas Dannenberg <dannenberg@ti.com>
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
@@ -59,4 +59,16 @@ const struct boardcfg_security j721e_boardcfg_security_data = {
59 }, 59 },
60 .host_hierarchy_entries = {{ 0 } }, 60 .host_hierarchy_entries = {{ 0 } },
61 }, 61 },
62
63 /* OTP access configuration */
64 .otp_config = {
65 .subhdr = {
66 .magic = BOARDCFG_OTP_CFG_MAGIC_NUM,
67 .size = sizeof(struct boardcfg_extended_otp),
68 },
69 /* Host ID 0 is DMSC. This means no host has write access to OTP array */
70 .write_host_id = 0,
71 /* This is an array with 32 entries */
72 .otp_entry = {{ 0 } },
73 },
62}; 74};