9 #include <linux/kernel.h>
12 #include <linux/pci.h>
17 #include <linux/ethtool.h>
20 #include <linux/input.h>
32 static struct gpio_led wrt350n_v2_led_pins[] = {
34 .name =
"wrt350nv2:green:power",
38 .name =
"wrt350nv2:green:security",
42 .name =
"wrt350nv2:orange:power",
46 .name =
"wrt350nv2:green:usb",
50 .name =
"wrt350nv2:green:wireless",
57 .leds = wrt350n_v2_led_pins,
65 .platform_data = &wrt350n_v2_led_data,
76 .desc =
"Reset Button",
87 .buttons = wrt350n_v2_buttons,
96 .platform_data = &wrt350n_v2_button_data,
103 static unsigned int wrt350n_v2_mpp_modes[]
__initdata = {
130 #define WRT350N_V2_NOR_BOOT_BASE 0xf4000000
131 #define WRT350N_V2_NOR_BOOT_SIZE SZ_8M
133 static struct mtd_partition wrt350n_v2_nor_flash_partitions[] = {
136 .offset = 0x00000000,
140 .offset = 0x001a0000,
144 .offset = 0x00760000,
148 .offset = 0x007a0000,
152 .offset = 0x007c0000,
159 .parts = wrt350n_v2_nor_flash_partitions,
160 .nr_parts =
ARRAY_SIZE(wrt350n_v2_nor_flash_partitions),
163 static struct resource wrt350n_v2_nor_flash_resource = {
170 .name =
"physmap-flash",
173 .platform_data = &wrt350n_v2_nor_flash_data,
176 .resource = &wrt350n_v2_nor_flash_resource,
186 .port_names[0] =
"lan2",
187 .port_names[1] =
"lan1",
188 .port_names[2] =
"wan",
189 .port_names[3] =
"cpu",
190 .port_names[5] =
"lan3",
191 .port_names[7] =
"lan4",
196 .chip = &wrt350n_v2_switch_chip_data,
199 static void __init wrt350n_v2_init(
void)
248 .map_irq = wrt350n_v2_pci_map_irq,
251 static int __init wrt350n_v2_pci_init(
void)
253 if (machine_is_wrt350n_v2())
262 .atag_offset = 0x100,
263 .init_machine = wrt350n_v2_init,