ARM: Add board-specific initialization hook for PSCI
Tegra boards will have to initialize power management for the PSCI support this way. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
@@ -75,6 +75,10 @@ void __weak smp_kick_all_cpus(void)
|
|||||||
kick_secondary_cpus_gic(gic_dist_addr);
|
kick_secondary_cpus_gic(gic_dist_addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__weak void psci_board_init(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
int armv7_init_nonsec(void)
|
int armv7_init_nonsec(void)
|
||||||
{
|
{
|
||||||
unsigned int reg;
|
unsigned int reg;
|
||||||
@@ -112,6 +116,8 @@ int armv7_init_nonsec(void)
|
|||||||
for (i = 1; i <= itlinesnr; i++)
|
for (i = 1; i <= itlinesnr; i++)
|
||||||
writel((unsigned)-1, gic_dist_addr + GICD_IGROUPRn + 4 * i);
|
writel((unsigned)-1, gic_dist_addr + GICD_IGROUPRn + 4 * i);
|
||||||
|
|
||||||
|
psci_board_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Relocate secure section before any cpu runs in secure ram.
|
* Relocate secure section before any cpu runs in secure ram.
|
||||||
* smp_kick_all_cpus may enable other cores and runs into secure
|
* smp_kick_all_cpus may enable other cores and runs into secure
|
||||||
|
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
int psci_update_dt(void *fdt);
|
int psci_update_dt(void *fdt);
|
||||||
|
void psci_board_init(void);
|
||||||
#endif /* ! __ASSEMBLY__ */
|
#endif /* ! __ASSEMBLY__ */
|
||||||
|
|
||||||
#endif /* __ARM_PSCI_H__ */
|
#endif /* __ARM_PSCI_H__ */
|
||||||
|
Reference in New Issue
Block a user