mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
MIPS: Alchemy: Include Au1100 in PM code.
The current code forgets the Au1100 when looking for the correct method to suspend the chip. Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com> To: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2675/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
c78c488273
commit
870168a031
1 changed files with 14 additions and 8 deletions
|
@ -158,15 +158,21 @@ static void restore_core_regs(void)
|
||||||
|
|
||||||
void au_sleep(void)
|
void au_sleep(void)
|
||||||
{
|
{
|
||||||
int cpuid = alchemy_get_cputype();
|
save_core_regs();
|
||||||
if (cpuid != ALCHEMY_CPU_UNKNOWN) {
|
|
||||||
save_core_regs();
|
switch (alchemy_get_cputype()) {
|
||||||
if (cpuid <= ALCHEMY_CPU_AU1500)
|
case ALCHEMY_CPU_AU1000:
|
||||||
alchemy_sleep_au1000();
|
case ALCHEMY_CPU_AU1500:
|
||||||
else if (cpuid <= ALCHEMY_CPU_AU1200)
|
case ALCHEMY_CPU_AU1100:
|
||||||
alchemy_sleep_au1550();
|
alchemy_sleep_au1000();
|
||||||
restore_core_regs();
|
break;
|
||||||
|
case ALCHEMY_CPU_AU1550:
|
||||||
|
case ALCHEMY_CPU_AU1200:
|
||||||
|
alchemy_sleep_au1550();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
restore_core_regs();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_PM */
|
#endif /* CONFIG_PM */
|
||||||
|
|
Loading…
Reference in a new issue