tzt: Enabled exectzt for ipq40xx with dcache off

Change-Id: I9eec6dc9dc659808757aa1197ae09d708ffbf1c2
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
This commit is contained in:
Gokul Sriram Palanisamy 2018-07-10 12:22:49 +05:30 committed by Gerrit - the friendly Code Review server
parent 84705ce4b0
commit 0564bbf6f9
2 changed files with 15 additions and 1 deletions

View file

@ -15,6 +15,15 @@
#include <command.h>
#include <asm/arch-qca-common/scm.h>
__weak void run_tzt(void *address)
{
char runcmd[128];
dcache_disable();
snprintf(runcmd, sizeof(runcmd), "go 0x%08lX", (ulong)address);
run_command(runcmd, 0);
}
int do_exectzt(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{
uint32_t address;
@ -27,7 +36,7 @@ int do_exectzt(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
address = simple_strtoul(argv[1], NULL, 16);
execute_tzt(address);
run_tzt((void *)address);
return 0;
}

View file

@ -1170,3 +1170,8 @@ int bring_sec_core_up(unsigned int cpuid, unsigned int entry, unsigned int arg)
printf("Enabled CPU%d via psci successfully!\n", cpuid);
return 0;
}
void run_tzt(void *address)
{
execute_tzt(address);
}