0065-ramips-prepare-ZBT-WG3526-for-hardware-variants.patch 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. From: Mathias Kresin <dev@kresin.me>
  2. Date: Fri, 7 Apr 2017 23:52:27 +0200
  3. Subject: ramips: prepare ZBT-WG3526 for hardware variants
  4. The ZBT-WG3526 is available with 16 or 32 MByte of flash. Rename the
  5. current supported 16MByte version to indicate which flash size variant
  6. is supported.
  7. Signed-off-by: Mathias Kresin <dev@kresin.me>
  8. Conflicts (Resolved):
  9. target/linux/ramips/image/mt7621.mk
  10. Signed-off-by: Vincent Wiemann <me@bibbl.com>
  11. further adjustments for backport to lede-17.01 branch
  12. Signed-off-by: Andreas Ziegler <github@andreas-ziegler.de>
  13. diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
  14. index b1091f66b2897a19bd01d4a26a1b3647656fa62b..8e27a79fc1744d6bed9db8d930207c418899cab1 100755
  15. --- a/target/linux/ramips/base-files/lib/ramips.sh
  16. +++ b/target/linux/ramips/base-files/lib/ramips.sh
  17. @@ -637,8 +637,8 @@ ramips_board_detect() {
  18. *"ZBT-WG2626")
  19. name="zbt-wg2626"
  20. ;;
  21. - *"ZBT-WG3526")
  22. - name="zbt-wg3526"
  23. + *"ZBT-WG3526 (16M)")
  24. + name="zbt-wg3526-16M"
  25. ;;
  26. *"ZBT-WR8305RT")
  27. name="zbt-wr8305rt"
  28. diff --git a/target/linux/ramips/dts/ZBT-WG3526-16M.dts b/target/linux/ramips/dts/ZBT-WG3526-16M.dts
  29. new file mode 100644
  30. index 0000000000000000000000000000000000000000..fb644502071d6641194c66baf552035937f35669
  31. --- /dev/null
  32. +++ b/target/linux/ramips/dts/ZBT-WG3526-16M.dts
  33. @@ -0,0 +1,15 @@
  34. +/dts-v1/;
  35. +
  36. +#include "ZBT-WG3526.dtsi"
  37. +
  38. +/ {
  39. + model = "ZBT-WG3526 (16M)";
  40. +};
  41. +
  42. +&firmware {
  43. + reg = <0x50000 0xfb0000>;
  44. +};
  45. +
  46. +&status_led {
  47. + label = "zbt-wg3526:green:status";
  48. +};
  49. diff --git a/target/linux/ramips/dts/ZBT-WG3526.dts b/target/linux/ramips/dts/ZBT-WG3526.dts
  50. deleted file mode 100644
  51. index c361bdd827bffdc24405b1a1b191403ebeec46d0..0000000000000000000000000000000000000000
  52. --- a/target/linux/ramips/dts/ZBT-WG3526.dts
  53. +++ /dev/null
  54. @@ -1,15 +0,0 @@
  55. -/dts-v1/;
  56. -
  57. -#include "ZBT-WG3526.dtsi"
  58. -
  59. -/ {
  60. - model = "ZBT-WG3526";
  61. -};
  62. -
  63. -&firmware {
  64. - reg = <0x50000 0xfb0000>;
  65. -};
  66. -
  67. -&status_led {
  68. - label = "zbt-wg3526:green:status";
  69. -};
  70. diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
  71. index 8218bea84410536151a216cd2cc0300369ad977a..cabc86b28eb040f0d1e58d917e6edc4a97e80db7 100644
  72. --- a/target/linux/ramips/image/mt7621.mk
  73. +++ b/target/linux/ramips/image/mt7621.mk
  74. @@ -226,13 +226,14 @@ define Device/zbt-wg2626
  75. endef
  76. TARGET_DEVICES += zbt-wg2626
  77. -define Device/zbt-wg3526
  78. - DTS := ZBT-WG3526
  79. +define Device/zbt-wg3526-16M
  80. + DTS := ZBT-WG3526-16M
  81. IMAGE_SIZE := $(ralink_default_fw_size_16M)
  82. - DEVICE_TITLE := ZBT WG3526
  83. + SUPPORTED_DEVICES += zbt-wg3526
  84. + DEVICE_TITLE := ZBT WG3526 (16MB flash)
  85. DEVICE_PACKAGES := kmod-usb3 kmod-usb-ledtrig-usbport kmod-ata-core kmod-ata-ahci
  86. endef
  87. -TARGET_DEVICES += zbt-wg3526
  88. +TARGET_DEVICES += zbt-wg3526-16M
  89. # FIXME: is this still needed?
  90. define Image/Prepare