diff --git a/target/linux/ath79/dts/ar9344_nec_wf1200hp2.dts b/target/linux/ath79/dts/ar9344_nec_wf1200hp2.dts new file mode 100644 index 0000000000..45c7e0bd74 --- /dev/null +++ b/target/linux/ath79/dts/ar9344_nec_wf1200hp2.dts @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "ar9344_nec_wf1200.dtsi" + +/ { + compatible = "nec,wf1200hp2", "qca,ar9344"; + model = "NEC Aterm WF1200HP2"; +}; diff --git a/target/linux/ath79/image/lzma-loader/src/board.c b/target/linux/ath79/image/lzma-loader/src/board.c index 5fbb4bb821..ffe33cb90d 100644 --- a/target/linux/ath79/image/lzma-loader/src/board.c +++ b/target/linux/ath79/image/lzma-loader/src/board.c @@ -220,6 +220,7 @@ static inline void huawei_ap_init(void) {} #endif #if defined(CONFIG_BOARD_NEC_WF1200HP) || \ + defined(CONFIG_BOARD_NEC_WF1200HP2) || \ defined(CONFIG_BOARD_NEC_WG1400HP) || \ defined(CONFIG_BOARD_NEC_WG1800HP) || \ defined(CONFIG_BOARD_NEC_WG1800HP2) || \ @@ -264,6 +265,7 @@ static inline void nec_aterm_reset_common(void) #endif #if defined(CONFIG_BOARD_NEC_WF1200HP) || \ + defined(CONFIG_BOARD_NEC_WF1200HP2) || \ defined(CONFIG_BOARD_NEC_WG600HP) || \ defined(CONFIG_BOARD_NEC_WR8750N) || \ defined(CONFIG_BOARD_NEC_WR9500N) diff --git a/target/linux/ath79/image/tiny.mk b/target/linux/ath79/image/tiny.mk index d8e127d20b..951c9aa48d 100644 --- a/target/linux/ath79/image/tiny.mk +++ b/target/linux/ath79/image/tiny.mk @@ -134,6 +134,19 @@ define Device/nec_wf1200hp endef TARGET_DEVICES += nec_wf1200hp +define Device/nec_wf1200hp2 + DEVICE_MODEL := Aterm WF1200HP2 + SOC := ar9344 + BLOCKSIZE := 4k + IMAGE_SIZE := 7936k + NEC_FW_TYPE := H053 + $(Device/nec-netbsd-aterm) + DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct \ + -uboot-envtools + UBOOT_PATH := $$(STAGING_DIR_IMAGE)/$$(SOC)_nec_aterm_fe-u-boot.bin +endef +TARGET_DEVICES += nec_wf1200hp2 + define Device/nec_wg600hp DEVICE_MODEL := Aterm WG600HP SOC := ar9344 diff --git a/target/linux/ath79/tiny/base-files/etc/board.d/02_network b/target/linux/ath79/tiny/base-files/etc/board.d/02_network index 991d39daee..608b6b7f86 100644 --- a/target/linux/ath79/tiny/base-files/etc/board.d/02_network +++ b/target/linux/ath79/tiny/base-files/etc/board.d/02_network @@ -72,7 +72,8 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth1" "4:lan:1" ;; - nec,wf1200hp) + nec,wf1200hp|\ + nec,wf1200hp2) ucidef_set_interface_wan "eth1" ucidef_add_switch "switch0" \ "0@eth0" "2:lan:3" "3:lan:2" "4:lan:1" diff --git a/target/linux/ath79/tiny/base-files/lib/upgrade/platform.sh b/target/linux/ath79/tiny/base-files/lib/upgrade/platform.sh index 5829c84c05..5d60ecaec9 100644 --- a/target/linux/ath79/tiny/base-files/lib/upgrade/platform.sh +++ b/target/linux/ath79/tiny/base-files/lib/upgrade/platform.sh @@ -13,6 +13,7 @@ platform_check_image() { case "$board" in nec,wf1200hp|\ + nec,wf1200hp2|\ nec,wg600hp|\ nec,wr8750n|\ nec,wr9500n)