10 #include <linux/module.h>
15 #include <linux/reboot.h>
20 #define WGT634U_GPIO_LED 3
21 #define WGT634U_GPIO_RESET 2
22 #define WGT634U_GPIO_TP1 7
23 #define WGT634U_GPIO_TP2 6
24 #define WGT634U_GPIO_TP3 5
25 #define WGT634U_GPIO_TP4 4
26 #define WGT634U_GPIO_TP5 1
28 static struct gpio_led wgt634u_leds[] = {
33 .default_trigger =
"heartbeat",
46 .platform_data = &wgt634u_led_data,
83 .parts = wgt634u_partitions,
87 static struct resource wgt634u_flash_resource = {
92 .name =
"physmap-flash",
94 .dev = { .platform_data = &wgt634u_flash_data, },
95 .resource = &wgt634u_flash_resource,
129 static int __init wgt634u_init(
void)
142 if (et0mac[0] == 0x00 &&
143 ((et0mac[1] == 0x09 && et0mac[2] == 0x5b) ||
144 (et0mac[1] == 0x0f && et0mac[2] == 0xb5))) {
159 wgt634u_flash_data.
width = mcore->flash_buswidth;
160 wgt634u_flash_resource.
start = mcore->flash_window;
161 wgt634u_flash_resource.
end = mcore->flash_window
162 + mcore->flash_window_size