Merge Official Source

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-05-21 20:12:09 +08:00
commit 88cac18bd6
68 changed files with 1028 additions and 453 deletions

View File

@ -410,7 +410,7 @@ endef
define Build/netgear-dni
$(STAGING_DIR_HOST)/bin/mkdniimg \
-B $(NETGEAR_BOARD_ID) -v $(VERSION_DIST).$(firstword $(subst -, ,$(REVISION))) \
-B $(NETGEAR_BOARD_ID) -v $(shell cat $(VERSION_DIST)| sed -e 's/[[:space:]]/-/g').$(firstword $(subst -, ,$(REVISION))) \
$(if $(NETGEAR_HW_ID),-H $(NETGEAR_HW_ID)) \
-r "$(1)" \
-i $@ -o $@.new
@ -423,7 +423,7 @@ define Build/netgear-encrypted-factory
--output-file $@ \
--model $(NETGEAR_ENC_MODEL) \
--region $(NETGEAR_ENC_REGION) \
--version V1.0.0.0.$(VERSION_DIST).$(firstword $(subst -, ,$(REVISION))) \
--version V1.0.0.0.$(shell cat $(VERSION_DIST)| sed -e 's/[[:space:]]/-/g').$(firstword $(subst -, ,$(REVISION))) \
--encryption-block-size 0x20000 \
--openssl-bin "$(STAGING_DIR_HOST)/bin/openssl" \
--key 6865392d342b4d212964363d6d7e7765312c7132613364316e26322a5a5e2538 \
@ -588,6 +588,7 @@ define Build/tplink-v2-image
endef
define Build/uImage
$(if $(UIMAGE_TIME),SOURCE_DATE_EPOCH="$(UIMAGE_TIME)") \
mkimage \
-A $(LINUX_KARCH) \
-O linux \

View File

@ -405,6 +405,7 @@ define Device/Init
BOARD_NAME :=
UIMAGE_MAGIC :=
UIMAGE_NAME :=
UIMAGE_TIME :=
DEVICE_COMPAT_VERSION := 1.0
DEVICE_COMPAT_MESSAGE :=
SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
@ -425,7 +426,7 @@ DEFAULT_DEVICE_VARS := \
DEVICE_DTS_CONFIG DEVICE_DTS_DELIMITER DEVICE_DTS_DIR DEVICE_DTS_OVERLAY \
DEVICE_DTS_LOADADDR \
DEVICE_FDT_NUM DEVICE_IMG_PREFIX SOC BOARD_NAME UIMAGE_MAGIC UIMAGE_NAME \
SUPPORTED_DEVICES IMAGE_METADATA KERNEL_ENTRY KERNEL_LOADADDR \
UIMAGE_TIME SUPPORTED_DEVICES IMAGE_METADATA KERNEL_ENTRY KERNEL_LOADADDR \
UBOOT_PATH IMAGE_SIZE \
FACTORY_IMG_NAME FACTORY_SIZE \
DEVICE_PACKAGES DEVICE_COMPAT_VERSION DEVICE_COMPAT_MESSAGE \

View File

@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=tfa-layerscape
PKG_VERSION:=21.08
PKG_RELEASE:=6
PKG_VERSION:=lf-6.1.1-1.0.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/atf
PKG_SOURCE_VERSION:=LSDK-21.08
PKG_MIRROR_HASH:=893f2d28a77dcc9d4413a619b4719ca5f1f4dc78dd824a8488e7d543e66bcf95
PKG_SOURCE_URL:=https://github.com/nxp-qoriq/atf
PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0
PKG_MIRROR_HASH:=c0e3c7d0cc9ee5f9ae68cd705ce7f07f714c4fe3fd4a5a79de5699e7865b759f
PKG_BUILD_DEPENDS:=tfa-layerscape/host
include $(INCLUDE_DIR)/host-build.mk
@ -25,18 +25,19 @@ HOST_CFLAGS += -Wall -Werror -pedantic -std=c99
define Host/Compile
$(MAKE) -C \
$(HOST_BUILD_DIR)/tools/fiptool \
PLAT_FIPTOOL_HELPER_MK="$(HOST_BUILD_DIR)/tools/nxp/plat_fiptool/plat_fiptool.mk" \
CFLAGS="$(HOST_CFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS)" \
HOSTCCFLAGS="$(HOST_CFLAGS)"
$(MAKE) -C \
$(HOST_BUILD_DIR)/tools/nxp \
$(HOST_BUILD_DIR)/tools/nxp/create_pbl \
CFLAGS="$(HOST_CFLAGS)"
endef
define Host/Install
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/fiptool/fiptool $(STAGING_DIR_HOST)/bin/fiptool-layerscape
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/create_pbl $(STAGING_DIR_HOST)/bin/tfa-create-pbl
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/byte_swap $(STAGING_DIR_HOST)/bin/tfa-byte-swap
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/create_pbl/create_pbl $(STAGING_DIR_HOST)/bin/tfa-create-pbl
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/nxp/create_pbl/byte_swap $(STAGING_DIR_HOST)/bin/tfa-byte-swap
endef
define Trusted-Firmware-A/Default

View File

