Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 870168a0 authored by Manuel Lauss's avatar Manuel Lauss Committed by Ralf Baechle
Browse files

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: default avatarManuel Lauss <manuel.lauss@googlemail.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2675/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c78c4882
Loading
Loading
Loading
Loading
+14 −8
Original line number Diff line number Diff line
@@ -158,15 +158,21 @@ static void restore_core_regs(void)

void au_sleep(void)
{
	int cpuid = alchemy_get_cputype();
	if (cpuid != ALCHEMY_CPU_UNKNOWN) {
	save_core_regs();
		if (cpuid <= ALCHEMY_CPU_AU1500)

	switch (alchemy_get_cputype()) {
	case ALCHEMY_CPU_AU1000:
	case ALCHEMY_CPU_AU1500:
	case ALCHEMY_CPU_AU1100:
		alchemy_sleep_au1000();
		else if (cpuid <= ALCHEMY_CPU_AU1200)
		break;
	case ALCHEMY_CPU_AU1550:
	case ALCHEMY_CPU_AU1200:
		alchemy_sleep_au1550();
		restore_core_regs();
		break;
	}

	restore_core_regs();
}

#endif	/* CONFIG_PM */