Advertisement
Guest User

Support for Nexx WT1520

a guest
Sep 10th, 2014
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 6.28 KB | None | 0 0
  1. diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
  2. index 1806ff2..01e2363 100755
  3. --- a/target/linux/ramips/base-files/etc/board.d/01_leds
  4. +++ b/target/linux/ramips/base-files/etc/board.d/01_leds
  5. @@ -112,9 +112,6 @@ case $board in
  6.     hlk-rm04)
  7.         set_wifi_led "rt2800pci-phy0::radio"
  8.         ;;
  9. -   nexx-wt1520)
  10. -       set_wifi_led "rt2800pci-phy0::radio"
  11. -       ;;
  12.     all0239-3g|\
  13.     hw550-3g)
  14.         set_usb_led "hw550-3g:green:usb"
  15. diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
  16. index 765d398..e027b3b 100755
  17. --- a/target/linux/ramips/base-files/etc/board.d/02_network
  18. +++ b/target/linux/ramips/base-files/etc/board.d/02_network
  19. @@ -103,7 +103,6 @@ ramips_setup_interfaces()
  20.     dir-320-b1 | \
  21.     dir-615-h1 | \
  22.     hlk-rm04 | \
  23. -   nexx-wt1520 | \
  24.     mzk-w300nh2 | \
  25.     mzk-750dhp)
  26.         ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
  27. diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
  28. index 472da4b..9ad7ccb 100755
  29. --- a/target/linux/ramips/base-files/etc/diag.sh
  30. +++ b/target/linux/ramips/base-files/etc/diag.sh
  31. @@ -63,9 +63,6 @@ get_status_led() {
  32.     hlk-rm04)
  33.         status_led="hlk-rm04:red:power"
  34.         ;;
  35. -   nexx-wt1520)
  36. -       status_led="nexx-wt1520:white:power"
  37. -       ;;
  38.     all0239-3g|\
  39.     hw550-3g)
  40.         status_led="hw550-3g:green:status"
  41. diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
  42. index 0a09225..bb42ace 100755
  43. --- a/target/linux/ramips/base-files/lib/ramips.sh
  44. +++ b/target/linux/ramips/base-files/lib/ramips.sh
  45. @@ -157,9 +157,6 @@ ramips_board_detect() {
  46.     *"HILINK HLK-RM04")
  47.         name="hlk-rm04"
  48.         ;;
  49. -   *"Nexx WT1520")
  50. -       name="nexx-wt1520"
  51. -       ;;
  52.     *"HAME MPR-A1")
  53.         name="mpr-a1"
  54.         ;;
  55. diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
  56. index 8ff2da6..407c218 100755
  57. --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
  58. +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
  59. @@ -52,7 +52,6 @@ platform_check_image() {
  60.     hw550-3g | \
  61.     hg255d | \
  62.     hlk-rm04 | \
  63. -   nexx-wt1520 | \
  64.     ip2202 | \
  65.     m3 | \
  66.     m4 | \
  67. diff --git a/target/linux/ramips/dts/NEXXWT1520.dts b/target/linux/ramips/dts/NEXXWT1520.dts
  68. deleted file mode 100644
  69. index ab85486..0000000
  70. --- a/target/linux/ramips/dts/NEXXWT1520.dts
  71. +++ /dev/null
  72. @@ -1,108 +0,0 @@
  73. -/dts-v1/;
  74. -
  75. -/include/ "rt5350.dtsi"
  76. -
  77. -/ {
  78. -   compatible = "NEXXWT1520", "ralink,rt5350-soc";
  79. -   model = "Nexx WT1520";
  80. -
  81. -   memory@0 {
  82. -       device_type = "memory";
  83. -       reg = <0x0 0x2000000>;
  84. -   };
  85. -
  86. -   chosen {
  87. -       bootargs = "console=ttyS1,57600";
  88. -   };
  89. -
  90. -   palmbus@10000000 {
  91. -       uart@500 {
  92. -           status = "okay";
  93. -       };
  94. -
  95. -       spi@b00 {
  96. -           status = "okay";
  97. -           m25p80@0 {
  98. -               #address-cells = <1>;
  99. -               #size-cells = <1>;
  100. -               compatible = "gd25q64";
  101. -               reg = <0 0>;
  102. -               linux,modalias = "m25p80", "s25fl064k";
  103. -               spi-max-frequency = <10000000>;
  104. -
  105. -               partition@0 {
  106. -                   label = "u-boot";
  107. -                   reg = <0x0 0x30000>;
  108. -                   read-only;
  109. -               };
  110. -
  111. -               partition@30000 {
  112. -                   label = "u-boot-env";
  113. -                   reg = <0x30000 0x10000>;
  114. -                   read-only;
  115. -               };
  116. -
  117. -               factory: partition@40000 {
  118. -                   label = "factory";
  119. -                   reg = <0x40000 0x10000>;
  120. -                   read-only;
  121. -               };
  122. -
  123. -               partition@50000 {
  124. -                   label = "firmware";
  125. -                   reg = <0x50000 0x3b0000>;
  126. -               };
  127. -           };
  128. -       };
  129. -   };
  130. -
  131. -   pinctrl {
  132. -       state_default: pinctrl0 {
  133. -           gpio {
  134. -               ralink,group = "jtag";
  135. -               ralink,function = "gpio";
  136. -           };
  137. -       };
  138. -   };
  139. -
  140. -   ethernet@10100000 {
  141. -       mtd-mac-address = <&factory 0x4>;
  142. -   };
  143. -
  144. -   wmac@10180000 {
  145. -       ralink,mtd-eeprom = <&factory 0>;
  146. -   };
  147. -
  148. -   ehci@101c0000 {
  149. -       status = "okay";
  150. -   };
  151. -
  152. -   ohci@101c1000 {
  153. -       status = "okay";
  154. -   };
  155. -
  156. -   gpio-keys-polled {
  157. -       compatible = "gpio-keys-polled";
  158. -       #address-cells = <1>;
  159. -       #size-cells = <0>;
  160. -       poll-interval = <20>;
  161. -   };
  162. -
  163. -   gpio-leds {
  164. -       compatible = "gpio-leds";
  165. -       power {
  166. -           label = "nexx-wt1520:white:power";
  167. -           gpios = <&gpio0 0 1>;
  168. -       };
  169. -   };
  170. -
  171. -        gpio_export {
  172. -                compatible = "gpio-export";
  173. -                #size-cells = <0>;
  174. -                usb-mode {
  175. -                        gpio-export,name = "usb-mode";
  176. -                        gpio-export,output = <0>;
  177. -                        gpios = <&gpio0 18 0>;
  178. -                };
  179. -        };
  180. -};
  181. diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
  182. index 6f7c51c..35057e4 100644
  183. --- a/target/linux/ramips/image/Makefile
  184. +++ b/target/linux/ramips/image/Makefile
  185. @@ -434,14 +434,6 @@ define BuildFirmware/HLKRM04/initramfs
  186.  endef
  187.  Image/Build/Profile/HLKRM04=$(call BuildFirmware/HLKRM04/$(1),$(1),hlk-rm04,HLKRM04,HLK-RM02)
  188.  
  189. -BuildFirmware/NEXXWT1520/squashfs=$(call BuildFirmware/Default4M/squashfs,$(1),$(2),$(3),$(4))
  190. -define BuildFirmware/NEXXWT1520/initramfs
  191. -   $(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))
  192. -   #mkhilinkfw -e -i$(call imgname,$(1),$(2))-uImage.bin -o $(call imgname,$(1),$(2))-factory.bin;
  193. -endef
  194. -
  195. -Image/Build/Profile/NEXXWT1520=$(call BuildFirmware/NEXXWT1520/$(1),$(1),nexx-wt1520,NEXXWT1520,NEXXWT1520)
  196. -
  197.  Image/Build/Profile/M3=$(call BuildFirmware/Poray4M/$(1),$(1),m3,M3)
  198.  
  199.  Image/Build/Profile/M4=$(call BuildFirmware/PorayDualSize/$(1),$(1),m4,M4)
  200. @@ -606,7 +598,6 @@ define Image/Build/Profile/Default
  201.     $(call Image/Build/Profile/FREESTATION5,$(1))
  202.  #  $(call Image/Build/Profile/HG255D,$(1))
  203.     $(call Image/Build/Profile/HLKRM04,$(1))
  204. -   $(call Image/Build/Profile/NEXXWT1520,$(1))
  205.     $(call Image/Build/Profile/HW550-3G,$(1))
  206.     $(call Image/Build/Profile/IP2202,$(1))
  207.     $(call Image/Build/Profile/M3,$(1))
  208. diff --git a/target/linux/ramips/rt305x/profiles/nexx.mk b/target/linux/ramips/rt305x/profiles/nexx.mk
  209. deleted file mode 100644
  210. index 74edce9..0000000
  211. --- a/target/linux/ramips/rt305x/profiles/nexx.mk
  212. +++ /dev/null
  213. @@ -1,17 +0,0 @@
  214. -#
  215. -# Copyright (C) 2013 OpenWrt.org
  216. -#
  217. -# This is free software, licensed under the GNU General Public License v2.
  218. -# See /LICENSE for more information.
  219. -#
  220. -
  221. -define Profile/NEXXWT1520
  222. -   NAME:=NEXX WT-1520
  223. -endef
  224. -
  225. -define Profile/NEXXWT1520/Description
  226. -   Package set for NEXXWT1520
  227. -endef
  228. -
  229. -$(eval $(call Profile,NEXXWT1520))
  230. -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement