mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
MIPS: Netlogic: Core wakeup changes for XLP2XX
On XLP2xx, wakeup code does not need to enable clock on the core. Update xlp/wakeup.c to handle this. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/5703/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
57ceb4b020
commit
c49e42aba8
1 changed files with 6 additions and 4 deletions
|
@ -58,10 +58,12 @@ static int xlp_wakeup_core(uint64_t sysbase, int node, int core)
|
||||||
|
|
||||||
coremask = (1 << core);
|
coremask = (1 << core);
|
||||||
|
|
||||||
/* Enable CPU clock */
|
/* Enable CPU clock in case of 8xx/3xx */
|
||||||
value = nlm_read_sys_reg(sysbase, SYS_CORE_DFS_DIS_CTRL);
|
if (!cpu_is_xlpii()) {
|
||||||
value &= ~coremask;
|
value = nlm_read_sys_reg(sysbase, SYS_CORE_DFS_DIS_CTRL);
|
||||||
nlm_write_sys_reg(sysbase, SYS_CORE_DFS_DIS_CTRL, value);
|
value &= ~coremask;
|
||||||
|
nlm_write_sys_reg(sysbase, SYS_CORE_DFS_DIS_CTRL, value);
|
||||||
|
}
|
||||||
|
|
||||||
/* Remove CPU Reset */
|
/* Remove CPU Reset */
|
||||||
value = nlm_read_sys_reg(sysbase, SYS_CPU_RESET);
|
value = nlm_read_sys_reg(sysbase, SYS_CPU_RESET);
|
||||||
|
|
Loading…
Reference in a new issue