rk3026: fix boot secondary cpu fail

This commit is contained in:
黄涛
2013-08-03 14:27:51 +08:00
parent fda2986fec
commit 52827dabac
2 changed files with 4 additions and 4 deletions

View File

@@ -189,6 +189,7 @@
#define RK30_CRU_BASE RK2928_CRU_BASE
#define RK30_GRF_BASE RK2928_GRF_BASE
#define RK30_IMEM_BASE RK2928_IMEM_BASE
#define RK30_IMEM_NONCACHED RK2928_IMEM_NONCACHED
#define RK30_PTIMER_BASE RK2928_PTIMER_BASE
#define RK30_ROM_BASE RK2928_ROM_BASE
#define RK30_SCU_BASE RK2928_SCU_BASE

View File

@@ -82,14 +82,13 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle)
for (i = 1; i < ncores; i++)
pmu_set_power_domain(PD_A9_0 + i, false);
memcpy(RK30_IMEM_BASE, rk30_sram_secondary_startup, sz);
flush_icache_range((unsigned long)RK30_IMEM_BASE, (unsigned long)RK30_IMEM_BASE + sz);
outer_clean_range(0, sz);
memcpy(RK30_IMEM_NONCACHED, rk30_sram_secondary_startup, sz);
isb();
dsb();
first = false;
}
dsb_sev();
pmu_set_power_domain(PD_A9_0 + cpu, true);
return 0;