X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Ffiles%2Farch%2Fmips%2Fath79%2Fmach-wzr-hp-g450h.c;h=5d235c49f4b74014fd023c6584e431447c6c96f9;hp=b5292db54a5f408686dec1223730f72442611c60;hb=318e19ba6755105bb6cc19937d8fff26cbd2cc6f;hpb=1a1121158f8f960cfb93100ad38ecf8f2ca81b9d diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c index b5292db54a..5d235c49f4 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-g450h.c @@ -1,7 +1,7 @@ /* * Buffalo WZR-HP-G450G board support * - * Copyright (C) 2011 Felix Fietkau + * Copyright (C) 2011 Felix Fietkau * Copyright (C) 2008-2012 Gabor Juhos * Copyright (C) 2008 Imre Kaloz * @@ -13,6 +13,7 @@ #include #include #include +#include #include @@ -43,21 +44,13 @@ static struct mtd_partition wzrhpg450h_partitions[] = { .size = 0x0010000, .mask_flags = MTD_WRITEABLE, }, { - .name = "uImage", + .name = "firmware", .offset = 0x0060000, - .size = 0x0100000, - }, { - .name = "rootfs", - .offset = 0x0160000, - .size = 0x1e80000, + .size = 0x1f80000, }, { .name = "user_property", .offset = 0x1fe0000, .size = 0x0020000, - }, { - .name = "firmware", - .offset = 0x0060000, - .size = 0x1f80000, } }; @@ -91,6 +84,11 @@ static struct gpio_led wzrhpg450h_wmac_leds_gpio[] = { .gpio = 14, .active_low = 1, }, + { + .name = "buffalo:green:wireless", + .gpio = 15, + .active_low = 1, + }, }; static struct gpio_keys_button wzrhpg450h_gpio_keys[] __initdata = { @@ -156,11 +154,13 @@ static void __init wzrhpg450h_init(void) ath79_register_eth(0); - ath79_set_usb_power_gpio(16, GPIOF_OUT_INIT_HIGH, "USB power"); + gpio_request_one(16, GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, + "USB power"); ath79_register_usb(); ap91_pci_init(ee, NULL); - ap9x_pci_setup_wmac_led_pin(0, 15); + ap9x_pci_get_wmac_data(0)->tx_gain_buffalo = true; + ap9x_pci_get_wmac_data(1)->tx_gain_buffalo = true; ap9x_pci_setup_wmac_leds(0, wzrhpg450h_wmac_leds_gpio, ARRAY_SIZE(wzrhpg450h_wmac_leds_gpio)); }