rk3188: support more cpus

This commit is contained in:
黄涛
2013-01-16 16:05:47 +08:00
parent ccfc60d56d
commit 4344d7abcb
3 changed files with 8 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ int platform_cpu_kill(unsigned int cpu)
*/
for (k = 0; k < 1000; k++) {
if (cpumask_test_cpu(cpu, &dead_cpus)) {
pmu_set_power_domain(PD_A9_1, false);
pmu_set_power_domain(PD_A9_0 + cpu, false);
return 1;
}

View File

@@ -77,8 +77,10 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle)
if (first) {
unsigned long sz = 0x10;
unsigned int i, ncores = scu_get_core_count(RK30_SCU_BASE);
pmu_set_power_domain(PD_A9_1, false);
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);
@@ -88,7 +90,7 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle)
}
dsb_sev();
pmu_set_power_domain(PD_A9_1, true);
pmu_set_power_domain(PD_A9_0 + cpu, true);
return 0;
}

View File

@@ -11,6 +11,9 @@ CFLAGS_common.o += -DTEXT_OFFSET=$(TEXT_OFFSET)
obj-y += ../mach-rk30/devices.o
obj-y += io.o
obj-y += rk_timer.o
obj-$(CONFIG_SMP) += ../mach-rk30/platsmp.o ../mach-rk30/headsmp.o
obj-$(CONFIG_HOTPLUG_CPU) += ../mach-rk30/hotplug.o
obj-$(CONFIG_CPU_IDLE) += ../mach-rk30/cpuidle.o
obj-$(CONFIG_MACH_RK3188_FPGA) += board-rk3188-fpga.o
obj-$(CONFIG_MACH_RK3188_TB) += ../mach-rk30/board-rk3168-tb.o