@ -1,6 +1,6 @@
--- a/Makefile
+++ b/Makefile
@@ -801,10 +801,6 @@ CRTTOOL ?= ${CRTTOOLPATH}/cert_create$
@@ -914,10 +914,6 @@ CRTTOOL ?= ${CRTTOOLPATH}/cert_create$
ENCTOOLPATH ?= tools/encrypt_fw
ENCTOOL ?= ${ENCTOOLPATH}/encrypt_fw${BIN_EXT}
@ -11,7 +11,7 @@
# Variables for use with sptool
SPTOOLPATH ?= tools/sptool
SPTOOL ?= ${SPTOOLPATH}/sptool${BIN_EXT}
@@ -1160,13 +1156,6 @@ endif
@@ -1322,13 +1318,6 @@ endif
clean:
@echo " CLEAN"
$(call SHELL_REMOVE_DIR,${BUILD_PLAT})
@ -25,7 +25,7 @@
${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${CRTTOOLPATH} clean
${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${ENCTOOLPATH} clean
${Q}${MAKE} --no-print-directory -C ${ROMLIBPATH} clean
@@ -1175,13 +1164,6 @@ realclean distclean:
@@ -1337,13 +1326,6 @@ realclean distclean:
@echo " REALCLEAN"
$(call SHELL_REMOVE_DIR,${BUILD_BASE})
$(call SHELL_DELETE_ALL, ${CURDIR}/cscope.*)
@ -39,37 +39,33 @@
${Q}${MAKE} --no-print-directory -C ${SPTOOLPATH} clean
${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${CRTTOOLPATH} clean
${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${ENCTOOLPATH} realclean
@@ -1238,7 +1220,7 @@ certificates: ${CRT_DEPS} ${CRTTOOL}
@@ -1400,7 +1382,7 @@ certificates: ${CRT_DEPS} ${CRTTOOL}
@${ECHO_BLANK_LINE}
endif
-${BUILD_PLAT}/${FIP_NAME}: ${FIP_DEPS} ${FIPTOOL}
+${BUILD_PLAT}/${FIP_NAME}: ${FIP_DEPS}
${Q}${FIPTOOL} create ${FIP_ARGS} $@
${Q}${FIPTOOL} info $@
@${ECHO_BLANK_LINE}
@@ -1254,7 +1236,7 @@ fwu_certificates: ${FWU_CRT_DEPS} ${CRTT
$(eval ${CHECK_FIP_CMD})
${Q}${FIPTOOL} create ${FIP_ARGS} $@
${Q}${FIPTOOL} info $@
@@ -1417,7 +1399,7 @@ fwu_certificates: ${FWU_CRT_DEPS} ${CRTT
@${ECHO_BLANK_LINE}
endif
-${BUILD_PLAT}/${FWU_FIP_NAME}: ${FWU_FIP_DEPS} ${FIPTOOL}
+${BUILD_PLAT}/${FWU_FIP_NAME}: ${FWU_FIP_DEPS}
${Q}${FIPTOOL} create ${FWU_FIP_ARGS} $@
${Q}${FIPTOOL} info $@
@${ECHO_BLANK_LINE}
@@ -1279,24 +1261,10 @@ ${BUILD_PLAT}/${DDR_FIP_NAME}: ${DDR_FIP
$(eval ${CHECK_FWU_FIP_CMD})
${Q}${FIPTOOL} create ${FWU_FIP_ARGS} $@
${Q}${FIPTOOL} info $@
@@ -1425,19 +1407,9 @@ ${BUILD_PLAT}/${FWU_FIP_NAME}: ${FWU_FIP
@echo "Built $@ successfully"
@${ECHO_BLANK_LINE}
-fiptool: ${FIPTOOL}
fip: ${BUILD_PLAT}/${FIP_NAME}
fwu_fip: ${BUILD_PLAT}/${FWU_FIP_NAME}
fip_ddr: ${BUILD_PLAT}/${DDR_FIP_NAME}
-.PHONY: ${FIPTOOL}
-${FIPTOOL}:
- @${ECHO_BLANK_LINE}
- @echo "Building $@"
-${FIPTOOL}: FORCE
-ifdef UNIX_MK
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" FIPTOOL=${FIPTOOL} --no-print-directory -C ${FIPTOOLPATH}
-else
@ -77,14 +73,13 @@
-# to pass the gnumake flags to nmake.
- ${Q}set MAKEFLAGS= && ${MSVC_NMAKE} /nologo /f ${FIPTOOLPATH}/Makefile.msvc FIPTOOLPATH=$(subst /,\,$(FIPTOOLPATH)) FIPTOOL=$(subst /,\,$(FIPTOOL))
-endif
- @${ECHO_BLANK_LINE}
-
sptool: ${SPTOOL}
.PHONY: ${SPTOOL}
${SPTOOL}:
${SPTOOL}: FORCE
${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" SPTOOL=${SPTOOL} --no-print-directory -C ${SPTOOLPATH}
--- a/tools/fiptool/Makefile
+++ b/tools/fiptool/Makefile
@@ -38,7 +38,7 @@ all: ${PROJECT}
@@ -48,7 +48,7 @@ all: ${PROJECT}
${PROJECT}: ${OBJECTS} Makefile
@echo " HOSTLD $@"
@ -93,3 +88,19 @@
@${ECHO_BLANK_LINE}
@echo "Built $@ successfully"
@${ECHO_BLANK_LINE}
--- a/tools/nxp/plat_fiptool/plat_fiptool.mk 2023-05-20 22:28:28.079945619 +0200
+++ b/tools/nxp/plat_fiptool/plat_fiptool.mk 2023-05-20 22:26:59.443307771 +0200
@@ -22,11 +22,11 @@ INCLUDE_PATHS += -I${PLAT_DEF_UUID_OID_C
$(shell rm ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.o)
ifeq (${PLAT_DEF_OID},yes)
-HOSTCCFLAGS += -DPLAT_DEF_OID
+override HOSTCCFLAGS += -DPLAT_DEF_OID
endif
ifeq (${PLAT_DEF_UUID},yes)
-HOSTCCFLAGS += -DPLAT_DEF_FIP_UUID
+override HOSTCCFLAGS += -DPLAT_DEF_FIP_UUID
PLAT_OBJECTS += ${PLAT_DEF_UUID_CONFIG_FILE_PATH}/${PLAT_DEF_UUID_CONFIG_FILE_NAME}.o
endif

View File

@ -11,14 +11,14 @@ Signed-off-by: Biwen Li <biwen.li@nxp.com>
tools/nxp/pbl_ch3.mk | 5 -----
2 files changed, 8 deletions(-)
--- a/tools/nxp/pbl_ch2.mk
+++ b/tools/nxp/pbl_ch2.mk
--- a/tools/nxp/create_pbl/pbl_ch2.mk
+++ b/tools/nxp/create_pbl/pbl_ch2.mk
@@ -19,8 +19,6 @@ ifeq ($(RCW),"")
else
# Generate header for bl2.bin
$(Q)$(CST_DIR)/create_hdr_isbc --in ${BUILD_PLAT}/bl2.bin --out ${BUILD_PLAT}/hdr_bl2 ${BL2_INPUT_FILE}
- # Compile create_pbl tool
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${PLAT_TOOL_PATH};\
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${CREATE_PBL_TOOL_PATH};\
# Add bl2.bin to RCW
${CREATE_PBL} -r ${RCW} -i ${BUILD_PLAT}/bl2.bin -b ${BOOT_MODE} -c ${SOC_NUM} -d ${BL2_BASE} -e ${BL2_BASE}\
-o ${BUILD_PLAT}/bl2_${BOOT_MODE}.pbl ;\
@ -26,18 +26,18 @@ Signed-off-by: Biwen Li <biwen.li@nxp.com>
${Q}echo "Platform ${PLAT} requires rcw file. Please set RCW to point to the right RCW file for boot mode ${BOOT_MODE}"
else
# -a option appends the image for Chassis 3 devices in case of non secure boot
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${PLAT_TOOL_PATH};
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${CREATE_PBL_TOOL_PATH};
${CREATE_PBL} -r ${RCW} -i ${BUILD_PLAT}/bl2.bin -b ${BOOT_MODE} -c ${SOC_NUM} -d ${BL2_BASE} -e ${BL2_BASE} \
-o ${BUILD_PLAT}/bl2_${BOOT_MODE}.pbl ;
# Swapping of RCW is required for QSPi Chassis 2 devices
--- a/tools/nxp/pbl_ch3.mk
+++ b/tools/nxp/pbl_ch3.mk
--- a/tools/nxp/create_pbl/pbl_ch3.mk
+++ b/tools/nxp/create_pbl/pbl_ch3.mk
@@ -26,9 +26,6 @@ else
# Generate header for bl2.bin
$(Q)$(CST_DIR)/create_hdr_isbc --in ${BUILD_PLAT}/bl2.bin --out ${BUILD_PLAT}/hdr_bl2 ${BL2_INPUT_FILE}
- # Compile create_pbl tool
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${PLAT_TOOL_PATH};\
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${CREATE_PBL_TOOL_PATH};\
-
# Add Block Copy command for bl2.bin to RCW
${CREATE_PBL} -r ${RCW} -i ${BUILD_PLAT}/bl2.bin -b ${BOOT_MODE} -c ${SOC_NUM} -d ${BL2_BASE} -e ${BL2_BASE}\
@ -46,7 +46,7 @@ Signed-off-by: Biwen Li <biwen.li@nxp.com>
ifeq ($(RCW),"")
${Q}echo "Platform ${PLAT} requires rcw file. Please set RCW to point to the right RCW file for boot mode ${BOOT_MODE}"
else
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${PLAT_TOOL_PATH};
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" --no-print-directory -C ${CREATE_PBL_TOOL_PATH};
-
# Add Block Copy command and populate boot loc ptrfor bl2.bin to RCW
${CREATE_PBL} -r ${RCW} -i ${BUILD_PLAT}/bl2.bin -b ${BOOT_MODE} -c ${SOC_NUM} -d ${BL2_BASE} -e ${BL2_BASE} \

View File

@ -0,0 +1,232 @@
From 8c6a66feb721f18c930c7df03d1fbb7304107af6 Mon Sep 17 00:00:00 2001
From: Wojciech Dubowik <Wojciech.Dubowik@protonmail.ch>
Date: Thu, 20 Apr 2023 16:21:25 +0200
Subject: [PATCH] tfa-layerscape: Restore ls1012afrdm support
Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@protonmail.ch>
---
plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c | 34 +++++++
plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h | 92 +++++++++++++++++++
plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk | 25 +++++
.../soc-ls1012a/ls1012afrdm/platform_def.h | 13 +++
plat/nxp/soc-ls1012a/ls1012afrdm/policy.h | 16 ++++
5 files changed, 180 insertions(+)
create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c
create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h
create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk
create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/platform_def.h
create mode 100644 plat/nxp/soc-ls1012a/ls1012afrdm/policy.h
diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c b/plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c
new file mode 100644
index 000000000..8cb518540
--- /dev/null
+++ b/plat/nxp/soc-ls1012a/ls1012afrdm/ddr_init.c
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2018-2022 NXP
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <common/debug.h>
+#include <fsl_mmdc.h>
+
+#include <platform_def.h>
+
+long long init_ddr(void)
+{
+ static const struct fsl_mmdc_info mparam = {
+ .mdctl = U(0x04180000),
+ .mdpdc = U(0x00030035),
+ .mdotc = U(0x12554000),
+ .mdcfg0 = U(0xbabf7954),
+ .mdcfg1 = U(0xdb328f64),
+ .mdcfg2 = U(0x01ff00db),
+ .mdmisc = U(0x00001680),
+ .mdref = U(0x0f3c8000),
+ .mdrwd = U(0x00002000),
+ .mdor = U(0x00bf1023),
+ .mdasp = U(0x0000003f),
+ .mpodtctrl = U(0x0000022a),
+ .mpzqhwctrl = U(0xa1390003),
+ };
+
+ mmdc_init(&mparam, NXP_DDR_ADDR);
+ NOTICE("DDR Init Done\n");
+
+ return NXP_DRAM0_SIZE;
+}
diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h b/plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h
new file mode 100644
index 000000000..eb745a0a3
--- /dev/null
+++ b/plat/nxp/soc-ls1012a/ls1012afrdm/plat_def.h
@@ -0,0 +1,92 @@
+/*
+ * Copyright 2022 NXP
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef PLAT_DEF_H
+#define PLAT_DEF_H
+
+#include <arch.h>
+/*
+ * Required without TBBR.
+ * To include the defines for DDR PHY
+ * Images.
+ */
+#include <tbbr_img_def.h>
+
+#include <policy.h>
+#include <soc.h>
+
+/* DDR Related definition */
+#define PLAT_DEF_DRAM0_SIZE 0x20000000 /* 512 MB */
+
+#define NXP_SYSCLK_FREQ 125000000
+#define NXP_DDRCLK_FREQ 100000000
+
+/* UART related definition */
+#define NXP_CONSOLE_ADDR NXP_UART_ADDR
+#define NXP_CONSOLE_BAUDRATE 115200
+
+#define NXP_SPD_EEPROM0 0x51
+
+/* Size of cacheable stacks */
+#if defined(IMAGE_BL2)
+#if defined(TRUSTED_BOARD_BOOT)
+#define PLATFORM_STACK_SIZE 0x2000
+#else
+#define PLATFORM_STACK_SIZE 0x1000
+#endif
+#elif defined(IMAGE_BL31)
+#define PLATFORM_STACK_SIZE 0x1000
+#endif
+
+/* SD block buffer */
+#define NXP_SD_BLOCK_BUF_SIZE (0x00100000)
+#define NXP_SD_BLOCK_BUF_ADDR ULL(0x80000000)
+
+#define BL2_LIMIT (NXP_OCRAM_ADDR + NXP_OCRAM_SIZE)
+
+/* IO defines as needed by IO driver framework */
+#define MAX_IO_DEVICES 3
+#define MAX_IO_BLOCK_DEVICES 1
+#define MAX_IO_HANDLES 4
+
+/*
+ * FIP image defines - Offset at which FIP Image would be present
+ * Image would include Bl31 , Bl33 and Bl32 (optional)
+ */
+#ifdef POLICY_FUSE_PROVISION
+#define MAX_FIP_DEVICES 2
+#endif
+
+#ifndef MAX_FIP_DEVICES
+#define MAX_FIP_DEVICES 1
+#endif
+
+#ifdef PLAT_FIP_OFFSET
+#undef PLAT_FIP_OFFSET
+#endif
+#ifdef PLAT_FIP_MAX_SIZE
+#undef PLAT_FIP_MAX_SIZE
+#endif
+#define PLAT_FIP_OFFSET 0x60000
+#define PLAT_FIP_MAX_SIZE 0x170000
+
+/*
+ * ID of the secure physical generic timer interrupt used by the BL32.
+ */
+#define BL32_IRQ_SEC_PHY_TIMER 29
+
+/*
+ * Define properties of Group 1 Secure and Group 0 interrupts as per GICv3
+ * terminology. On a GICv2 system or mode, the lists will be merged and treated
+ * as Group 0 interrupts.
+ */
+#define PLAT_LS_G1S_IRQ_PROPS(grp) \
+ INTR_PROP_DESC(BL32_IRQ_SEC_PHY_TIMER, GIC_HIGHEST_SEC_PRIORITY, grp, \
+ GIC_INTR_CFG_LEVEL)
+
+#define PLAT_LS_G0_IRQ_PROPS(grp)
+
+#endif
diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk b/plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk
new file mode 100644
index 000000000..270e92420
--- /dev/null
+++ b/plat/nxp/soc-ls1012a/ls1012afrdm/platform.mk
@@ -0,0 +1,25 @@
+#
+# Copyright 2018-2022 NXP
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+# board-specific build parameters
+BOOT_MODE := qspi
+BOARD := ls1012afrdm
+
+# DDR Compilation Configs
+DDRC_NUM_CS := 1
+
+# On-Board Flash Details
+QSPI_FLASH_SZ := 0x4000000
+
+BL2_SOURCES += ${BOARD_PATH}/ddr_init.c
+
+SUPPORTED_BOOT_MODE := qspi
+
+# Adding platform board build info
+include plat/nxp/common/plat_make_helper/plat_common_def.mk
+
+# Adding SoC build info
+include plat/nxp/soc-ls1012a/soc.mk
diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/platform_def.h b/plat/nxp/soc-ls1012a/ls1012afrdm/platform_def.h
new file mode 100644
index 000000000..7daf1c02c
--- /dev/null
+++ b/plat/nxp/soc-ls1012a/ls1012afrdm/platform_def.h
@@ -0,0 +1,13 @@
+/*
+ * Copyright 2022 NXP
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef PLATFORM_DEF_H
+#define PLATFORM_DEF_H
+
+#include <plat_def.h>
+#include <plat_default_def.h>
+
+#endif /* PLATFORM_DEF_H */
diff --git a/plat/nxp/soc-ls1012a/ls1012afrdm/policy.h b/plat/nxp/soc-ls1012a/ls1012afrdm/policy.h
new file mode 100644
index 000000000..a782d01c7
--- /dev/null
+++ b/plat/nxp/soc-ls1012a/ls1012afrdm/policy.h
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2018-2022 NXP
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef POLICY_H
+#define POLICY_H
+
+/*
+ * Set this to 0x0 to leave the default SMMU page size in sACR
+ * Set this to 0x1 to change the SMMU page size to 64K
+ */
+#define POLICY_SMMU_PAGESZ_64K 0x0
+
+#endif /* POLICY_H */
--
2.34.1

View File

@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=uboot-layerscape
PKG_VERSION:=21.08
PKG_RELEASE:=7
PKG_VERSION:=lf-6.1.1-1.0.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot
PKG_SOURCE_VERSION:=LSDK-21.08
PKG_MIRROR_HASH:=54909a98bdcc26c7f9b35b35fcae09b977ecbf044be7bffa6dad9306c47cccf6
PKG_SOURCE_URL:=https://github.com/nxp-qoriq/u-boot
PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0
PKG_MIRROR_HASH:=f4a3a262fd8923af72dede0348a512c05b756e3925279553eaf1c6667b186fb4
include $(INCLUDE_DIR)/u-boot.mk
include $(INCLUDE_DIR)/package.mk

View File

@ -1,33 +0,0 @@
Index: uboot-layerscape-lf-6.1.1-1.0.0/arch/arm/cpu/armv8/sec_firmware.c
===================================================================
--- uboot-layerscape-lf-6.1.1-1.0.0.orig/arch/arm/cpu/armv8/sec_firmware.c
+++ uboot-layerscape-lf-6.1.1-1.0.0/arch/arm/cpu/armv8/sec_firmware.c
@@ -473,12 +473,6 @@ int fdt_fixup_kaslr(void *fdt)
return 0;
}
- ret = sec_firmware_get_random(rand, 8);
- if (ret < 0) {
- printf("WARNING: No random number to set kaslr-seed\n");
- return 0;
- }
-
err = fdt_check_header(fdt);
if (err < 0) {
printf("fdt_chosen: %s\n", fdt_strerror(err));
@@ -490,6 +484,15 @@ int fdt_fixup_kaslr(void *fdt)
if (nodeoffset < 0)
return 0;
+ if (fdt_find_or_add_subnode(fdt, nodeoffset, "kaslr-seed"))
+ return 0;
+
+ ret = sec_firmware_get_random(rand, 8);
+ if (ret < 0) {
+ printf("WARNING: No random number to set kaslr-seed\n");
+ return 0;
+ }
+
err = fdt_setprop(fdt, nodeoffset, "kaslr-seed", rand,
sizeof(rand));
if (err < 0) {

View File

@ -1,8 +0,0 @@
--- a/configs/ls1028ardb_tfa_defconfig
+++ b/configs/ls1028ardb_tfa_defconfig
@@ -1,5 +1,4 @@
CONFIG_ARM=y
-CONFIG_GIC_V3_ITS=y
CONFIG_TARGET_LS1028ARDB=y
CONFIG_TFABOOT=y
CONFIG_SYS_MALLOC_F_LEN=0x6000

View File

@ -108,8 +108,6 @@
rgmii_phy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
pinctrl-0 = <&eth_phy0_reset_pin>;
pinctrl-names = "default";
};
};
@ -117,24 +115,10 @@
rgmii_phy1: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
pinctrl-0 = <&eth_phy1_reset_pin>;
pinctrl-names = "default";
};
};
&pinctrl {
gmac0 {
eth_phy0_reset_pin: eth-phy0-reset-pin {
rockchip,pins = <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
gmac1 {
eth_phy1_reset_pin: eth-phy1-reset-pin {
rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
leds {
power_led_pin: power-led-pin {
rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;

View File

@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fman-ucode
PKG_VERSION:=21.08
PKG_RELEASE:=3
PKG_VERSION:=lf-6.1.1-1.0.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/NXP/qoriq-fm-ucode.git
PKG_SOURCE_VERSION:=LSDK-21.08
PKG_MIRROR_HASH:=fc3c249c20b823e9554764f875c3d600b05f2e3659262d79f081e6765e891c96
PKG_SOURCE_URL:=https://github.com/nxp-qoriq/qoriq-fm-ucode
PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0
PKG_MIRROR_HASH:=3614200837945460374570a48822a3efb96a64b93724e7f973e61008baeccf3a
PKG_FLAGS:=nonshared

View File

@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ls-rcw
PKG_VERSION:=21.08
PKG_RELEASE:=4
PKG_VERSION:=lf-6.1.1-1.0.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/rcw
PKG_SOURCE_VERSION:=LSDK-21.08
PKG_MIRROR_HASH:=5b6ae3937d8c64f24c2d09d21e892e60b9f60de3573ca64ef19fa71072e6e346
PKG_SOURCE_URL:=https://github.com/nxp-qoriq/rcw
PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0
PKG_MIRROR_HASH:=3127285549a0a7dd3cded20c2fbfb67b06943faa8dab529f61936dc1bea177db
PKG_FLAGS:=nonshared

View File

@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ppfe
PKG_VERSION:=21.08
PKG_RELEASE:=3
PKG_VERSION:=lf-6.1.1-1.0.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/NXP/qoriq-engine-pfe-bin.git
PKG_SOURCE_VERSION:=LSDK-21.08
PKG_MIRROR_HASH:=f2591b12bc02dbfcf113dcb79cce2fc703d8492b7309ad75b3c4915b76966c64
PKG_SOURCE_URL:=https://github.com/nxp-qoriq/qoriq-engine-pfe-bin
PKG_SOURCE_VERSION:=lf-6.1.1-1.0.0
PKG_MIRROR_HASH:=eb1e3efe08980e70594060c84c1620a1dde53e00e96bae63d15dceb236c0bfa8
PKG_FLAGS:=nonshared

View File

@ -46,6 +46,7 @@ define KernelPackage/bonding
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=Ethernet bonding driver
KCONFIG:=CONFIG_BONDING
DEPENDS:=PACKAGE_kmod-tls:kmod-tls
FILES:=$(LINUX_DIR)/drivers/net/bonding/bonding.ko
AUTOLOAD:=$(call AutoLoad,40,bonding)
MODPARAMS.bonding:=max_bonds=0
@ -1042,6 +1043,24 @@ endef
$(eval $(call KernelPackage,tcp-bbr))
define KernelPackage/tls
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=In-kernel TLS Support with HW Offload
KCONFIG:=CONFIG_TLS \
CONFIG_TLS_DEVICE=y
FILES:=$(LINUX_DIR)/net/tls/tls.ko
AUTOLOAD:=$(call AutoProbe,tls)
endef
define KernelPackage/tls/description
Kernel module for in-kernel TLS protocol support and hw offload
(to supported interfaces).
This allows symmetric encryption handling of the TLS protocol to
be done in-kernel and it's HW offload when available.
endef
$(eval $(call KernelPackage,tls))
define KernelPackage/tcp-hybla
SUBMENU:=$(NETWORK_SUPPORT_MENU)

View File

@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=nettle
PKG_VERSION:=3.8.1
PKG_RELEASE:=3
PKG_VERSION:=3.9
PKG_RELEASE:=1
PKG_BUILD_FLAGS:=no-mips16
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/nettle
PKG_HASH:=364f3e2b77cd7dcde83fd7c45219c834e54b0c75e428b6f894a23d12dd41cbfe
PKG_HASH:=0ee7adf5a7201610bb7fe0acbb7c9b3be83be44904dd35ebbcd965cd896bfeaa
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING

View File

@ -1,6 +1,6 @@
--- a/configure
+++ b/configure
@@ -4704,6 +4704,7 @@ $as_echo_n "checking build system compil
@@ -4719,6 +4719,7 @@ $as_echo_n "checking build system compil
# remove anything that might look like compiler output to our "||" expression
rm -f conftest* a.out b.out a.exe a_out.exe
cat >conftest.c <<EOF
@ -8,7 +8,7 @@
int
main ()
{
@@ -4736,6 +4737,7 @@ $as_echo_n "checking build system compil
@@ -4751,6 +4752,7 @@ $as_echo_n "checking build system compil
# remove anything that might look like compiler output to our "||" expression
rm -f conftest* a.out b.out a.exe a_out.exe
cat >conftest.c <<EOF
@ -16,7 +16,7 @@
int
main ()
{
@@ -4772,6 +4774,7 @@ $as_echo_n "checking build system compil
@@ -4787,6 +4789,7 @@ $as_echo_n "checking build system compil
# remove anything that might look like compiler output to our "||" expression
rm -f conftest* a.out b.out a.exe a_out.exe
cat >conftest.c <<EOF
@ -24,7 +24,7 @@
int
main ()
{
@@ -4822,6 +4825,7 @@ else
@@ -4837,6 +4840,7 @@ else
gmp_cv_prog_exeext_for_build="$EXEEXT"
else
cat >conftest.c <<EOF

View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=pcre2
PKG_VERSION:=10.37
PKG_RELEASE:=2
PKG_VERSION:=10.42
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/pcre/$(PKG_NAME)/$(PKG_VERSION)
PKG_HASH:=4d95a96e8b80529893b4562be12648d798b957b1ba1aae39606bbc2ab956d270
PKG_SOURCE_URL:=https://github.com/PCRE2Project/pcre2/releases/download/$(PKG_NAME)-$(PKG_VERSION)
PKG_HASH:=8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840
PKG_MAINTAINER:=Shane Peelar <lookatyouhacker@gmail.com>
PKG_LICENSE:=BSD-3-Clause

View File

@ -119,6 +119,7 @@ validate_section_dropbear()
'enable:bool:1' \
'Interface:string' \
'GatewayPorts:bool:0' \
'ForceCommand:string' \
'RootPasswordAuth:bool:1' \
'RootLogin:bool:1' \
'rsakeyfile:file' \
@ -158,6 +159,7 @@ dropbear_instance()
procd_set_param command "$PROG" -F -P "$pid_file"
[ "${PasswordAuth}" -eq 0 ] && procd_append_param command -s
[ "${GatewayPorts}" -eq 1 ] && procd_append_param command -a
[ -n "${ForceCommand}" ] && procd_append_param command -c "${ForceCommand}"
[ "${RootPasswordAuth}" -eq 0 ] && procd_append_param command -g
[ "${RootLogin}" -eq 0 ] && procd_append_param command -w
if [ -n "${rsakeyfile}" ]; then

View File

@ -312,11 +312,7 @@ mvswitch_config_init(struct phy_device *pdev)
priv->orig_features = dev->features;
#ifdef HEADER_MODE
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
dev->extra_priv_flags |= IFF_NO_IP_ALIGN;
#else
dev->priv_flags |= IFF_NO_IP_ALIGN;
#endif
dev->features |= NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_HW_VLAN_CTAG_TX;
#else
dev->features |= NETIF_F_HW_VLAN_CTAG_RX;
@ -376,11 +372,7 @@ mvswitch_detach(struct phy_device *pdev)
dev->eth_mangle_rx = NULL;
dev->eth_mangle_tx = NULL;
dev->features = priv->orig_features;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
dev->extra_priv_flags &= ~IFF_NO_IP_ALIGN;
#else
dev->priv_flags &= ~IFF_NO_IP_ALIGN;
#endif
}
static void

View File

@ -1,9 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca956x.dtsi"
#include "qca9563_dlink_dir-8x9-a1.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
model = "D-Link DIR-859 A1";
@ -40,122 +38,4 @@
linux,default-trigger = "phy0tpt";
};
};
keys {
compatible = "gpio-keys";
wps {
linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
reset {
linux,code = <KEY_RESTART>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};
gpio-export {
compatible = "gpio-export";
#size-cells = <0>;
gpio_switch_reset {
gpio-export,name = "dir-859-a1:reset:switch";
gpio-export,output = <1>;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};
};
};
&pcie {
status = "okay";
};
&spi {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader";
reg = <0x000000 0x40000>;
read-only;
};
partition@40000 {
label = "bdcfg";
reg = <0x040000 0x10000>;
read-only;
};
partition@50000 {
label = "devdata";
reg = <0x050000 0x10000>;
read-only;
};
partition@60000 {
label = "devconf";
reg = <0x060000 0x10000>;
read-only;
};
partition@70000 {
compatible = "seama";
label = "firmware";
reg = <0x070000 0xf80000>;
};
art: partition@ff0000 {
label = "art";
reg = <0xff0000 0x010000>;
read-only;
};
};
};
};
&mdio0 {
status = "okay";
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "sgmii";
qca,mib-poll-interval = <500>;
qca,ar8327-initvals = <
0x04 0x00080080 /* PORT0 PAD MODE CTRL */
0x10 0x81000080 /* POWER_ON_STRAP */
0x50 0xcc35cc35 /* LED_CTRL0 */
0x54 0xcb37cb37 /* LED_CTRL1 */
0x58 0x00000000 /* LED_CTRL2 */
0x5c 0x00f3cf00 /* LED_CTRL3 */
0x7c 0x0000007e /* PORT0_STATUS */
>;
};
};
&eth0 {
status = "okay";
pll-data = <0x03000101 0x00000101 0x00001919>;
phy-mode = "sgmii";
phy-handle = <&phy0>;
};
&wmac {
status = "okay";
qca,no-eeprom;
};

View File

@ -0,0 +1,31 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca9563_dlink_dir-8x9-a1.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ {
model = "D-Link DIR-869 A1";
compatible = "dlink,dir-869-a1", "qca,qca9563";
aliases {
led-boot = &led_power_orange;
led-failsafe = &led_power_orange;
led-running = &led_power_white;
led-upgrade = &led_power_orange;
};
leds {
compatible = "gpio-leds";
led_power_orange: power_orange {
label = "orange:power";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_power_white: power_white {
label = "white:power";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
};
};

View File

@ -0,0 +1,151 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "qca956x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
keys {
compatible = "gpio-keys";
wps {
linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
reset {
linux,code = <KEY_RESTART>;
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
};
};
};
&pcie {
status = "okay";
wifi@0,0 {
compatible = "qcom,ath10k";
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&calibration_ath10k>, <&macaddr_devdata_94>;
nvmem-cell-names = "calibration", "mac-address-ascii";
};
};
&spi {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bootloader";
reg = <0x000000 0x40000>;
read-only;
};
partition@40000 {
label = "bdcfg";
reg = <0x040000 0x10000>;
read-only;
};
partition@50000 {
label = "devdata";
reg = <0x050000 0x10000>;
read-only;
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_devdata_94: macaddr@94 {
reg = <0x94 0x11>;
};
macaddr_devdata_b0: macaddr@b0 {
reg = <0xb0 0x11>;
};
};
partition@60000 {
label = "devconf";
reg = <0x060000 0x10000>;
read-only;
};
partition@70000 {
compatible = "seama";
label = "firmware";
reg = <0x070000 0xf80000>;
};
partition@ff0000 {
label = "art";
reg = <0xff0000 0x010000>;
read-only;
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
calibration_ath9k: calibration@1000 {
reg = <0x1000 0x440>;
};
calibration_ath10k: calibration@5000 {
reg = <0x5000 0x844>;
};
};
};
};
};
&mdio0 {
status = "okay";
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "sgmii";
qca,mib-poll-interval = <500>;
reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
qca,ar8327-initvals = <
0x04 0x00080080 /* PORT0 PAD MODE CTRL */
0x10 0x81000080 /* POWER_ON_STRAP */
0x50 0xcc35cc35 /* LED_CTRL0 */
0x54 0xcb37cb37 /* LED_CTRL1 */
0x58 0x00000000 /* LED_CTRL2 */
0x5c 0x00f3cf00 /* LED_CTRL3 */
0x7c 0x0000007e /* PORT0_STATUS */
>;
};
};
&eth0 {
status = "okay";
pll-data = <0x03000101 0x00000101 0x00001919>;
phy-mode = "sgmii";
phy-handle = <&phy0>;
};
&wmac {
status = "okay";
nvmem-cells = <&calibration_ath9k>, <&macaddr_devdata_b0>;
nvmem-cell-names = "calibration", "mac-address-ascii";
};

View File

@ -119,8 +119,8 @@
};
&wifi_ath10k {
nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_5000>;
nvmem-cell-names = "mac-address", "calibration";
nvmem-cells = <&macaddr_mac_0>, <&cal_caldata_5000>, <&cal_caldata_5000>;
nvmem-cell-names = "mac-address", "calibration", "pre-calibration";
mac-address-increment = <1>;
};

View File

@ -1352,11 +1352,7 @@ static int ag71xx_rx_packets(struct ag71xx *ag, int limit)
dev->stats.rx_packets++;
dev->stats.rx_bytes += pktlen;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
skb = build_skb(ring->buf[i].rx_buf, ag71xx_buffer_size(ag));
#else
skb = napi_build_skb(ring->buf[i].rx_buf, ag71xx_buffer_size(ag));
#endif
if (!skb) {
skb_free_frag(ring->buf[i].rx_buf);
goto next;

View File

@ -291,6 +291,7 @@ ath79_setup_interfaces()
dlink,dir-842-c2|\
dlink,dir-842-c3|\
dlink,dir-859-a1|\
dlink,dir-869-a1|\
engenius,epg5000|\
engenius,esr1200|\
engenius,esr1750|\
@ -656,6 +657,10 @@ ath79_setup_macs()
label_mac=$lan_mac
;;
dlink,dir-859-a1|\
dlink,dir-869-a1)
lan_mac=$(mtd_get_mac_text "devdata" 0xc9)
wan_mac=$(mtd_get_mac_text "devdata" 0x79)
;;
qihoo,c301|\
wd,mynet-n600|\
wd,mynet-n750)

View File

@ -30,7 +30,6 @@ case "$FIRMWARE" in
dlink,dir-842-c1|\
dlink,dir-842-c2|\
dlink,dir-842-c3|\
dlink,dir-859-a1|\
nec,wf1200cr|\
nec,wg1200cr|\
wd,mynet-n600|\

View File

@ -68,10 +68,6 @@ case "$FIRMWARE" in
caldata_extract "art" 0x5000 0x844
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary art 0x0) -1)
;;
dlink,dir-859-a1)
caldata_extract "art" 0x5000 0x844
ath10k_patch_mac $(mtd_get_mac_ascii devdata "wlan5mac")
;;
engenius,ecb1200|\
engenius,ecb1750)
caldata_extract "art" 0x5000 0x844

View File

@ -22,6 +22,7 @@ dlink,dap-3662-a1)
fixwrgg
;;
dlink,dir-629-a1|\
dlink,dir-869-a1|\
qihoo,c301)
fix_seama_header
;;

View File

@ -707,6 +707,7 @@ define Device/tplink_tl-wr1043nd-v1
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-switch-rtl8366rb
TPLINK_HWID := 0x10430001
SUPPORTED_DEVICES += tl-wr1043nd
DEFAULT := n
endef
TARGET_DEVICES += tplink_tl-wr1043nd-v1
@ -789,6 +790,7 @@ define Device/tplink_tl-wr710n-v1
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-usb-ledtrig-usbport
TPLINK_HWID := 0x07100001
SUPPORTED_DEVICES += tl-wr710n
DEFAULT := n
endef
TARGET_DEVICES += tplink_tl-wr710n-v1
@ -801,6 +803,7 @@ define Device/tplink_tl-wr710n-v2.1
TPLINK_HWID := 0x07100002
TPLINK_HWREV := 0x2
SUPPORTED_DEVICES += tl-wr710n
DEFAULT := n
endef
TARGET_DEVICES += tplink_tl-wr710n-v2.1
@ -822,6 +825,7 @@ define Device/tplink_tl-wr810n-v2
DEVICE_VARIANT := v2
TPLINK_HWID := 0x8100002
SUPPORTED_DEVICES += tl-wr810n-v2
DEFAULT := n
endef
TARGET_DEVICES += tplink_tl-wr810n-v2
@ -851,6 +855,7 @@ define Device/tplink_tl-wr842n-v1
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
TPLINK_HWID := 0x8420001
SUPPORTED_DEVICES += tl-mr3420
DEFAULT := n
endef
TARGET_DEVICES += tplink_tl-wr842n-v1
@ -862,6 +867,7 @@ define Device/tplink_tl-wr842n-v2
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport
TPLINK_HWID := 0x8420002
SUPPORTED_DEVICES += tl-wr842n-v2
DEFAULT := n
endef
TARGET_DEVICES += tplink_tl-wr842n-v2

View File

@ -1151,11 +1151,24 @@ define Device/dlink_dir-859-a1
DEVICE_MODEL := DIR-859
DEVICE_VARIANT := A1
IMAGE_SIZE := 15872k
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
SEAMA_SIGNATURE := wrgac37_dlink.2013gui_dir859
endef
TARGET_DEVICES += dlink_dir-859-a1
define Device/dlink_dir-869-a1
$(Device/seama)
SOC := qca9563
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DIR-869
DEVICE_VARIANT := A1
IMAGE_SIZE := 15872k
DEVICE_PACKAGES := kmod-usb2 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
SEAMA_SIGNATURE := wrgac54_dlink.2015_dir869
SUPPORTED_DEVICES += dir-869-a1
endef
TARGET_DEVICES += dlink_dir-869-a1
define Device/elecom_wrc-1750ghbk2-i
SOC := qca9563
DEVICE_VENDOR := ELECOM
@ -2915,6 +2928,7 @@ define Device/wd_mynet-wifi-rangeextender
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | cybertan-trx | \
addpattern | append-metadata
SUPPORTED_DEVICES += mynet-rext
DEFAULT := n
endef
TARGET_DEVICES += wd_mynet-wifi-rangeextender
@ -3005,6 +3019,7 @@ define Device/ziking_cpe46b
DEVICE_MODEL := CPE46B
IMAGE_SIZE := 8000k
DEVICE_PACKAGES := kmod-i2c-gpio
DEFAULT := n
endef
TARGET_DEVICES += ziking_cpe46b

View File

@ -426,8 +426,8 @@ TARGET_DEVICES += zte_mf282
define Device/zte_mf286
$(Device/zte_mf28x_common)
DEVICE_MODEL := MF286
DEVICE_PACKAGES += ath10k-firmware-qca988x-ct kmod-usb-net-qmi-wwan \
kmod-usb-serial-option uqmi
DEVICE_PACKAGES += ath10k-firmware-qca988x-ct ath10k-firmware-qca9888-ct \
kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
endef
TARGET_DEVICES += zte_mf286

View File

@ -5,6 +5,7 @@ define Device/ubnt_airrouter
SOC := ar7241
DEVICE_MODEL := AirRouter
SUPPORTED_DEVICES += airrouter
DEFAULT := n
endef
TARGET_DEVICES += ubnt_airrouter
@ -14,6 +15,7 @@ define Device/ubnt_nanobridge-m
DEVICE_MODEL := NanoBridge M
DEVICE_PACKAGES += rssileds
SUPPORTED_DEVICES += bullet-m
DEFAULT := n
endef
TARGET_DEVICES += ubnt_nanobridge-m
@ -24,6 +26,7 @@ define Device/ubnt_bullet-m-ar7240
DEVICE_VARIANT := XM (AR7240)
DEVICE_PACKAGES += rssileds
SUPPORTED_DEVICES += bullet-m
DEFAULT := n
endef
TARGET_DEVICES += ubnt_bullet-m-ar7240
@ -34,6 +37,7 @@ define Device/ubnt_bullet-m-ar7241
DEVICE_VARIANT := XM (AR7241)
DEVICE_PACKAGES += rssileds
SUPPORTED_DEVICES += bullet-m ubnt,bullet-m
DEFAULT := n
endef
TARGET_DEVICES += ubnt_bullet-m-ar7241
@ -43,6 +47,7 @@ define Device/ubnt_picostation-m
DEVICE_MODEL := Picostation M
DEVICE_PACKAGES += rssileds
SUPPORTED_DEVICES += bullet-m
DEFAULT := n
endef
TARGET_DEVICES += ubnt_picostation-m
@ -52,6 +57,7 @@ define Device/ubnt_nanostation-m
DEVICE_MODEL := Nanostation M
DEVICE_PACKAGES += rssileds
SUPPORTED_DEVICES += nanostation-m
DEFAULT := n
endef
TARGET_DEVICES += ubnt_nanostation-m
@ -61,6 +67,7 @@ define Device/ubnt_nanostation-loco-m
DEVICE_MODEL := Nanostation Loco M
DEVICE_PACKAGES += rssileds
SUPPORTED_DEVICES += bullet-m
DEFAULT := n
endef
TARGET_DEVICES += ubnt_nanostation-loco-m

View File

@ -76,5 +76,6 @@ define Device/pqi_air-pen
DEVICE_PACKAGES := kmod-usb-chipidea2
IMAGE_SIZE := 7680k
SUPPORTED_DEVICES += pqi-air-pen
DEFAULT := n
endef
TARGET_DEVICES += pqi_air-pen

View File

@ -10,6 +10,7 @@ define Device/linksys_wrt300n-v1.1
$(Device/linksys)
DEVICE_ID := EWC2
VERSION := 1.51.2
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt300n-v1.1
@ -20,6 +21,7 @@ define Device/linksys_wrt310n-v1
$(Device/linksys)
DEVICE_ID := 310N
VERSION := 1.0.10
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt310n-v1
@ -30,6 +32,7 @@ define Device/linksys_wrt350n-v1
$(Device/linksys)
DEVICE_ID := EWCG
VERSION := 1.04.1
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt350n-v1

View File

@ -7,6 +7,7 @@ define Device/asus_wl-300g
DEVICE_PACKAGES := kmod-b43
$(Device/asus)
PRODUCTID := "WL300g "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-300g
@ -15,6 +16,7 @@ define Device/asus_wl-320gp
DEVICE_PACKAGES := kmod-b43
$(Device/asus)
PRODUCTID := "WL320gP "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-320gp
@ -23,6 +25,7 @@ define Device/asus_wl-330ge
DEVICE_PACKAGES := kmod-b43
$(Device/asus)
PRODUCTID := "WL-330gE "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-330ge
@ -31,6 +34,7 @@ define Device/asus_wl-500gd
DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
$(Device/asus)
PRODUCTID := "WL500gx "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-500gd
@ -40,6 +44,7 @@ define Device/asus_wl-500gp-v1
DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
$(Device/asus)
PRODUCTID := "WL500gp "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-500gp-v1
@ -49,6 +54,7 @@ define Device/asus_wl-500gp-v2
DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
$(Device/asus)
PRODUCTID := "WL500gpv2 "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-500gp-v2
@ -57,6 +63,7 @@ define Device/asus_wl-500w
DEVICE_PACKAGES := kmod-b43 kmod-usb-uhci kmod-usb2-pci
$(Device/asus)
PRODUCTID := "WL500W "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-500w
@ -65,6 +72,7 @@ define Device/asus_wl-520gu
DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
$(Device/asus)
PRODUCTID := "WL520gu "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-520gu
@ -73,6 +81,7 @@ define Device/asus_wl-550ge
DEVICE_PACKAGES := kmod-b43
$(Device/asus)
PRODUCTID := "WL550gE "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-550ge
@ -81,6 +90,7 @@ define Device/asus_wl-hdd25
DEVICE_PACKAGES := kmod-b43 $(USB1_PACKAGES)
$(Device/asus)
PRODUCTID := "WLHDD "
DEFAULT := n
endef
TARGET_DEVICES += asus_wl-hdd25
@ -99,6 +109,7 @@ define Device/edimax_ps1208-mfg
DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
IMAGES := bin
IMAGE/bin := append-rootfs | trx-with-loader | edimax-bin
DEFAULT := n
endef
TARGET_DEVICES += edimax_ps1208-mfg
@ -109,6 +120,7 @@ define Device/huawei_e970
KERNEL_NAME = vmlinux.gz
IMAGES := bin
IMAGE/bin := append-rootfs | trx-without-loader | huawei-bin
DEFAULT := n
endef
TARGET_DEVICES += huawei_e970
@ -118,6 +130,7 @@ define Device/linksys_wrt54g3g
$(Device/linksys)
DEVICE_ID := W54F
VERSION := 2.20.1
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt54g3g
@ -126,6 +139,7 @@ define Device/linksys_wrt54g3g-em
$(Device/linksys)
DEVICE_ID := W3GN
VERSION := 2.20.1
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt54g3g-em
@ -140,6 +154,7 @@ define Device/linksys_wrt54g3gv2-vf
DEVICE_ID := 3G2V
VERSION := 3.00.24
SERIAL := 6
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt54g3gv2-vf
@ -149,6 +164,7 @@ define Device/linksys_wrt54g
$(Device/linksys)
DEVICE_ID := W54G
VERSION := 4.71.1
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt54g
@ -163,6 +179,7 @@ define Device/linksys_wrt54gs
FILESYSTEMS := $(FS_128K)
DEVICE_ID := W54S
VERSION := 4.80.1
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt54gs
@ -173,6 +190,7 @@ define Device/linksys_wrt54gs-v4
$(Device/linksys)
DEVICE_ID := W54s
VERSION := 1.09.1
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt54gs-v4
@ -183,6 +201,7 @@ define Device/linksys_wrtsl54gs
FILESYSTEMS := $(FS_128K)
DEVICE_ID := W54U
VERSION := 2.08.1
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrtsl54gs
@ -192,6 +211,7 @@ define Device/linksys_wrt150n
$(Device/linksys)
DEVICE_ID := N150
VERSION := 1.51.3
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt150n
@ -202,6 +222,7 @@ define Device/linksys_wrt160n-v1
$(Device/linksys)
DEVICE_ID := N150
VERSION := 1.50.1
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt160n-v1
@ -213,6 +234,7 @@ define Device/linksys_wrt300n-v1
IMAGES := bin trx
DEVICE_ID := EWCB
VERSION := 1.03.6
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt300n-v1
@ -221,6 +243,7 @@ define Device/motorola_wa840g
DEVICE_PACKAGES := kmod-b43
$(Device/motorola)
MOTOROLA_DEVICE := 2
DEFAULT := n
endef
TARGET_DEVICES += motorola_wa840g
@ -229,6 +252,7 @@ define Device/motorola_we800g
DEVICE_PACKAGES := kmod-b43
$(Device/motorola)
MOTOROLA_DEVICE := 3
DEFAULT := n
endef
TARGET_DEVICES += motorola_we800g
@ -237,6 +261,7 @@ define Device/motorola_wr850g
DEVICE_PACKAGES := kmod-b43
$(Device/motorola)
MOTOROLA_DEVICE := 1
DEFAULT := n
endef
TARGET_DEVICES += motorola_wr850g
@ -247,6 +272,7 @@ define Device/netgear_wgr614-v8
$(Device/netgear)
NETGEAR_BOARD_ID := U12H072T00_NETGEAR
NETGEAR_REGION := 2
DEFAULT := n
endef
TARGET_DEVICES += netgear_wgr614-v8
@ -257,6 +283,7 @@ define Device/netgear_wgt634u
FILESYSTEMS := $(FS_128K)
IMAGES := bin
IMAGE/bin := append-rootfs | trx-with-loader | prepend-with-elf
DEFAULT := n
endef
TARGET_DEVICES += netgear_wgt634u
@ -267,6 +294,7 @@ define Device/netgear_wndr3300-v1
$(Device/netgear)
NETGEAR_BOARD_ID := U12H093T00_NETGEAR
NETGEAR_REGION := 2
DEFAULT := n
endef
TARGET_DEVICES += netgear_wndr3300-v1
@ -277,6 +305,7 @@ define Device/netgear_wnr834b-v2
$(Device/netgear)
NETGEAR_BOARD_ID := U12H081T00_NETGEAR
NETGEAR_REGION := 2
DEFAULT := n
endef
TARGET_DEVICES += netgear_wnr834b-v2
@ -286,6 +315,7 @@ define Device/usrobotics_usr5461
DEVICE_PACKAGES := kmod-b43 $(USB1_PACKAGES)
IMAGES := bin
IMAGE/bin := append-rootfs | trx-with-loader | usrobotics-bin
DEFAULT := n
endef
TARGET_DEVICES += usrobotics_usr5461

View File

@ -24,6 +24,7 @@ define Device/asus_rt-n10
DEVICE_PACKAGES := kmod-b43
$(Device/asus)
PRODUCTID := "RT-N10 "
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n10
@ -33,6 +34,7 @@ define Device/asus_rt-n10p
DEVICE_PACKAGES := kmod-b43
$(Device/asus)
PRODUCTID := RT-N10P
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n10p
@ -41,6 +43,7 @@ define Device/asus_rt-n10p-v2
DEVICE_VARIANT := v2
$(Device/asus)
PRODUCTID := RT-N10PV2
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n10p-v2
@ -50,6 +53,7 @@ define Device/asus_rt-n10u
DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
$(Device/asus)
PRODUCTID := RT-N10U
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n10u
@ -59,6 +63,7 @@ define Device/asus_rt-n10u-b
DEVICE_PACKAGES := kmod-b43 $(USB2_PACKAGES)
$(Device/asus)
PRODUCTID := RT-N10U
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n10u-b
@ -68,6 +73,7 @@ define Device/asus_rt-n12
DEVICE_PACKAGES := kmod-b43
$(Device/asus)
PRODUCTID := "RT-N12 "
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n12
@ -76,6 +82,7 @@ define Device/asus_rt-n12-b1
DEVICE_VARIANT := B1
$(Device/asus)
PRODUCTID := RT-N12B1
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n12-b1
@ -84,6 +91,7 @@ define Device/asus_rt-n12-c1
DEVICE_VARIANT := C1
$(Device/asus)
PRODUCTID := RT-N12C1
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n12-c1
@ -92,6 +100,7 @@ define Device/asus_rt-n12-d1
DEVICE_VARIANT := D1
$(Device/asus)
PRODUCTID := RT-N12D1
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n12-d1
@ -99,6 +108,7 @@ define Device/asus_rt-n12hp
DEVICE_MODEL := RT-N12HP
$(Device/asus)
PRODUCTID := RT-N12HP
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n12hp
@ -131,6 +141,7 @@ define Device/asus_rt-n53
DEVICE_PACKAGES := kmod-b43
$(Device/asus)
PRODUCTID := RT-N53
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n53
@ -168,6 +179,7 @@ define Device/linksys_wrt310n-v2
$(Device/linksys)
DEVICE_ID := 310N
VERSION := 2.0.1
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt310n-v2
@ -178,6 +190,7 @@ define Device/linksys_wrt320n-v1
$(Device/linksys)
DEVICE_ID := 320N
VERSION := 1.0.5
DEFAULT := n
endef
TARGET_DEVICES += linksys_wrt320n-v1
@ -187,6 +200,7 @@ define Device/linksys_e900-v1
$(Device/linksys)
DEVICE_ID := E900
VERSION := 1.0.4
DEFAULT := n
endef
TARGET_DEVICES += linksys_e900-v1
@ -197,6 +211,7 @@ define Device/linksys_e1000
$(Device/linksys)
DEVICE_ID := E100
VERSION := 1.1.3
DEFAULT := n
endef
TARGET_DEVICES += linksys_e1000
@ -206,6 +221,7 @@ define Device/linksys_e1200-v1
$(Device/linksys)
DEVICE_ID := E120
VERSION := 1.0.3
DEFAULT := n
endef
TARGET_DEVICES += linksys_e1200-v1
@ -215,6 +231,7 @@ define Device/linksys_e1200-v2
$(Device/linksys)
DEVICE_ID := E122
VERSION := 1.0.4
DEFAULT := n
endef
TARGET_DEVICES += linksys_e1200-v2
@ -224,6 +241,7 @@ define Device/linksys_e1500-v1
$(Device/linksys)
DEVICE_ID := E150
VERSION := 1.0.5
DEFAULT := n
endef
TARGET_DEVICES += linksys_e1500-v1
@ -244,6 +262,7 @@ define Device/linksys_e2000-v1
$(Device/linksys)
DEVICE_ID := 32XN
VERSION := 1.0.4
DEFAULT := n
endef
TARGET_DEVICES += linksys_e2000-v1
@ -323,6 +342,7 @@ define Device/netgear_wgr614-v10-na
$(Device/netgear)
NETGEAR_BOARD_ID := U12H139T01_NETGEAR
NETGEAR_REGION := 2
DEFAULT := n
endef
TARGET_DEVICES += netgear_wgr614-v10-na
@ -332,6 +352,7 @@ define Device/netgear_wgr614-v10
$(Device/netgear)
NETGEAR_BOARD_ID := U12H139T01_NETGEAR
NETGEAR_REGION := 1
DEFAULT := n
endef
TARGET_DEVICES += netgear_wgr614-v10
@ -350,6 +371,7 @@ define Device/netgear_wn3000rp
$(Device/netgear)
NETGEAR_BOARD_ID := U12H163T01_NETGEAR
NETGEAR_REGION := 1
DEFAULT := n
endef
TARGET_DEVICES += netgear_wn3000rp
@ -420,6 +442,7 @@ define Device/netgear_wnr1000-v3
$(Device/netgear)
NETGEAR_BOARD_ID := U12H139T00_NETGEAR
NETGEAR_REGION := 2
DEFAULT := n
endef
TARGET_DEVICES += netgear_wnr1000-v3
@ -430,6 +453,7 @@ define Device/netgear_wnr2000v2
$(Device/netgear)
NETGEAR_BOARD_ID := U12H114T00_NETGEAR
NETGEAR_REGION := 2
DEFAULT := n
endef
TARGET_DEVICES += netgear_wnr2000v2
@ -482,6 +506,7 @@ define Device/netgear_wnr3500-v2
$(Device/netgear)
NETGEAR_BOARD_ID := U12H127T00_NETGEAR
NETGEAR_REGION := 2
DEFAULT := n
endef
TARGET_DEVICES += netgear_wnr3500-v2

View File

@ -210,6 +210,7 @@ define Device/adb_a4001n
CHIP_ID := 6328
FLASH_MB := 8
DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += adb_a4001n
@ -222,6 +223,7 @@ define Device/adb_a4001n1
CHIP_ID := 6328
FLASH_MB := 16
DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += adb_a4001n1
@ -234,6 +236,7 @@ define Device/adb_pdg-a4001n-a-000-1a1-ax
CHIP_ID := 6328
FLASH_MB := 16
DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += adb_pdg-a4001n-a-000-1a1-ax
@ -269,6 +272,7 @@ define Device/alcatel_rg100a
CHIP_ID := 6358
BLOCK_SIZE := 0x20000
DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += alcatel_rg100a
@ -448,6 +452,7 @@ define Device/comtrend_ct-6373
CFE_BOARD_ID := CT6373-1
CHIP_ID := 6358
DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += comtrend_ct-6373
@ -532,6 +537,7 @@ define Device/d-link_dsl-2650u
CFE_BOARD_ID := 96358VW2
CHIP_ID := 6358
DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += d-link_dsl-2650u
@ -593,6 +599,7 @@ define Device/d-link_dsl-2750u-c1
CHIP_ID := 6328
FLASH_MB := 8
DEVICE_PACKAGES := $(USB2_PACKAGES) $(B43_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += d-link_dsl-2750u-c1
@ -618,6 +625,7 @@ define Device/d-link_dva-g3810bn-tl
CFE_BOARD_ID := 96358VW
CHIP_ID := 6358
DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += d-link_dva-g3810bn-tl
@ -765,6 +773,7 @@ define Device/huawei_echolife-hg622
BLOCK_SIZE := 0x20000
FLASH_MB := 16
DEVICE_PACKAGES := $(RT28_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += huawei_echolife-hg622
@ -825,6 +834,7 @@ define Device/netgear_cvg834g
HCS_MAGIC_BYTES := 0xa020
HCS_REV_MIN := 0001
HCS_REV_MAJ := 0022
DEFAULT := n
endef
TARGET_DEVICES += netgear_cvg834g
@ -930,6 +940,7 @@ define Device/pirelli_a226g
CHIP_ID := 6358
CFE_EXTRAS += --signature2 IMAGE --tag-version 8
DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += pirelli_a226g
@ -941,6 +952,7 @@ define Device/pirelli_a226m
CHIP_ID := 6358
CFE_EXTRAS += --signature2 IMAGE --tag-version 8
DEVICE_PACKAGES := $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += pirelli_a226m
@ -965,6 +977,7 @@ define Device/pirelli_agpf-s0
CFE_EXTRAS += --signature2 IMAGE --tag-version 8
BLOCK_SIZE := 0x20000
DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += pirelli_agpf-s0
@ -1009,6 +1022,7 @@ define Device/sagem_fast-2704n
CHIP_ID := 6318
FLASH_MB := 8
DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += sagem_fast-2704n
@ -1046,6 +1060,7 @@ define Device/sfr_neufbox-4-sercomm-r0
CHIP_ID := 6358
CFE_EXTRAS += --rsa-signature "$(VERSION_DIST)-$(firstword $(subst -,$(space),$(REVISION)))"
DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += sfr_neufbox-4-sercomm-r0
@ -1058,6 +1073,7 @@ define Device/sfr_neufbox-4-foxconn-r1
CHIP_ID := 6358
CFE_EXTRAS += --rsa-signature "$(VERSION_DIST)-$(firstword $(subst -,$(space),$(REVISION)))"
DEVICE_PACKAGES := $(B43_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += sfr_neufbox-4-foxconn-r1
@ -1096,6 +1112,7 @@ define Device/t-com_speedport-w-303v
CFE_BOARD_ID := 96358-502V
CHIP_ID := 6358
DEVICE_PACKAGES := $(B43_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += t-com_speedport-w-303v
@ -1182,6 +1199,7 @@ define Device/telsey_cpva642
CFE_EXTRAS += --signature "Telsey Tlc" --signature2 "99.99.999" --second-image-flag "0"
FLASH_MB := 8
DEVICE_PACKAGES := $(RT63_PACKAGES) $(USB2_PACKAGES)
DEFAULT := n
endef
TARGET_DEVICES += telsey_cpva642

View File

@ -6587,6 +6587,8 @@ CONFIG_TINY_RCU=y
# CONFIG_TI_TSC2046 is not set
# CONFIG_TLAN is not set
# CONFIG_TLS is not set
# CONFIG_TLS_DEVICE is not set
# CONFIG_TLS_TOE is not set
# CONFIG_TMD_HERMES is not set
# CONFIG_TMP006 is not set
# CONFIG_TMP007 is not set

View File

@ -73,11 +73,7 @@
int parse_fit_partitions(struct parsed_partitions *state, u64 fit_start_sector, u64 sectors, int *slot, int add_remain)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
struct block_device *bdev = state->disk->part0;
#else
struct block_device *bdev = state->bdev;
#endif
struct address_space *mapping = bdev->bd_inode->i_mapping;
struct page *page;
void *fit, *init_fit;

View File

@ -891,11 +891,7 @@ ar8216_phy_write(struct ar8xxx_priv *priv, int addr, int regnum, u16 val)
static int
ar8229_hw_init(struct ar8xxx_priv *priv)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
phy_interface_t phy_if_mode;
#else
int phy_if_mode;
#endif
if (priv->initialized)
return 0;
@ -903,11 +899,7 @@ ar8229_hw_init(struct ar8xxx_priv *priv)
ar8xxx_write(priv, AR8216_REG_CTRL, AR8216_CTRL_RESET);
ar8xxx_reg_wait(priv, AR8216_REG_CTRL, AR8216_CTRL_RESET, 0, 1000);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
of_get_phy_mode(priv->pdev->of_node, &phy_if_mode);
#else
phy_if_mode = of_get_phy_mode(priv->pdev->of_node);
#endif
if (phy_if_mode == PHY_INTERFACE_MODE_GMII) {
ar8xxx_write(priv, AR8229_REG_OPER_MODE0,
@ -2467,11 +2459,7 @@ ar8xxx_phy_config_init(struct phy_device *phydev)
/* VID fixup only needed on ar8216 */
if (chip_is_ar8216(priv)) {
dev->phy_ptr = priv;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
dev->extra_priv_flags |= IFF_NO_IP_ALIGN;
#else
dev->priv_flags |= IFF_NO_IP_ALIGN;
#endif
dev->eth_mangle_rx = ar8216_mangle_rx;
dev->eth_mangle_tx = ar8216_mangle_tx;
}
@ -2706,11 +2694,7 @@ ar8xxx_phy_detach(struct phy_device *phydev)
#ifdef CONFIG_ETHERNET_PACKET_MANGLE
dev->phy_ptr = NULL;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,15,0)
dev->extra_priv_flags &= ~IFF_NO_IP_ALIGN;
#else
dev->priv_flags &= ~IFF_NO_IP_ALIGN;
#endif
dev->eth_mangle_rx = NULL;
dev->eth_mangle_tx = NULL;
#endif

View File

@ -506,15 +506,9 @@ static int b53_configure_ports_of(struct b53_device *dev)
if (fixed_link) {
u32 spd;
u8 po = GMII_PO_LINK;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
phy_interface_t mode;
#else
int mode = of_get_phy_mode(pn);
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
of_get_phy_mode(pn, &mode);
#endif
if (!of_property_read_u32(fixed_link, "speed", &spd)) {
switch (spd) {

View File

@ -82,6 +82,7 @@ ipq40xx_setup_interfaces()
ucidef_set_interface_lan "sw-eth1 sw-eth2"
;;
aruba,ap-303h|\
ezviz,cs-w3-wd1200g-eup|\
netgear,rbr50|\
netgear,rbs50|\
netgear,srr60|\

View File

@ -239,6 +239,42 @@
status = "okay";
};
&gmac {
status = "okay";
nvmem-cells = <&macaddr_art_0>;
nvmem-cell-names = "mac-address";
};
&switch {
status = "okay";
};
&swport2 {
status = "okay";
label = "lan3";
};
&swport3 {
status = "okay";
label = "lan2";
};
&swport4 {
status = "okay";
label = "lan1";
};
&swport5 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_art_6>;
nvmem-cell-names = "mac-address";
};
&ethphy0 {
status = "disabled";
};
&wifi0 {
status = "okay";
qcom,ath10k-calibration-variant = "ezviz-cs-w3-wd1200g-eup";

View File

@ -1435,23 +1435,12 @@ qca8k_port_fdb_dump(struct dsa_switch *ds, int port,
return 0;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
static int
qca8k_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering,
struct switchdev_trans *trans)
#else
static int
qca8k_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering,
struct netlink_ext_ack *extack)
#endif
{
struct qca8k_priv *priv = ds->priv;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
if (switchdev_trans_ph_prepare(trans))
return 0;
#endif
if (vlan_filtering) {
qca8k_rmw(priv, QCA8K_PORT_LOOKUP_CTRL(port),
QCA8K_PORT_LOOKUP_VLAN_MODE,
@ -1465,70 +1454,32 @@ qca8k_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering,
return 0;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
static int
qca8k_port_vlan_prepare(struct dsa_switch *ds, int port,
const struct switchdev_obj_port_vlan *vlan)
{
return 0;
}
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
static void
qca8k_port_vlan_add(struct dsa_switch *ds, int port,
const struct switchdev_obj_port_vlan *vlan)
#else
static int
qca8k_port_vlan_add(struct dsa_switch *ds, int port,
const struct switchdev_obj_port_vlan *vlan,
struct netlink_ext_ack *extack)
#endif
{
bool untagged = vlan->flags & BRIDGE_VLAN_INFO_UNTAGGED;
bool pvid = vlan->flags & BRIDGE_VLAN_INFO_PVID;
struct qca8k_priv *priv = ds->priv;
int ret = 0;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
u16 vid;
for (vid = vlan->vid_begin; vid <= vlan->vid_end && !ret; ++vid)
ret = qca8k_vlan_add(priv, port, vid, untagged);
#else
ret = qca8k_vlan_add(priv, port, vlan->vid, untagged);
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
if (ret)
dev_err(priv->dev, "Failed to add VLAN to port %d (%d)", port, ret);
#else
if (ret) {
dev_err(priv->dev, "Failed to add VLAN to port %d (%d)", port, ret);
return ret;
}
#endif
if (pvid) {
int shift = 16 * (port % 2);
qca8k_rmw(priv, QCA8K_EGRESS_VLAN(port),
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
0xfff << shift,
vlan->vid_end << shift);
#else
0xfff << shift, vlan->vid << shift);
#endif
qca8k_write(priv, QCA8K_REG_PORT_VLAN_CTRL0(port),
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
QCA8K_PORT_VLAN_CVID(vlan->vid_end) |
QCA8K_PORT_VLAN_SVID(vlan->vid_end));
#else
QCA8K_PORT_VLAN_CVID(vlan->vid) |
QCA8K_PORT_VLAN_SVID(vlan->vid));
#endif
}
#if LINUX_VERSION_CODE > KERNEL_VERSION(5,12,0)
return 0;
#endif
}
static int
@ -1537,14 +1488,8 @@ qca8k_port_vlan_del(struct dsa_switch *ds, int port,
{
struct qca8k_priv *priv = ds->priv;
int ret = 0;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
u16 vid;
for (vid = vlan->vid_begin; vid <= vlan->vid_end && !ret; ++vid)
ret = qca8k_vlan_del(priv, port, vid);
#else
ret = qca8k_vlan_del(priv, port, vlan->vid);
#endif
if (ret)
dev_err(priv->dev, "Failed to delete VLAN from port %d (%d)", port, ret);
@ -1577,9 +1522,6 @@ static const struct dsa_switch_ops qca8k_switch_ops = {
.port_fdb_del = qca8k_port_fdb_del,
.port_fdb_dump = qca8k_port_fdb_dump,
.port_vlan_filtering = qca8k_port_vlan_filtering,
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
.port_vlan_prepare = qca8k_port_vlan_prepare,
#endif
.port_vlan_add = qca8k_port_vlan_add,
.port_vlan_del = qca8k_port_vlan_del,
.phylink_validate = qca8k_phylink_validate,

View File

@ -576,16 +576,6 @@ static int qca807x_config_intr(struct phy_device *phydev)
return ret;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
static int qca807x_ack_intr(struct phy_device *phydev)
{
int ret;
ret = phy_read(phydev, QCA807X_INTR_STATUS);
return (ret < 0) ? ret : 0;
}
#else
static irqreturn_t qca807x_handle_interrupt(struct phy_device *phydev)
{
int irq_status, int_enabled;
@ -611,7 +601,6 @@ static irqreturn_t qca807x_handle_interrupt(struct phy_device *phydev)
return IRQ_HANDLED;
}
#endif
static int qca807x_led_config(struct phy_device *phydev)
{
@ -802,11 +791,7 @@ static struct phy_driver qca807x_drivers[] = {
.config_init = qca807x_config,
.read_status = qca807x_read_status,
.config_intr = qca807x_config_intr,
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
.ack_interrupt = qca807x_ack_intr,
#else
.handle_interrupt = qca807x_handle_interrupt,
#endif
.soft_reset = genphy_soft_reset,
.get_tunable = qca807x_get_tunable,
.set_tunable = qca807x_set_tunable,
@ -824,11 +809,7 @@ static struct phy_driver qca807x_drivers[] = {
.config_init = qca807x_config,
.read_status = qca807x_read_status,
.config_intr = qca807x_config_intr,
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,12,0)
.ack_interrupt = qca807x_ack_intr,
#else
.handle_interrupt = qca807x_handle_interrupt,
#endif
.soft_reset = genphy_soft_reset,
.get_tunable = qca807x_get_tunable,
.set_tunable = qca807x_set_tunable,

View File

@ -555,8 +555,7 @@ define Device/ezviz_cs-w3-wd1200g-eup
DEVICE_COMPAT_MESSAGE := uboot's bootcmd has to be updated (see wiki). \
Upgrade via sysupgrade mechanism is not possible.
endef
# Missing DSA Setup
#TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
define Device/glinet_gl-a1300
$(call Device/FitImage)

View File

@ -37,6 +37,9 @@ kirkwood_setup_interfaces()
endian,4i-edge-200)
ucidef_set_interface_lan "port1 port2 port3 port4 eth1"
;;
iom,ix4-200d)
ucidef_set_interface_lan "eth0 eth1" "dhcp"
;;
linksys,e4200-v2|\
linksys,ea3500|\
linksys,ea4500)

View File

@ -0,0 +1,202 @@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"
#include <dt-bindings/leds/common.h>
/ {
model = "Iomega ix4-200d";
compatible = "iom,ix4-200d", "marvell,kirkwood-88f6281", "marvell,kirkwood";
aliases {
led-boot = &led_status_white;
led-failsafe = &led_status_red;
led-running = &led_power_white;
led-upgrade = &led_status_red;
};
chosen {
bootargs = "console=ttyS0,115200n8 earlyprintk";
stdout-path = &uart0;
};
memory {
device_type = "memory";
reg = <0x00000000 0x20000000>;
};
ocp@f1000000 {
i2c@11000 {
status = "okay";
adt7473@2e {
compatible = "adi,adt7473";
reg = <0x2e>;
};
};
pinctrl: pin-controller@10000 {
pmx_spi: pmx-spi {
marvell,pins = "mpp12", "mpp13", "mpp14";
marvell,function = "gpio";
};
pmx_keys: pmx-keys {
marvell,pins = "mpp16", "mpp29", "mpp47", "mpp49";
marvell,function = "gpio";
};
};
sata@80000 {
status = "okay";
nr-ports = <2>;
};
serial@12000 {
status = "okay";
};
spi3 {
compatible = "spi-gpio";
#address-cells = <0x1>;
ranges;
status = "okay";
sck-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
mosi-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
cs-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
num-chipselects = <1>;
#size-cells = <0>;
gpio_spi: gpio_spi@0 {
compatible = "fairchild,74hc595";
reg = <0>;
gpio-controller;
#gpio-cells = <2>;
registers-number = <1>;
spi-max-frequency = <100000>;
};
};
gpio-keys {
compatible = "gpio-keys";
pinctrl-0 = <&pmx_keys>;
pinctrl-names = "default";
button-0 {
label = "Next Button";
linux,code = <BTN_0>;
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
};
button-1 {
label = "Reset Button";
linux,code = <KEY_RESTART>;
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
};
button-2 {
label = "Cancel Button";
linux,code = <BTN_1>;
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
button-3 {
label = "Power Button";
linux,code = <KEY_POWER2>;
gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
};
};
gpio-leds {
compatible = "gpio-leds";
led_status_white: led-0 {
label = "status:white";
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_WHITE>;
gpios = <&gpio_spi 4 GPIO_ACTIVE_LOW>;
};
led_status_red: led-1 {
label = "status:red";
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_RED>;
gpios = <&gpio_spi 5 GPIO_ACTIVE_LOW>;
};
led_power_white: led-2 {
label = "power:white";
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_WHITE>;
gpios = <&gpio_spi 7 GPIO_ACTIVE_HIGH>;
};
};
};
};
&eth0 {
status = "okay";
ethernet0-port@0 {
phy-handle = <&ethphy0>;
};
};
&eth1 {
status = "okay";
ethernet1-port@0 {
phy-handle = <&ethphy1>;
};
};
&mdio {
status = "okay";
ethphy0: ethernet-phy@8 {
reg = <8>;
};
ethphy1: ethernet-phy@9 {
reg = <9>;
};
};
&nand {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0000000 0x100000>;
read-only;
};
partition@a0000 {
label = "u-boot environment";
reg = <0xa0000 0x20000>;
read-only;
};
partition@100000 {
label = "kernel";
reg = <0x100000 0x300000>;
};
partition@400000 {
label = "ubi";
reg = <0x400000 0x1C00000>;
};
};
};
&pciec {
status = "okay";
};
&pcie0 {
status = "okay";
};

View File

@ -184,6 +184,24 @@ define Device/iom_ix2-200
endef
TARGET_DEVICES += iom_ix2-200
define Device/iom_ix4-200d
DEVICE_VENDOR := Iomega
DEVICE_MODEL := StorCenter ix4-200d
DEVICE_PACKAGES := kmod-ata-marvell-sata kmod-fs-ext4 \
kmod-gpio-button-hotplug kmod-gpio-nxp-74hc164 \
kmod-hwmon-adt7475 kmod-mvsdio kmod-spi-gpio
PAGESIZE := 512
SUBPAGESIZE := 256
BLOCKSIZE := 16k
KERNEL_SIZE := 3072k
KERNEL_IN_UBI :=
UBINIZE_OPTS := -E 5
IMAGE_SIZE := 31744k
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
check-size
endef
TARGET_DEVICES += iom_ix4-200d
define Device/iptime_nas1
DEVICE_VENDOR := ipTIME
DEVICE_MODEL := NAS1

View File

@ -154,6 +154,7 @@ define Device/zte_h201l
kmod-usb-dwc2 kmod-usb-ledtrig-usbport \
kmod-ltq-tapi kmod-ltq-vmmc
SUPPORTED_DEVICES += H201L
DEFAULT := n
endef
TARGET_DEVICES += zte_h201l

View File

@ -12,6 +12,7 @@ define Device/arcadyan_arv4510pw
kmod-ltq-tapi kmod-ltq-vmmc \
kmod-rt2800-pci kmod-ath5k wpad-basic-openssl
SUPPORTED_DEVICES += ARV4510PW
DEFAULT := n
endef
TARGET_DEVICES += arcadyan_arv4510pw
@ -219,5 +220,6 @@ define Device/siemens_gigaset-sx76x
ltq-adsl-app ppp-mod-pppoe \
kmod-ath5k wpad-basic-openssl
SUPPORTED_DEVICES += GIGASX76X
DEFAULT := n
endef
TARGET_DEVICES += siemens_gigaset-sx76x

View File

@ -12,6 +12,7 @@ define Device/alphanetworks_asl56026
DEVICE_ALT0_VENDOR := BT Openreach
DEVICE_ALT0_MODEL := ECI VDSL Modem V-2FUb/I
IMAGE_SIZE := 7488k
DEFAULT := n
endef
TARGET_DEVICES += alphanetworks_asl56026
@ -38,6 +39,7 @@ define Device/arcadyan_vg3503j
DEVICE_MODEL := ECI VDSL Modem V-2FUb/R
IMAGE_SIZE := 8000k
SUPPORTED_DEVICES += VG3503J
DEFAULT := n
endef
TARGET_DEVICES += arcadyan_vg3503j

View File

@ -4,6 +4,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
/ {
compatible = "xiaomi,mi-router-3-pro", "mediatek,mt7621-soc";
@ -24,43 +25,60 @@
leds {
compatible = "gpio-leds";
led_status_red: status_red {
led_status_red: led-0 {
label = "red:status";
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
led_status_blue: status_blue {
led_status_blue: led-1 {
label = "blue:status";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_status_yellow: status_yellow {
led_status_yellow: led-2 {
label = "yellow:status";
color = <LED_COLOR_ID_YELLOW>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
wan_amber {
led-3 {
label = "amber:wan";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_WAN;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "dsa-0.0:04:1Gbps";
linux,default-trigger = "mt7530-0:04:1Gbps";
};
lan3_amber {
led-4 {
label = "amber:lan3";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <3>;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "dsa-0.0:03:1Gbps";
linux,default-trigger = "mt7530-0:03:1Gbps";
};
lan2_amber {
led-5 {
label = "amber:lan2";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <2>;
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "dsa-0.0:02:1Gbps";
linux,default-trigger = "mt7530-0:02:1Gbps";
};
lan1_amber {
led-6 {
label = "amber:lan1";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <1>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
linux,default-trigger = "dsa-0.0:01:1Gbps";
linux,default-trigger = "mt7530-0:01:1Gbps";
};
};

View File

@ -1,4 +1,5 @@
#include "mt7621_xiaomi_nand_128m.dtsi"
#include <dt-bindings/leds/common.h>
/ {
compatible = "xiaomi,mi-router-3g", "mediatek,mt7621-soc";
@ -15,37 +16,51 @@
leds {
compatible = "gpio-leds";
led_status_red: status_red {
led_status_red: led-0 {
label = "red:status";
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
led_status_blue: status_blue {
led_status_blue: led-1 {
label = "blue:status";
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_status_yellow: status_yellow {
led_status_yellow: led-2 {
label = "yellow:status";
color = <LED_COLOR_ID_YELLOW>;
function = LED_FUNCTION_STATUS;
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
wan_amber {
led-3 {
label = "amber:wan";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_WAN;
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
linux,default-trigger = "dsa-0.0:01:1Gbps";
linux,default-trigger = "mt7530-0:01:1Gbps";
};
lan1_amber {
led-4 {
label = "amber:lan1";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <1>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
linux,default-trigger = "dsa-0.0:03:1Gbps";
linux,default-trigger = "mt7530-0:03:1Gbps";
};
lan2_amber {
led-5 {
label = "amber:lan2";
color = <LED_COLOR_ID_AMBER>;
function = LED_FUNCTION_LAN;
function-enumerator = <2>;
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "dsa-0.0:02:1Gbps";
linux,default-trigger = "mt7530-0:02:1Gbps";
};
};

View File

@ -64,11 +64,7 @@ int fe_connect_phy_node(struct fe_priv *priv, struct device_node *phy_node, int
{
const __be32 *_phy_addr = NULL;
struct phy_device *phydev;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
int phy_mode;
#else
phy_interface_t phy_mode = PHY_INTERFACE_MODE_NA;
#endif
_phy_addr = of_get_property(phy_node, "reg", NULL);
@ -77,13 +73,8 @@ int fe_connect_phy_node(struct fe_priv *priv, struct device_node *phy_node, int
return -EINVAL;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
phy_mode = of_get_phy_mode(phy_node);
if (phy_mode < 0) {
#else
of_get_phy_mode(phy_node, &phy_mode);
if (phy_mode == PHY_INTERFACE_MODE_NA) {
#endif
dev_err(priv->dev, "incorrect phy-mode %d\n", phy_mode);
priv->phy->phy_node[port] = NULL;
return -EINVAL;

View File

@ -156,11 +156,7 @@ void rt2880_port_init(struct fe_priv *priv, struct device_node *np)
const __be32 *id = of_get_property(np, "reg", NULL);
const __be32 *link;
int size;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
int phy_mode;
#else
phy_interface_t phy_mode = PHY_INTERFACE_MODE_NA;
#endif
if (!id || (be32_to_cpu(*id) != 0)) {
pr_err("%s: invalid port id\n", np->name);
@ -176,11 +172,7 @@ void rt2880_port_init(struct fe_priv *priv, struct device_node *np)
return;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
phy_mode = of_get_phy_mode(np);
#else
of_get_phy_mode(np, &phy_mode);
#endif
switch (phy_mode) {
case PHY_INTERFACE_MODE_RGMII:
break;

View File

@ -1096,11 +1096,7 @@ poll_again:
return rx_done;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
static void fe_tx_timeout(struct net_device *dev)
#else
static void fe_tx_timeout(struct net_device *dev, unsigned int txqueue)
#endif
{
struct fe_priv *priv = netdev_priv(dev);
struct fe_tx_ring *ring = &priv->tx_ring;

View File

@ -144,11 +144,7 @@ static void mt7620_port_init(struct fe_priv *priv, struct device_node *np)
struct mt7620_gsw *gsw = (struct mt7620_gsw *)priv->soc->swpriv;
const __be32 *_id = of_get_property(np, "reg", NULL);
const __be32 *phy_addr;
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
int phy_mode;
#else
phy_interface_t phy_mode = PHY_INTERFACE_MODE_NA;
#endif
int size, id;
int shift = 12;
u32 val, mask = 0;
@ -178,11 +174,7 @@ static void mt7620_port_init(struct fe_priv *priv, struct device_node *np)
priv->phy->phy_fixed[id] = NULL;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
phy_mode = of_get_phy_mode(np);
#else
of_get_phy_mode(np, &phy_mode);
#endif
switch (phy_mode) {
case PHY_INTERFACE_MODE_RGMII:
mask = 0;

View File

@ -386,11 +386,6 @@ static const struct pinconf_ops aw9523_pinconf_ops = {
.is_generic = true,
};
#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 5, 0)
#define GPIO_LINE_DIRECTION_IN 1
#define GPIO_LINE_DIRECTION_OUT 0
#endif
/*
* aw9523_get_pin_direction - Get pin direction
* @regmap: Regmap structure
@ -437,11 +432,6 @@ static int aw9523_get_port_state(struct regmap *regmap, u8 pin,
return regmap_read(regmap, reg, state);
}
#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 5, 0)
#undef GPIO_LINE_DIRECTION_IN
#undef GPIO_LINE_DIRECTION_OUT
#endif
static int aw9523_gpio_irq_type(struct irq_data *d, unsigned int type)
{
switch (type) {

View File

@ -124,6 +124,7 @@ define Device/asus_rt-n12p
DEVICE_VENDOR := ASUS
DEVICE_MODEL := RT-N11P/RT-N12+/RT-N12Eb1
SUPPORTED_DEVICES += rt-n12p
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n12p
@ -200,6 +201,7 @@ define Device/comfast_cf-wr800n
DEVICE_VENDOR := Comfast
DEVICE_MODEL := CF-WR800N
SUPPORTED_DEVICES += cf-wr800n
DEFAULT := n
endef
TARGET_DEVICES += comfast_cf-wr800n
@ -250,6 +252,7 @@ define Device/dlink_dwr-116-a1
DLINK_ROM_ID := DLK6E3803001
DLINK_FAMILY_MEMBER := 0x6E38
DLINK_FIRMWARE_SIZE := 0x7E0000
DEFAULT := n
endef
TARGET_DEVICES += dlink_dwr-116-a1
@ -864,6 +867,7 @@ define Device/netgear_wn3000rp-v3
DEVICE_MODEL := WN3000RP
DEVICE_VARIANT := v3
SUPPORTED_DEVICES += wn3000rpv3
DEFAULT := n
endef
TARGET_DEVICES += netgear_wn3000rp-v3
@ -1449,6 +1453,7 @@ define Device/zbtlink_zbt-wr8305rt
DEVICE_MODEL := ZBT-WR8305RT
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
SUPPORTED_DEVICES += zbt-wr8305rt
DEFAULT := n
endef
TARGET_DEVICES += zbtlink_zbt-wr8305rt

View File

@ -68,6 +68,7 @@ define Device/asus_rt-n10p-v3
DEVICE_VENDOR := ASUS
DEVICE_MODEL := RT-N10P
DEVICE_VARIANT := V3
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n10p-v3
@ -82,6 +83,7 @@ define Device/asus_rt-n11p-b1
DEVICE_ALT1_VENDOR := ASUS
DEVICE_ALT1_MODEL := RT-N300
DEVICE_ALT1_VARIANT := B1
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n11p-b1

View File

@ -54,6 +54,7 @@ define Device/belkin_f5d8235-v1
DEVICE_PACKAGES := kmod-switch-rtl8366s kmod-usb-ohci kmod-usb-ohci-pci \
kmod-usb2 kmod-usb2-pci kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += f5d8235-v1
DEFAULT := n
endef
TARGET_DEVICES += belkin_f5d8235-v1

View File

@ -43,6 +43,7 @@ define Device/7links_px-4885-8m
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb2 kmod-usb-ohci \
kmod-usb-ledtrig-usbport kmod-leds-gpio
SUPPORTED_DEVICES += px-4885-8M
DEFAULT := n
endef
TARGET_DEVICES += 7links_px-4885-8m
@ -53,6 +54,7 @@ define Device/8devices_carambola
DEVICE_MODEL := Carambola
DEVICE_PACKAGES :=
SUPPORTED_DEVICES += carambola
DEFAULT := n
endef
TARGET_DEVICES += 8devices_carambola
@ -62,6 +64,7 @@ define Device/accton_wr6202
DEVICE_VENDOR := Accton
DEVICE_MODEL := WR6202
SUPPORTED_DEVICES += wr6202
DEFAULT := n
endef
TARGET_DEVICES += accton_wr6202
@ -81,6 +84,7 @@ define Device/alfa-network_w502u
DEVICE_VENDOR := ALFA
DEVICE_MODEL := Networks W502U
SUPPORTED_DEVICES += w502u
DEFAULT := n
endef
TARGET_DEVICES += alfa-network_w502u
@ -104,6 +108,7 @@ define Device/allnet_all0256n-8m
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := rssileds
SUPPORTED_DEVICES += all0256n-8M
DEFAULT := n
endef
TARGET_DEVICES += allnet_all0256n-8m
@ -127,6 +132,7 @@ define Device/allnet_all5003
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport \
kmod-i2c-gpio kmod-hwmon-lm92 kmod-gpio-pcf857x
SUPPORTED_DEVICES += all5003
DEFAULT := n
endef
TARGET_DEVICES += allnet_all5003
@ -138,6 +144,7 @@ define Device/alphanetworks_asl26555-16m
DEVICE_VARIANT := 16M
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += asl26555 asl26555-16M
DEFAULT := n
endef
TARGET_DEVICES += alphanetworks_asl26555-16m
@ -148,6 +155,7 @@ define Device/alphanetworks_asl26555-8m
DEVICE_MODEL := ASL26555
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += asl26555 asl26555-8M
DEFAULT := n
endef
TARGET_DEVICES += alphanetworks_asl26555-8m
@ -159,6 +167,7 @@ define Device/arcwireless_freestation5
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-rt2500-usb kmod-rt2800-usb \
kmod-rt2x00-usb
SUPPORTED_DEVICES += freestation5
DEFAULT := n
endef
TARGET_DEVICES += arcwireless_freestation5
@ -201,6 +210,7 @@ define Device/asiarf_awm002-evb-8m
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-gpio
SUPPORTED_DEVICES += awm002-evb-8M
DEFAULT := n
endef
TARGET_DEVICES += asiarf_awm002-evb-8m
@ -232,6 +242,7 @@ define Device/asus_rt-n13u
DEVICE_MODEL := RT-N13U
DEVICE_PACKAGES := kmod-leds-gpio kmod-rt2800-pci kmod-usb-dwc2
SUPPORTED_DEVICES += rt-n13u
DEFAULT := n
endef
TARGET_DEVICES += asus_rt-n13u
@ -262,6 +273,7 @@ define Device/aximcom_mr-102n
DEVICE_VENDOR := AXIMCom
DEVICE_MODEL := MR-102N
SUPPORTED_DEVICES += mr-102n
DEFAULT := n
endef
TARGET_DEVICES += aximcom_mr-102n
@ -274,6 +286,7 @@ define Device/aztech_hw550-3g
DEVICE_ALT0_MODEL := ALL0239-3G
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += hw550-3g
DEFAULT := n
endef
TARGET_DEVICES += aztech_hw550-3g
@ -285,6 +298,7 @@ define Device/belkin_f5d8235-v2
DEVICE_VARIANT := v2
DEVICE_PACKAGES := kmod-switch-rtl8366rb
SUPPORTED_DEVICES += f5d8235-v2
DEFAULT := n
endef
TARGET_DEVICES += belkin_f5d8235-v2
@ -294,6 +308,7 @@ define Device/belkin_f7c027
DEVICE_VENDOR := Belkin
DEVICE_MODEL := F7C027
SUPPORTED_DEVICES += f7c027
DEFAULT := n
endef
TARGET_DEVICES += belkin_f7c027
@ -320,6 +335,7 @@ define Device/dlink_dap-1350
DEVICE_VENDOR := D-Link
DEVICE_MODEL := DAP-1350
SUPPORTED_DEVICES += dap-1350
DEFAULT := n
endef
TARGET_DEVICES += dlink_dap-1350
@ -369,6 +385,7 @@ define Device/dlink_dir-300-b7
DEVICE_MODEL := DIR-300
DEVICE_VARIANT := B7
SUPPORTED_DEVICES += dir-300-b7
DEFAULT := n
endef
TARGET_DEVICES += dlink_dir-300-b7
@ -379,6 +396,7 @@ define Device/dlink_dir-320-b1
DEVICE_MODEL := DIR-320
DEVICE_VARIANT := B1
SUPPORTED_DEVICES += dir-320-b1
DEFAULT := n
endef
TARGET_DEVICES += dlink_dir-320-b1
@ -445,6 +463,7 @@ define Device/dlink_dir-620-a1
DEVICE_MODEL := DIR-620
DEVICE_VARIANT := A1
SUPPORTED_DEVICES += dir-620-a1
DEFAULT := n
endef
TARGET_DEVICES += dlink_dir-620-a1
@ -455,6 +474,7 @@ define Device/dlink_dir-620-d1
DEVICE_MODEL := DIR-620
DEVICE_VARIANT := D1
SUPPORTED_DEVICES += dir-620-d1
DEFAULT := n
endef
TARGET_DEVICES += dlink_dir-620-d1
@ -474,6 +494,7 @@ define Device/dlink_dwr-512-b
IMAGE/sysupgrade.bin := mkdlinkfw | pad-rootfs | append-metadata
IMAGE/factory.bin := mkdlinkfw | pad-rootfs | mkdlinkfw-factory
SUPPORTED_DEVICES += dwr-512-b
DEFAULT := n
endef
TARGET_DEVICES += dlink_dwr-512-b
@ -484,6 +505,7 @@ define Device/easyacc_wizard-8800
DEVICE_VENDOR := EasyAcc
DEVICE_MODEL := WIZARD 8800
SUPPORTED_DEVICES += wizard8800
DEFAULT := n
endef
TARGET_DEVICES += easyacc_wizard-8800
@ -558,6 +580,7 @@ define Device/hame_mpr-a2
DEVICE_VARIANT := A2
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2
SUPPORTED_DEVICES += mpr-a2
DEFAULT := n
endef
TARGET_DEVICES += hame_mpr-a2
@ -611,6 +634,7 @@ define Device/huawei_hg255d
DEVICE_VENDOR := HuaWei
DEVICE_MODEL := HG255D
SUPPORTED_DEVICES += hg255d
DEFAULT := n
endef
TARGET_DEVICES += huawei_hg255d
@ -623,6 +647,7 @@ define Device/intenso_memory2move
DEVICE_PACKAGES := kmod-usb2 kmod-usb-storage kmod-scsi-core kmod-fs-ext4 \
kmod-fs-vfat block-mount
SUPPORTED_DEVICES += m2m
DEFAULT := n
endef
TARGET_DEVICES += intenso_memory2move
@ -668,6 +693,7 @@ define Device/mofinetwork_mofi3500-3gn
DEVICE_VENDOR := MoFi Network
DEVICE_MODEL := MOFI3500-3GN
SUPPORTED_DEVICES += mofi3500-3gn
DEFAULT := n
endef
TARGET_DEVICES += mofinetwork_mofi3500-3gn
@ -730,6 +756,7 @@ define Device/nexx_wt1520-8m
DEVICE_MODEL := WT1520
DEVICE_VARIANT := 8M
SUPPORTED_DEVICES += wt1520-8M
DEFAULT := n
endef
TARGET_DEVICES += nexx_wt1520-8m
@ -741,6 +768,7 @@ define Device/nixcore_x1-16m
DEVICE_VARIANT := 16M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += nixcore-x1 nixcore-x1-16M
DEFAULT := n
endef
TARGET_DEVICES += nixcore_x1-16m
@ -752,6 +780,7 @@ define Device/nixcore_x1-8m
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += nixcore-x1 nixcore-x1-8M
DEFAULT := n
endef
TARGET_DEVICES += nixcore_x1-8m
@ -763,6 +792,7 @@ define Device/olimex_rt5350f-olinuxino
DEVICE_MODEL := RT5350F-OLinuXino
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += rt5350f-olinuxino
DEFAULT := n
endef
TARGET_DEVICES += olimex_rt5350f-olinuxino
@ -774,6 +804,7 @@ define Device/olimex_rt5350f-olinuxino-evb
DEVICE_MODEL := RT5350F-OLinuXino-EVB
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += rt5350f-olinuxino-evb
DEFAULT := n
endef
TARGET_DEVICES += olimex_rt5350f-olinuxino-evb
@ -792,6 +823,7 @@ define Device/omnima_miniembwifi
DEVICE_VENDOR := Omnima
DEVICE_MODEL := MiniEMBWiFi
SUPPORTED_DEVICES += miniembwifi
DEFAULT := n
endef
TARGET_DEVICES += omnima_miniembwifi
@ -835,6 +867,7 @@ define Device/planex_mzk-wdpr
DEVICE_VENDOR := Planex
DEVICE_MODEL := MZK-WDPR
SUPPORTED_DEVICES += mzk-wdpr
DEFAULT := n
endef
TARGET_DEVICES += planex_mzk-wdpr
@ -887,6 +920,7 @@ define Device/poray_m4-8m
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := kmod-usb2
SUPPORTED_DEVICES += m4-8M
DEFAULT := n
endef
TARGET_DEVICES += poray_m4-8m
@ -900,6 +934,7 @@ define Device/poray_x5
DEVICE_MODEL := X5/X6
DEVICE_PACKAGES := kmod-usb2
SUPPORTED_DEVICES += x5
DEFAULT := n
endef
TARGET_DEVICES += poray_x5
@ -913,6 +948,7 @@ define Device/poray_x8
DEVICE_MODEL := X8
DEVICE_PACKAGES := kmod-usb2
SUPPORTED_DEVICES += x8
DEFAULT := n
endef
TARGET_DEVICES += poray_x8
@ -923,6 +959,7 @@ define Device/prolink_pwh2004
DEVICE_MODEL := PWH2004
DEVICE_PACKAGES :=
SUPPORTED_DEVICES += pwh2004
DEFAULT := n
endef
TARGET_DEVICES += prolink_pwh2004
@ -973,6 +1010,7 @@ define Device/teltonika_rut5xx
DEVICE_VENDOR := Teltonika
DEVICE_MODEL := RUT5XX
SUPPORTED_DEVICES += rut5xx
DEFAULT := n
endef
TARGET_DEVICES += teltonika_rut5xx
@ -1042,6 +1080,7 @@ define Device/trendnet_tew-714tru
DEVICE_VENDOR := TRENDnet
DEVICE_MODEL := TEW-714TRU
SUPPORTED_DEVICES += tew-714tru
DEFAULT := n
endef
TARGET_DEVICES += trendnet_tew-714tru
@ -1077,6 +1116,7 @@ define Device/unbranded_wr512-3gn-8m
DEVICE_MODEL := WR512-3GN
DEVICE_VARIANT := 8M
SUPPORTED_DEVICES += wr512-3gn-8M
DEFAULT := n
endef
TARGET_DEVICES += unbranded_wr512-3gn-8m
@ -1108,6 +1148,7 @@ define Device/upvel_ur-336un
DEVICE_MODEL := UR-336UN
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport
SUPPORTED_DEVICES += ur-336un
DEFAULT := n
endef
TARGET_DEVICES += upvel_ur-336un
@ -1119,6 +1160,7 @@ define Device/vocore_vocore-16m
DEVICE_VARIANT := 16M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += vocore vocore-16M
DEFAULT := n
endef
TARGET_DEVICES += vocore_vocore-16m
@ -1130,6 +1172,7 @@ define Device/vocore_vocore-8m
DEVICE_VARIANT := 8M
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-i2c-ralink kmod-spi-dev
SUPPORTED_DEVICES += vocore vocore-8M
DEFAULT := n
endef
TARGET_DEVICES += vocore_vocore-8m
@ -1149,6 +1192,7 @@ define Device/wiznet_wizfi630a
DEVICE_VENDOR := WIZnet
DEVICE_MODEL := WizFi630A
SUPPORTED_DEVICES += wizfi630a
DEFAULT := n
endef
TARGET_DEVICES += wiznet_wizfi630a
@ -1158,6 +1202,7 @@ define Device/zorlik_zl5900v2
DEVICE_VENDOR := Zorlik
DEVICE_MODEL := ZL5900V2
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2
DEFAULT := n
endef
TARGET_DEVICES += zorlik_zl5900v2
@ -1180,6 +1225,7 @@ define Device/zyxel_keenetic
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ehci kmod-usb-ledtrig-usbport \
kmod-usb-dwc2
SUPPORTED_DEVICES += kn
DEFAULT := n
endef
TARGET_DEVICES += zyxel_keenetic
@ -1190,6 +1236,7 @@ define Device/zyxel_keenetic-4g-b
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := Keenetic 4G
DEVICE_VARIANT := B
DEFAULT := n
endef
TARGET_DEVICES += zyxel_keenetic-4g-b
@ -1200,6 +1247,7 @@ define Device/zyxel_keenetic-lite-b
DEVICE_VENDOR := ZyXEL
DEVICE_MODEL := Keenetic Lite
DEVICE_VARIANT := B
DEFAULT := n
endef
TARGET_DEVICES += zyxel_keenetic-lite-b

View File

@ -73,6 +73,7 @@ define Device/loewe_wmdr-143n
DEVICE_VENDOR := Loewe
DEVICE_MODEL := WMDR-143N
SUPPORTED_DEVICES += wmdr-143n
DEFAULT := n
endef
TARGET_DEVICES += loewe_wmdr-143n

View File

@ -108,8 +108,6 @@
rgmii_phy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
pinctrl-0 = <&eth_phy0_reset_pin>;
pinctrl-names = "default";
};
};
@ -117,24 +115,10 @@
rgmii_phy1: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
pinctrl-0 = <&eth_phy1_reset_pin>;
pinctrl-names = "default";
};
};
&pinctrl {
gmac0 {
eth_phy0_reset_pin: eth-phy0-reset-pin {
rockchip,pins = <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
gmac1 {
eth_phy1_reset_pin: eth-phy1-reset-pin {
rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
leds {
power_led_pin: power-led-pin {
rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;

View File

@ -16,6 +16,13 @@ pc-engines-apu1|pc-engines-apu2|pc-engines-apu3|pc-engines-apu4|pc-engines-apu5|
ucidef_set_led_netdev "lan" "LAN" "apu:green:2" "br-lan"
ucidef_set_led_default "diag" "DIAG" "apu:green:1" "1"
;;
sophos-sg-105wr1|sophos-sg-125wr1|sophos-sg-135wr1|sophos-xg-105wr1|sophos-xg-125wr1|sophos-xg-135wr1)
ucidef_set_led_netdev "wlan" "WiFi" "ath9k-phy0" "phy0tpt"
;;
sophos-sg-105wr2|sophos-sg-125wr2|sophos-sg-135wr2|sophos-xg-105wr2|sophos-xg-125wr2|sophos-xg-135wr2|
sophos-sg-105wr3|sophos-sg-125wr3|sophos-sg-135wr3|sophos-xg-105wr3|sophos-xg-125wr3|sophos-xg-135wr3)
ucidef_set_led_netdev "wlan" "WiFi" "ath10k-phy0" "phy0tpt"
;;
traverse-technologies-geos)
ucidef_set_led_netdev "lan" "LAN" "geos:1" "br-lan" "tx rx"
ucidef_set_led_netdev "wlan" "WiFi" "geos:2" "phy0tpt"

View File

@ -64,6 +64,10 @@ sophos-sg-135r2|sophos-xg-135r2| \
sophos-sg-135wr2|sophos-xg-135wr2)
ucidef_set_interfaces_lan_wan "eth0 eth2 eth3 eth4 eth5 eth6 eth7" "eth1"
;;
sophos-sg-135r3|sophos-xg-135r3| \
sophos-sg-135wr3|sophos-xg-135wr3)
ucidef_set_interfaces_lan_wan "eth0 eth1 eth2 eth3 eth5 eth7 eth8" "eth6"
;;
traverse-technologies-geos)
ucidef_set_interface_lan "eth0 eth1"
ucidef_add_atm_bridge "0" "35" "llc" "bridged"

View File

@ -7,11 +7,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ccache
PKG_VERSION:=4.8
PKG_VERSION:=4.8.1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/ccache/ccache/releases/download/v$(PKG_VERSION)
PKG_HASH:=b963ee3bf88d7266b8a0565e4ba685d5666357f0a7e364ed98adb0dc1191fcbb
PKG_HASH:=87959b6819530b3dcaeb39992f585b9fc2c7120302809741378097774919fb6f
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/cmake.mk