Skip to content
Snippets Groups Projects
Commit f4b687d1 authored by Sander Vanheule's avatar Sander Vanheule Committed by Petr Štetiar
Browse files

realtek: use kernel defined halt


If _machine_hang is not defined on MIPS, the kernel will check if the
CPU can enter a more power efficient sleep mode. Since the realtek
platform supports mips32_r2, this should issue a WAIT instruction
instead of a trivial infinite loop.

Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
parent cb41bc50
No related branches found
No related tags found
No related merge requests found
......@@ -59,19 +59,12 @@ static void rtl838x_restart(char *command)
sw_w32(1, RTL838X_RST_GLB_CTRL_1);
}
static void rtl838x_halt(void)
{
pr_info("System halted.\n");
while(1);
}
void __init plat_mem_setup(void)
{
void *dtb;
set_io_port_base(KSEG1);
_machine_restart = rtl838x_restart;
_machine_halt = rtl838x_halt;
if (fw_passed_dtb) /* UHI interface */
dtb = (void *)fw_passed_dtb;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment