Merge "tzt: Enabled exectzt for ipq40xx with dcache off"

This commit is contained in:
Linux Build Service Account 2018-07-10 07:04:30 -07:00 committed by Gerrit - the friendly Code Review server
commit 8796bb93b3
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

@ -1181,3 +1181,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);
}