Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/mv/armada38x/armada38x_mp.c
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void | void | ||||
platform_mp_setmaxid(void) | platform_mp_setmaxid(void) | ||||
{ | { | ||||
/* Armada38x family supports maximum 2 cores */ | /* Armada38x family supports maximum 2 cores */ | ||||
mp_ncpus = platform_cnt_cpus(); | mp_ncpus = platform_cnt_cpus(); | ||||
mp_maxid = 1; | mp_maxid = mp_ncpus - 1; | ||||
} | } | ||||
void | void | ||||
platform_mp_start_ap(void) | platform_mp_start_ap(void) | ||||
{ | { | ||||
int rv; | int rv; | ||||
/* Write secondary entry address to PMSU register */ | /* Write secondary entry address to PMSU register */ | ||||
rv = pmsu_boot_secondary_cpu(); | rv = pmsu_boot_secondary_cpu(); | ||||
if (rv != 0) | if (rv != 0) | ||||
return; | return; | ||||
/* Release CPU1 from reset */ | /* Release CPU1 from reset */ | ||||
cpu_reset_deassert(); | cpu_reset_deassert(); | ||||
} | } |