bmips: add support for Sercomm AD1018
[openwrt/staging/stintel.git] / target / linux / bmips / image / bcm6328.mk
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 define Device/comtrend_ar-5381u
4 $(Device/bcm63xx-cfe)
5 DEVICE_VENDOR := Comtrend
6 DEVICE_MODEL := AR-5381u
7 CHIP_ID := 6328
8 CFE_BOARD_ID := 96328A-1241N
9 FLASH_MB := 16
10 DEVICE_PACKAGES += $(USB2_PACKAGES) \
11 $(B43_PACKAGES) broadcom-43225-sprom \
12 kmod-leds-bcm6328
13 endef
14 TARGET_DEVICES += comtrend_ar-5381u
15
16 define Device/comtrend_ar-5387un
17 $(Device/bcm63xx-cfe)
18 DEVICE_VENDOR := Comtrend
19 DEVICE_MODEL := AR-5387un
20 CHIP_ID := 6328
21 CFE_BOARD_ID := 96328A-1441N1
22 FLASH_MB := 16
23 DEVICE_PACKAGES += $(USB2_PACKAGES) \
24 $(B43_PACKAGES) broadcom-43225-sprom \
25 kmod-leds-bcm6328
26 endef
27 TARGET_DEVICES += comtrend_ar-5387un
28
29 define Device/sercomm_ad1018
30 $(Device/sercomm-nand)
31 DEVICE_VENDOR := Sercomm
32 DEVICE_MODEL := AD1018
33 CHIP_ID := 6328
34 BLOCKSIZE := 128k
35 PAGESIZE := 2048
36 SUBPAGESIZE := 512
37 VID_HDR_OFFSET := 2048
38 DEVICE_PACKAGES += $(USB2_PACKAGES) \
39 $(B43_PACKAGES) broadcom-43217-sprom \
40 kmod-leds-bcm6328
41 SERCOMM_FSVER := 1001
42 SERCOMM_HWVER := 1415153
43 SERCOMM_SWVER := 3013
44 endef
45 TARGET_DEVICES += sercomm_ad1018