aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLokesh Vutla2019-08-28 03:59:46 -0500
committerAndreas Dannenberg2019-08-29 13:17:27 -0500
commit95a2b413d5dcd843154cb2c40725e3cb738696e4 (patch)
tree69badc3fc271ffc7cda48ebf58ce33d4242356ac /soc/am65x/evm
parent38a82e00f84efdf381dba001fff75e8411898e99 (diff)
downloadk3-image-gen-95a2b413d5dcd843154cb2c40725e3cb738696e4.tar.gz
k3-image-gen-95a2b413d5dcd843154cb2c40725e3cb738696e4.tar.xz
k3-image-gen-95a2b413d5dcd843154cb2c40725e3cb738696e4.zip
build: Add support for enabling sysfw traces
Sysfw provides a provision for enabling sysfw traces while booting. This has to be enabled in board-cfg. In order to ease debug, enable the sysfw trace support with the help of a build option. Use the option to enable it: $ make ENABLE_TRACE=1 Reported-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Diffstat (limited to 'soc/am65x/evm')
-rw-r--r--soc/am65x/evm/board-cfg.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/soc/am65x/evm/board-cfg.c b/soc/am65x/evm/board-cfg.c
index 5cec0e4c7..f007e69e6 100644
--- a/soc/am65x/evm/board-cfg.c
+++ b/soc/am65x/evm/board-cfg.c
@@ -78,5 +78,16 @@ const struct boardcfg am65_boardcfg_data = {
78 .magic = BOARDCFG_DBG_CFG_MAGIC_NUM, 78 .magic = BOARDCFG_DBG_CFG_MAGIC_NUM,
79 .size = sizeof(struct boardcfg_dbg_cfg), 79 .size = sizeof(struct boardcfg_dbg_cfg),
80 }, 80 },
81#ifdef ENABLE_TRACE
82 .trace_dst_enables = BOARDCFG_TRACE_DST_UART0 |
83 BOARDCFG_TRACE_DST_ITM |
84 BOARDCFG_TRACE_DST_MEM,
85 .trace_src_enables = BOARDCFG_TRACE_SRC_PM |
86 BOARDCFG_TRACE_SRC_RM |
87 BOARDCFG_TRACE_SRC_SEC |
88 BOARDCFG_TRACE_SRC_BASE |
89 BOARDCFG_TRACE_SRC_USER |
90 BOARDCFG_TRACE_SRC_SUPR,
91#endif
81 }, 92 },
82}; 93};