mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-03 16:04:47 +01:00
Merge "tzt: Enabled exectzt for ipq40xx with dcache off"
This commit is contained in:
commit
8796bb93b3
2 changed files with 15 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue