Guest User

Untitled

a guest
May 20th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. Index: base-files/etc/uci-defaults/leds
  2. ===================================================================
  3. --- base-files/etc/uci-defaults/leds (revision 29685)
  4. +++ base-files/etc/uci-defaults/leds (working copy)
  5. @@ -95,6 +95,8 @@
  6. set_led_wlan "wifi" "wifi" "soc:green:wifi" "phy0radio"
  7. set_led_netdev "online" "online" "soc:green:online" "nas0"
  8. set_led_usbdev "usb" "USB" "soc:green:usb" "1-1"
  9. + set_led_default "adsl" "adsl" "soc:green:adsl" "0"
  10. + set_led_default "voip" "voip" "soc:green:voip" "0"
  11. set_led_default "phone1" "fxs1" "soc:green:phone1" "0"
  12. set_led_default "phone2" "fxs2" "soc:green:phone2" "0"
  13. set_led_default "line" "line" "soc:green:line" "0"
  14. Index: files-3.1/arch/mips/include/asm/mach-lantiq/dev-gpio-leds.h
  15. ===================================================================
  16. --- files-3.1/arch/mips/include/asm/mach-lantiq/dev-gpio-leds.h (revision 29685)
  17. +++ files-3.1/arch/mips/include/asm/mach-lantiq/dev-gpio-leds.h (working copy)
  18. @@ -9,8 +9,8 @@
  19. * by the Free Software Foundation.
  20. */
  21.  
  22. -#ifndef _LANTIQ_DEV_LEDS_GPIO_H
  23. -#define _LANTIQ_DEV_LEDS_GPIO_H
  24. +#ifndef _LANTIQ_DEV_GPIO_LEDS_H
  25. +#define _LANTIQ_DEV_GPIO_LEDS_H
  26.  
  27. #include <linux/leds.h>
  28.  
  29. @@ -18,4 +18,4 @@
  30. unsigned num_leds,
  31. struct gpio_led *leds) __init;
  32.  
  33. -#endif /* _LANTIQ_DEV_LEDS_GPIO_H */
  34. +#endif /* _LANTIQ_DEV_GPIO_LEDS_H */
  35. Index: files-3.1/arch/mips/lantiq/xway/mach-gigasx76x.c
  36. ===================================================================
  37. --- files-3.1/arch/mips/lantiq/xway/mach-gigasx76x.c (revision 29685)
  38. +++ files-3.1/arch/mips/lantiq/xway/mach-gigasx76x.c (working copy)
  39. @@ -54,25 +54,20 @@
  40. {
  41. .name = "linux",
  42. .offset = 0x020000,
  43. - .size = 0x7d0000,
  44. + .size = 0x7e0000,
  45. },
  46. - {
  47. - .name = "board_config",
  48. - .offset = 0x7f0000,
  49. - .size = 0x010000,
  50. - },
  51. };
  52.  
  53. static struct gpio_led
  54. gigasx76x_gpio_leds[] __initdata = {
  55. -
  56. - { .name = "soc:green:usb", .gpio = 202, },
  57. - { .name = "soc:green:wifi", .gpio = 203, },
  58. - { .name = "soc:green:phone2", .gpio = 204, },
  59. - { .name = "soc:green:phone1", .gpio = 205, },
  60. - { .name = "soc:green:line", .gpio = 206, },
  61. - { .name = "soc:green:online", .gpio = 207, },
  62. - { .name = "soc:green:voip", .gpio = 208, },
  63. + { .name = "soc:green:voip", .gpio = 216, },
  64. + { .name = "soc:green:adsl", .gpio = 217, },
  65. + { .name = "soc:green:usb", .gpio = 218, },
  66. + { .name = "soc:green:wifi", .gpio = 219, },
  67. + { .name = "soc:green:phone2", .gpio = 220, },
  68. + { .name = "soc:green:phone1", .gpio = 221, },
  69. + { .name = "soc:green:line", .gpio = 222, },
  70. + { .name = "soc:green:online", .gpio = 223, },
  71. };
  72.  
  73. static struct gpio_keys_button
  74. @@ -80,19 +75,19 @@
  75. {
  76. .desc = "wps",
  77. .type = EV_KEY,
  78. - .code = BTN_0,
  79. + .code = KEY_WPS_BUTTON,
  80. .debounce_interval = LTQ_KEYS_DEBOUNCE_INTERVAL,
  81. .gpio = 22,
  82. .active_low = 1,
  83. },
  84. - /*{
  85. - .desc = "factory",
  86. + {
  87. + .desc = "reset",
  88. .type = EV_KEY,
  89. - .code = BTN_1,
  90. + .code = BTN_0,
  91. .debounce_interval = LTQ_KEYS_DEBOUNCE_INTERVAL,
  92. .gpio = 14,
  93. - .active_low = 1,
  94. - },*/
  95. + .active_low = 0,
  96. + },
  97. };
  98.  
  99. static struct physmap_flash_data gigasx76x_flash_data = {
  100. @@ -228,7 +223,6 @@
  101. ltq_register_nor(&gigasx76x_flash_data);
  102. ltq_register_pci(&ltq_pci_data);
  103. ltq_register_tapi();
  104. - ltq_register_madwifi_eep(GIGASX76X_MADWIFI_ADDR);
  105. ltq_add_device_gpio_leds(-1, ARRAY_SIZE(gigasx76x_gpio_leds), gigasx76x_gpio_leds);
  106. ltq_register_gpio_keys_polled(-1, LTQ_KEYS_POLL_INTERVAL, ARRAY_SIZE(gigasx76x_gpio_keys), gigasx76x_gpio_keys);
  107. ltq_register_ath5k(gigasx76x_ath5k_eeprom_data, gigasx76x_ath5k_eeprom_mac);
Add Comment
Please, Sign In to add comment