This patch corrects an issue with the wifi for the ARV4518PW in
Attitude Adjustment that involves the PCI bus configuration in this
board. Because the maintainer of the Lantiq target has much better
knowledge about the PCI implementation of the Danube SoC may be this
patch is not correct.
Once approved and applied this ticket should be closed:
https://dev.openwrt.org/ticket/11704

Also changes the initial LEDs behavior in the mentioned router.

This is my first patch so please, tell me the mistakes to improve.

Signed-off-by: José Vázquez Fernández <[email protected]>

diff -urN a/mach-arv.c b/mach-arv.c
--- a/mach-arv.c        2013-04-12 15:43:19.000000000 +0200
+++ b/mach-arv.c        2013-04-13 00:26:21.000000000 +0200
@@ -153,16 +153,16 @@
 static struct gpio_led
 arv4518pw_gpio_leds[] __initdata = {
        { .name = "soc:green:power", .gpio = 3, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:green:adsl", .gpio = 4, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:green:internet", .gpio = 5, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:green:wifi", .gpio = 6, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:yellow:wps", .gpio = 7, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:red:fail", .gpio = 8, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:green:usb", .gpio = 19, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:green:voip", .gpio = 100, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:green:fxs1", .gpio = 101, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:green:fxs2", .gpio = 102, .active_low =
1,.default_trigger = "default-on" },
-       { .name = "soc:green:fxo", .gpio = 103, .active_low =
1,.default_trigger = "default-on" },
+       { .name = "soc:green:adsl", .gpio = 4, .active_low = 1, },
+       { .name = "soc:green:internet", .gpio = 5, .active_low = 1, },
+       { .name = "soc:green:wifi", .gpio = 6, .active_low = 1, },
+       { .name = "soc:yellow:wps", .gpio = 7, .active_low = 1, },
+       { .name = "soc:red:fail", .gpio = 8, .active_low = 1, },
+       { .name = "soc:green:usb", .gpio = 19, .active_low = 1, },
+       { .name = "soc:green:voip", .gpio = 100, .active_low = 1, },
+       { .name = "soc:green:fxs1", .gpio = 101, .active_low = 1, },
+       { .name = "soc:green:fxs2", .gpio = 102, .active_low = 1, },
+       { .name = "soc:green:fxo", .gpio = 103, .active_low = 1, },
 };

 static struct gpio_keys_button
@@ -529,7 +529,7 @@
        ltq_register_gpio_keys_polled(-1, LTQ_KEYS_POLL_INTERVAL,
                                ARRAY_SIZE(arv4518pw_gpio_keys),
arv4518pw_gpio_keys);
        arv_load_nor(0x400000);
-       ltq_pci_data.gpio = PCI_GNT2 | PCI_REQ2;
+       // ltq_pci_data.gpio = PCI_GNT2 | PCI_REQ2;
        ltq_register_pci(&ltq_pci_data);
        xway_register_dwc(ARV4518PW_USB);
        arv_register_ethernet(ARV4518PW_MAC_ADDR);
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to