15 #include <linux/kernel.h>
18 #include <linux/kexec.h>
23 #include <asm/machdep.h>
32 static void gamecube_spin(
void)
39 static void gamecube_restart(
char *
cmd)
46 static void gamecube_power_off(
void)
52 static void gamecube_halt(
void)
54 gamecube_restart(
NULL);
57 static void __init gamecube_init_early(
void)
62 static int __init gamecube_probe(
void)
64 unsigned long dt_root;
66 dt_root = of_get_flat_dt_root();
67 if (!of_flat_dt_is_compatible(dt_root,
"nintendo,gamecube"))
73 static void gamecube_shutdown(
void)
80 .probe = gamecube_probe,
81 .init_early = gamecube_init_early,
82 .restart = gamecube_restart,
83 .power_off = gamecube_power_off,
84 .halt = gamecube_halt,
89 .machine_shutdown = gamecube_shutdown,
94 { .compatible =
"nintendo,flipper", },
98 static int __init gamecube_device_probe(
void)
100 if (!machine_is(gamecube))
103 of_platform_bus_probe(
NULL, gamecube_of_bus,
NULL);