From patchwork Thu Feb 19 01:25:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Olivari X-Patchwork-Id: 441515 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6993A14008F for ; Thu, 19 Feb 2015 12:25:27 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3460828C177; Thu, 19 Feb 2015 02:25:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 1D86128C176 for ; Thu, 19 Feb 2015 02:25:11 +0100 (CET) X-policyd-weight: using cached result; rate: -7.6 Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 19 Feb 2015 02:25:10 +0100 (CET) Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 633AE140775; Thu, 19 Feb 2015 01:25:13 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id 55E81140779; Thu, 19 Feb 2015 01:25:13 +0000 (UTC) Received: from mathieu-linux.qualcomm.com (qf-scl1nat.qualcomm.com [207.114.132.30]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mathieu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0EC29140775; Thu, 19 Feb 2015 01:25:12 +0000 (UTC) From: Mathieu Olivari To: blogic@openwrt.org, hkallweit1@gmail.com, nbd@openwrt.org Date: Wed, 18 Feb 2015 17:25:05 -0800 Message-Id: <1424309105-31642-3-git-send-email-mathieu@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1424309105-31642-1-git-send-email-mathieu@codeaurora.org> References: <1424309105-31642-1-git-send-email-mathieu@codeaurora.org> X-Virus-Scanned: ClamAV using ClamSMTP Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH 2/2] kernel: Add a selectable option for ar8xxx X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" AR8xxx driver covers all the QCA switch families. Most architectures usually build it in the kernel, but it may be valuable for some targets to build it as a module for more flexibility. Signed-off-by: Mathieu Olivari --- package/kernel/linux/modules/netdevices.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index b5dc92f..cce1b90 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -165,6 +165,22 @@ endef $(eval $(call KernelPackage,swconfig)) +define KernelPackage/switch-ar8xxx + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Qualcomm Atheros AR82XX/AR83XX switch support + DEPENDS:=+kmod-swconfig + KCONFIG:=CONFIG_AR8XXX_PHY + FILES:=$(LINUX_DIR)/drivers/net/phy/ar8xxx.ko + AUTOLOAD:=$(call AutoLoad,42,ar8xxx) +endef + +define KernelPackage/switch-ar8xxx/description + Qualcomm atheros AR82XX/AR83XX switch support +endef + +$(eval $(call KernelPackage,switch-ar8xxx)) + + define KernelPackage/switch-ip17xx SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=IC+ IP17XX switch support