Aleksander Jan Bajkowski 62bf028732 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>
2025-03-15 13:52:40 +01:00

38 lines
1001 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2010 OpenWrt.org
I2C_LANTIQ_MODULES:= \
CONFIG_I2C_LANTIQ:drivers/i2c/busses/i2c-lantiq
define KernelPackage/i2c-lantiq
TITLE:=Lantiq I2C controller
$(call i2c_defaults,$(I2C_LANTIQ_MODULES),52)
DEPENDS:=+kmod-i2c-core @TARGET_lantiq_falcon
endef
define KernelPackage/i2c-lantiq/description
Kernel support for the Lantiq/Falcon I2C controller
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))