static void corgi_restart(char mode, const char *cmd) { if (!machine_is_corgi()) /* Green LED on tells the bootloader to reboot */ gpio_set_value(CORGI_GPIO_LED_GREEN, 1); pxa_restart('h', cmd); }
static void corgi_poweroff(void) { if (!machine_is_corgi()) /* Green LED off tells the bootloader to halt */ gpio_set_value(CORGI_GPIO_LED_GREEN, 0); pxa_restart('h', NULL); }
static void poodle_poweroff(void) { pxa_restart('h', NULL); }
/****************************************************************************** * Machine init ******************************************************************************/ static void spitz_poweroff(void) { pxa_restart(REBOOT_GPIO, NULL); }
static void mioa701_restart(char c, const char *cmd) { mioa701_machine_exit(); pxa_restart('s', cmd); }
static void mioa701_poweroff(void) { mioa701_machine_exit(); pxa_restart('s', NULL); }
/****************************************************************************** * Machine init ******************************************************************************/ static void spitz_poweroff(void) { pxa_restart('g', NULL); }
static void poodle_poweroff(void) { pxa_restart(REBOOT_HARD, NULL); }
static void tosa_poweroff(void) { pxa_restart('g', NULL); }