ath79: add support for Archer C58/C59 v1
[openwrt/openwrt.git] / target / linux / ath79 / image / generic-tp-link.mk
1 include ./common-tp-link.mk
2
3 define Device/tplink_archer-c58-v1
4 $(Device/tplink-safeloader-uimage)
5 ATH_SOC := qca9561
6 IMAGE_SIZE := 7936k
7 DEVICE_TITLE := TP-LINK Archer C58 v1
8 TPLINK_BOARD_ID := ARCHER-C58-V1
9 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9888-ct
10 SUPPORTED_DEVICES += archer-c58-v1
11 endef
12 TARGET_DEVICES += tplink_archer-c58-v1
13
14 define Device/tplink_archer-c59-v1
15 $(Device/tplink-safeloader-uimage)
16 ATH_SOC := qca9561
17 IMAGE_SIZE := 14528k
18 DEVICE_TITLE := TP-LINK Archer C59 v1
19 TPLINK_BOARD_ID := ARCHER-C59-V1
20 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca9888-ct
21 SUPPORTED_DEVICES += archer-c59-v1
22 endef
23 TARGET_DEVICES += tplink_archer-c59-v1
24
25 define Device/tplink_archer-c7-v1
26 $(Device/tplink-8mlzma)
27 ATH_SOC := qca9558
28 DEVICE_TITLE := TP-LINK Archer C7 v1
29 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
30 TPLINK_HWID := 0x75000001
31 endef
32 TARGET_DEVICES += tplink_archer-c7-v1
33
34 define Device/tplink_archer-c7-v2
35 $(Device/tplink-16mlzma)
36 ATH_SOC := qca9558
37 DEVICE_TITLE := TP-LINK Archer C7 v2
38 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
39 TPLINK_HWID := 0xc7000002
40 IMAGES := sysupgrade.bin factory.bin factory-us.bin factory-eu.bin
41 IMAGE/factory-us.bin := append-rootfs | mktplinkfw factory -C US
42 IMAGE/factory-eu.bin := append-rootfs | mktplinkfw factory -C EU
43 endef
44 TARGET_DEVICES += tplink_archer-c7-v2
45
46 define Device/tplink_re450-v2
47 $(Device/tplink)
48 ATH_SOC := qca9563
49 IMAGE_SIZE := 6016k
50 DEVICE_TITLE := TP-LINK RE450 v2
51 DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
52 TPLINK_HWID := 0x0
53 TPLINK_HWREV := 0
54 TPLINK_BOARD_ID := RE450-V2
55 LOADER_TYPE := elf
56 KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header -O
57 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
58 append-metadata | check-size $$$$(IMAGE_SIZE)
59 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
60 endef
61 TARGET_DEVICES += tplink_re450-v2
62
63 define Device/tplink_tl-wdr3600
64 $(Device/tplink-8mlzma)
65 ATH_SOC := ar9344
66 DEVICE_TITLE := TP-LINK TL-WDR3600
67 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
68 TPLINK_HWID := 0x36000001
69 SUPPORTED_DEVICES += tl-wdr3600
70 endef
71 TARGET_DEVICES += tplink_tl-wdr3600
72
73 define Device/tplink_tl-wdr4300
74 $(Device/tplink-8mlzma)
75 ATH_SOC := ar9344
76 DEVICE_TITLE := TP-LINK TL-WDR4300
77 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
78 TPLINK_HWID := 0x43000001
79 SUPPORTED_DEVICES += tl-wdr4300
80 endef
81 TARGET_DEVICES += tplink_tl-wdr4300
82
83 define Device/tplink_tl-wdr4900-v2
84 $(Device/tplink-8mlzma)
85 ATH_SOC := qca9558
86 DEVICE_TITLE := TP-LINK TL-WDR4900 v2
87 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
88 TPLINK_HWID := 0x49000002
89 endef
90 TARGET_DEVICES += tplink_tl-wdr4900-v2
91
92 define Device/tplink_tl-wr1043nd-v1
93 $(Device/tplink-8m)
94 ATH_SOC := ar9132
95 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v1
96 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
97 TPLINK_HWID := 0x10430001
98 SUPPORTED_DEVICES += tl-wr1043nd
99 endef
100 TARGET_DEVICES += tplink_tl-wr1043nd-v1
101
102 define Device/tplink_tl-wr842n-v2
103 $(Device/tplink-8mlzma)
104 ATH_SOC := ar9341
105 DEVICE_TITLE := TP-LINK TL-WR842N/ND v2
106 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
107 TPLINK_HWID := 0x8420002
108 SUPPORTED_DEVICES += tl-wr842n-v2
109 endef
110 TARGET_DEVICES += tplink_tl-wr842n-v2
111
112 define Device/tplink_tl-wr1043nd-v2
113 $(Device/tplink-8mlzma)
114 ATH_SOC := qca9558
115 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v2
116 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
117 TPLINK_HWID := 0x10430002
118 SUPPORTED_DEVICES += tl-wr1043nd-v2
119 endef
120 TARGET_DEVICES += tplink_tl-wr1043nd-v2
121
122 define Device/tplink_tl-wr1043nd-v3
123 $(Device/tplink-8mlzma)
124 ATH_SOC := qca9558
125 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v3
126 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
127 TPLINK_HWID := 0x10430003
128 SUPPORTED_DEVICES += tl-wr1043nd-v3
129 endef
130 TARGET_DEVICES += tplink_tl-wr1043nd-v3
131
132 define Device/tplink_tl-wr1043nd-v4
133 $(Device/tplink)
134 ATH_SOC := qca9563
135 IMAGE_SIZE := 15552k
136 DEVICE_TITLE := TP-LINK TL-WR1043N/ND v4
137 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
138 TPLINK_HWID := 0x10430004
139 TPLINK_BOARD_ID := TLWR1043NDV4
140 KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header -O
141 IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
142 append-metadata | check-size $$$$(IMAGE_SIZE)
143 IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
144 SUPPORTED_DEVICES += tl-wr1043nd-v4
145 endef
146 TARGET_DEVICES += tplink_tl-wr1043nd-v4
147
148 define Device/tplink_tl-wr2543-v1
149 $(Device/tplink-8mlzma)
150 ATH_SOC := ar7242
151 DEVICE_TITLE := TP-LINK TL-WR2543N/ND v1
152 DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
153 TPLINK_HWID := 0x25430001
154 IMAGE/sysupgrade.bin := append-rootfs | mktplinkfw sysupgrade -v 3.13.99 | \
155 append-metadata | check-size $$$$(IMAGE_SIZE)
156 IMAGE/factory.bin := append-rootfs | mktplinkfw factory -v 3.13.99
157 SUPPORTED_DEVICES += tl-wr2543-v1
158 endef
159 TARGET_DEVICES += tplink_tl-wr2543-v1