21 #include <linux/kernel.h>
24 #include <linux/reboot.h>
28 #include <linux/export.h>
35 #include <mach/flash.h>
39 #include <mach/hardware.h>
81 static int __init ext_uart_init(
void)
83 if (!machine_is_voiceblue())
90 serial_device.
dev.platform_data = voiceblue_ports;
100 static struct resource voiceblue_flash_resource = {
107 .name =
"physmap-flash",
110 .platform_data = &voiceblue_flash_data,
113 .resource = &voiceblue_flash_resource,
122 static struct resource voiceblue_smc91x_resources[] = {
137 .platform_data = &voiceblue_smc91x_info,
139 .num_resources =
ARRAY_SIZE(voiceblue_smc91x_resources),
140 .resource = voiceblue_smc91x_resources,
144 &voiceblue_flash_device,
145 &voiceblue_smc91x_device,
157 #define MACHINE_PANICED 1
158 #define MACHINE_REBOOTING 2
159 #define MACHINE_REBOOT 4
160 static unsigned long machine_state;
176 .notifier_call = panic_event,
179 static int __init voiceblue_setup(
void)
181 if (!machine_is_voiceblue())
191 static int wdt_gpio_state;
214 wdt_gpio_state = !wdt_gpio_state;
218 static void voiceblue_restart(
char mode,
const char *
cmd)
238 static void __init voiceblue_init(
void)
286 .atag_offset = 0x100,
287 .map_io = omap15xx_map_io,
291 .init_machine = voiceblue_init,
294 .restart = voiceblue_restart,