diff --git a/target/linux/ath79/dts/ar9344_nec_wg600hp.dts b/target/linux/ath79/dts/ar9344_nec_wg600hp.dts new file mode 100644 index 00000000000000..e586dce7ca8d2a --- /dev/null +++ b/target/linux/ath79/dts/ar9344_nec_wg600hp.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "ar9344_nec_aterm.dtsi" + +/ { + compatible = "nec,wg600hp", "qca,ar9344"; + model = "NEC Aterm WG600HP"; +}; + +&partitions { + partition@40000 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x040000 0x7c0000>; + }; +}; diff --git a/target/linux/ath79/image/lzma-loader/src/board.c b/target/linux/ath79/image/lzma-loader/src/board.c index c38dc14558c7d4..0d92f3174b5995 100644 --- a/target/linux/ath79/image/lzma-loader/src/board.c +++ b/target/linux/ath79/image/lzma-loader/src/board.c @@ -213,7 +213,8 @@ static inline void huawei_ap_init(void) static inline void huawei_ap_init(void) {} #endif -#if defined(CONFIG_BOARD_NEC_WR8750N) || \ +#if defined(CONFIG_BOARD_NEC_WG600HP) || \ + defined(CONFIG_BOARD_NEC_WR8750N) || \ defined(CONFIG_BOARD_NEC_WR9500N) #define AR934X_PLL_SWITCH_CLK_CTRL_REG 0x24 diff --git a/target/linux/ath79/image/tiny.mk b/target/linux/ath79/image/tiny.mk index d80ffa94003f42..53111119d8875b 100644 --- a/target/linux/ath79/image/tiny.mk +++ b/target/linux/ath79/image/tiny.mk @@ -121,6 +121,16 @@ define Device/engenius_enh202-v1 endef TARGET_DEVICES += engenius_enh202-v1 +define Device/nec_wg600hp + DEVICE_MODEL := Aterm WG600HP + SOC := ar9344 + BLOCKSIZE := 4k + IMAGE_SIZE := 7936k + NEC_FW_TYPE := H044 + $(Device/nec-netbsd-aterm) +endef +TARGET_DEVICES += nec_wg600hp + define Device/nec_wr8750n SOC := ar9344 DEVICE_MODEL := Aterm WR8750N 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 e11c37453e7341..a204e820ca24ab 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 @@ -69,6 +69,7 @@ ath79_setup_interfaces() ucidef_add_switch "switch0" \ "0@eth1" "4:lan:1" ;; + nec,wg600hp|\ nec,wr8750n|\ nec,wr9500n|\ tplink,tl-wr941n-v7-cn) @@ -154,6 +155,7 @@ ath79_setup_macs() ubnt,picostation-m) label_mac=$(cat /sys/class/ieee80211/phy0/macaddress) ;; + nec,wg600hp|\ nec,wr8750n|\ nec,wr9500n) wan_mac=$(mtd_get_mac_binary config 0xc) 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 19ddd29a1d4d40..8fc0efcfbdbb73 100644 --- a/target/linux/ath79/tiny/base-files/lib/upgrade/platform.sh +++ b/target/linux/ath79/tiny/base-files/lib/upgrade/platform.sh @@ -12,6 +12,7 @@ platform_check_image() { local board=$(board_name) case "$board" in + nec,wg600hp|\ nec,wr8750n|\ nec,wr9500n) local uboot_mtd=$(find_mtd_part "bootloader")