summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski2020-07-10 21:18:45 +0000
committerHauke Mehrtens2025-03-15 12:52:40 +0000
commit62bf0287326dcfab4596d5f4cad77cd9e7f8f03b (patch)
tree138f8050c1fe093931e00fbd13e55ec914b49507
parentf4ba980f154fabc63a7164309543312b320cbfd7 (diff)
downloadopenwrt-62bf0287326dcfab4596d5f4cad77cd9e7f8f03b.tar.gz
lantiq: xrx200: convert switch driver to package
The next commit converts the firmware used by this driver to a package. Due to the fact that the driver is shipped as a package the firmware is already available. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Link: https://github.com/openwrt/openwrt/pull/17669 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/lantiq/modules.mk18
-rw-r--r--target/linux/lantiq/xrx200/config-6.63
-rw-r--r--target/linux/lantiq/xrx200/target.mk1
-rw-r--r--target/linux/lantiq/xrx200_legacy/config-6.62
-rw-r--r--target/linux/lantiq/xrx200_legacy/target.mk1
5 files changed, 21 insertions, 4 deletions
diff --git a/target/linux/lantiq/modules.mk b/target/linux/lantiq/modules.mk
index 14140b1095..e1aea4b039 100644
--- a/target/linux/lantiq/modules.mk
+++ b/target/linux/lantiq/modules.mk
@@ -17,3 +17,21 @@ endef
$(eval $(call KernelPackage,i2c-lantiq))
+define KernelPackage/dsa-gswip
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Lantiq xRx200/xRx300/xRx330 switch support
+ DEPENDS:=@TARGET_lantiq_xrx200||TARGET_lantiq_xrx200_legacy
+ KCONFIG:= \
+ CONFIG_NET_DSA_LANTIQ_GSWIP \
+ CONFIG_NET_DSA_TAG_GSWIP
+ FILES:= \
+ $(LINUX_DIR)/drivers/net/dsa/lantiq_gswip.ko \
+ $(LINUX_DIR)/net/dsa/tag_gswip.ko
+ AUTOLOAD:=$(call AutoLoad,41,lantiq_gswip)
+endef
+
+define KernelPackage/dsa-gswip/description
+ Lantiq xRx200/xRx300/xRx330 switch support
+endef
+
+$(eval $(call KernelPackage,dsa-gswip))
diff --git a/target/linux/lantiq/xrx200/config-6.6 b/target/linux/lantiq/xrx200/config-6.6
index 4819c962c8..a3829135b9 100644
--- a/target/linux/lantiq/xrx200/config-6.6
+++ b/target/linux/lantiq/xrx200/config-6.6
@@ -50,13 +50,12 @@ CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_NEED_SRCU_NMI_SAFE=y
CONFIG_NET_DEVLINK=y
CONFIG_NET_DSA=y
-CONFIG_NET_DSA_LANTIQ_GSWIP=y
-CONFIG_NET_DSA_TAG_GSWIP=y
CONFIG_NET_FLOW_LIMIT=y
CONFIG_NET_SWITCHDEV=y
CONFIG_NLS=y
CONFIG_NR_CPUS=2
CONFIG_PADATA=y
+CONFIG_PAHOLE_HAS_LANG_EXCLUDE=y
CONFIG_PCI=y
CONFIG_PCIEPORTBUS=y
CONFIG_PCIE_LANTIQ=y
diff --git a/target/linux/lantiq/xrx200/target.mk b/target/linux/lantiq/xrx200/target.mk
index 0f119edd6f..01ac3d7fd6 100644
--- a/target/linux/lantiq/xrx200/target.mk
+++ b/target/linux/lantiq/xrx200/target.mk
@@ -12,6 +12,7 @@ DEFAULT_PACKAGES+=kmod-leds-gpio \
kmod-ltq-atm-vr9 \
kmod-ltq-deu-vr9 \
kmod-ltq-ptm-vr9 \
+ kmod-dsa-gswip \
ltq-vdsl-vr9-app \
dsl-vrx200-firmware-xdsl-a \
dsl-vrx200-firmware-xdsl-b-patch \
diff --git a/target/linux/lantiq/xrx200_legacy/config-6.6 b/target/linux/lantiq/xrx200_legacy/config-6.6
index 9bb65cff07..1bf5f70ff3 100644
--- a/target/linux/lantiq/xrx200_legacy/config-6.6
+++ b/target/linux/lantiq/xrx200_legacy/config-6.6
@@ -37,8 +37,6 @@ CONFIG_MIPS_VPE_LOADER_TOM=y
CONFIG_NEED_SRCU_NMI_SAFE=y
CONFIG_NET_DEVLINK=y
CONFIG_NET_DSA=y
-CONFIG_NET_DSA_LANTIQ_GSWIP=y
-CONFIG_NET_DSA_TAG_GSWIP=y
CONFIG_NET_FLOW_LIMIT=y
CONFIG_NET_SWITCHDEV=y
CONFIG_NLS=y
diff --git a/target/linux/lantiq/xrx200_legacy/target.mk b/target/linux/lantiq/xrx200_legacy/target.mk
index d9a6fff651..6ca039e0ec 100644
--- a/target/linux/lantiq/xrx200_legacy/target.mk
+++ b/target/linux/lantiq/xrx200_legacy/target.mk
@@ -13,6 +13,7 @@ DEFAULT_PACKAGES+=kmod-leds-gpio \
kmod-ltq-deu-vr9 \
kmod-ltq-ptm-vr9 \
ltq-vdsl-vr9-app \
+ kmod-dsa-gswip \
dsl-vrx200-firmware-xdsl-a \
dsl-vrx200-firmware-xdsl-b-patch \
ppp-mod-pppoa