diff options
author | Leo Yan <leo.yan@linaro.org> | 2017-09-07 14:56:32 +0800 |
---|---|---|
committer | Leo Yan <leo.yan@linaro.org> | 2017-09-07 16:57:31 +0800 |
commit | e246617b41825e5278ac0057e800afa3b3944fe3 (patch) | |
tree | 00c4aef07d814e06d29a189fe631762a13dc967b /plat/hisilicon/hikey/hikey_pm.c | |
parent | e524d78f9fc904b0e831855145320384e9656a46 (diff) | |
download | trusted-firmware-a-e246617b41825e5278ac0057e800afa3b3944fe3.tar.gz |
Hikey: enable CPU debug module
Every CPU has its own debug module and this module is used by JTAG
debugging and coresight tracing. If without enabling it, it's easily to
introduce lockup issue when we enable debugging features.
This patch is to enable CPU debug module when power on CPU; this allows
connecting to all cores through JTAG and used by kernel coresight
driver.
Signed-off-by: Matthias Welwarsky <maw@sysgo.com>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Diffstat (limited to 'plat/hisilicon/hikey/hikey_pm.c')
-rw-r--r-- | plat/hisilicon/hikey/hikey_pm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plat/hisilicon/hikey/hikey_pm.c b/plat/hisilicon/hikey/hikey_pm.c index c796e8a546..d4dd683e01 100644 --- a/plat/hisilicon/hikey/hikey_pm.c +++ b/plat/hisilicon/hikey/hikey_pm.c @@ -40,7 +40,9 @@ static int hikey_pwr_domain_on(u_register_t mpidr) hisi_ipc_cluster_on(cpu, cluster); hisi_pwrc_set_core_bx_addr(cpu, cluster, hikey_sec_entrypoint); + hisi_pwrc_enable_debug(cpu, cluster); hisi_ipc_cpu_on(cpu, cluster); + return 0; } |