]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Alchemy: Fix reset for MTX-1 and XXS1500
authorFlorian Fainelli <florian@openwrt.org>
Mon, 21 Feb 2011 13:28:02 +0000 (14:28 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 14 Mar 2011 20:07:28 +0000 (21:07 +0100)
commit0f0be5e8e1aadd9493a077e0c512fe1d2e6c363c
treed7f83301bd4d2b54319051899b1ade5c5237005f
parent741a218e0e45a57802c6ae48d7a90f9e75723bb6
MIPS: Alchemy: Fix reset for MTX-1 and XXS1500

Since commit e1fe83a5 (MIPS: Alchemy: get rid of common/reset.c)
Alchemy-based boards use their own reset function. For MTX-1 and XXS1500,
the reset function pokes at the BCSR.SYSTEM_RESET register, but this does
not work. According to Bruno Randolf, this was not tested when written.

Previously, the generic au1000_restart() routine called the board specific
reset function, which for MTX-1 and XXS1500 did not work, but finally made
a jump to the reset vector, which really triggers a system restart. Fix
reboot for both targets by jumping to the reset vector.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2093/
Acked-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/mtx-1/board_setup.c
arch/mips/alchemy/xxs1500/board_setup.c