mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-05 00:41:17 +01:00
ipq9574: Enable multicore
Change-Id: I90f0cfdb7e013763e6869cf9a704724dd3ec729d Signed-off-by: anusha <anusharao@codeaurora.org>
This commit is contained in:
parent
81171280e0
commit
3179b10e0a
2 changed files with 34 additions and 0 deletions
|
|
@ -726,3 +726,30 @@ void fdt_fixup_auto_restart(void *blob)
|
|||
return;
|
||||
}
|
||||
|
||||
int is_secondary_core_off(unsigned int cpuid)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = __invoke_psci_fn_smc(ARM_PSCI_TZ_FN_AFFINITY_INFO, cpuid, 0, 0);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
void bring_secondary_core_down(unsigned int state)
|
||||
{
|
||||
__invoke_psci_fn_smc(ARM_PSCI_TZ_FN_CPU_OFF, state, 0, 0);
|
||||
}
|
||||
|
||||
int bring_sec_core_up(unsigned int cpuid, unsigned int entry, unsigned int arg)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = __invoke_psci_fn_smc(ARM_PSCI_TZ_FN_CPU_ON, cpuid, entry, arg);
|
||||
if (err) {
|
||||
printf("Enabling CPU%d via psci failed!\n", cpuid);
|
||||
return -1;
|
||||
}
|
||||
|
||||
printf("Enabled CPU%d via psci successfully!\n", cpuid);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,6 +101,13 @@
|
|||
#define CONFIG_IPQ_NO_MACS 6
|
||||
#define CONFIG_ENV_IS_IN_SPI_FLASH 1
|
||||
#define CONFIG_ENV_SECT_SIZE (64 * 1024)
|
||||
|
||||
#define CONFIG_SMP_CMD_SUPPORT
|
||||
|
||||
#ifdef CONFIG_SMP_CMD_SUPPORT
|
||||
#define NR_CPUS 4
|
||||
#endif
|
||||
|
||||
/*
|
||||
* IPQ_TFTP_MIN_ADDR: Starting address of Linux HLOS region.
|
||||
* CONFIG_TZ_END_ADDR: Ending address of Trust Zone and starting
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue