Received: by 10.213.65.68 with SMTP id h4csp1224252imn; Wed, 14 Mar 2018 13:25:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELudJPm31mg5VDH7jZwJQ+DdkJ10eLaXMNh+B8mPjkR3dP2XgVUsKVitN+o8YhcTRKZ+hNe1 X-Received: by 10.98.12.82 with SMTP id u79mr5517730pfi.192.1521059152219; Wed, 14 Mar 2018 13:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521059152; cv=none; d=google.com; s=arc-20160816; b=UHMXo1VQb59iOUjorD6vDOK18BblL9WKDnxEiVi+DWaSW+UtJiWow/cExN0K8TsTVn aEmjLCIyC54PbQrfyUdwtw6OApaO5Np9hGvwSwXsFsT+0Pobmp3HLDxlUwqgsvbGbHas uN9p1vKAYkRgNJYwgWVZXcJLQSoCuSMKggA+mPMMeRt3eRNHp6AZTZ29sZqBMQOClyXo jpEsE8Rq5XVc4Xm9ru2BMj6o2rKCKcpFcCKdQeXxBpGYOIYoD8ODKpQGHs5vq5i7Evkw shCPdmPjfciz6B4FqDGfocz2j3jsuxDeKhWnGkqUP2ch/U5qMSooVP/AFFmddN0qmlpO R0LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:cc:subject:date:to :from:arc-authentication-results; bh=CUb6FeSS/ixkWajAv11GdldFhkSDyxSVZHCRuACRI74=; b=pYnngkS1Jp+10vFzySvf31ebTVgjgWu1DaGWx7LeMqrb3nX0iZJDRpZUP/hC4S0xV/ HpaJtkYaghRbE6w+67s2hDPxjxrV5TES3IfpuxzKBqSamPiJjVtL/izm9COAARrVOoCX E2G0+1KO40Y/UEQ+630baISxJBuAKb3tyxfCkvqjl8RA2LtZLIugzetqJjckNZL8HXAT Hn0c7zREo3fnTjyDOMDAzPeis1WdLqquT0wWC1DEd4Cl30GLx/TSw2F6JAa3mNzz+/pS hf+HWN0naO07MGgsdKKdhPj9cN1EBODX0WFDToB+a9lq+NvHWIPCtrl+6xZPrR4puTYG +hPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a24si2608081pfc.36.2018.03.14.13.25.37; Wed, 14 Mar 2018 13:25:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446AbeCNUYZ (ORCPT + 99 others); Wed, 14 Mar 2018 16:24:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:38750 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752419AbeCNUYX (ORCPT ); Wed, 14 Mar 2018 16:24:23 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 60294B020; Wed, 14 Mar 2018 20:24:21 +0000 (UTC) From: NeilBrown To: Greg Kroah-Hartman Date: Thu, 15 Mar 2018 07:22:36 +1100 Subject: [PATCH 12/13] staging: mt7621-eth: mediatek: add Kconfig and Makefile Cc: devel@driverdev.osuosl.org, lkml , John Crispin Message-ID: <152105895639.22262.4809012060622510853.stgit@noble> In-Reply-To: <152105892255.22262.1902152685410223215.stgit@noble> References: <152105892255.22262.1902152685410223215.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Crispin This patch adds the Makefile and Kconfig required to make the driver build. Signed-off-by: John Crispin Signed-off-by: Felix Fietkau Signed-off-by: Michael Lee Signed-off-by: NeilBrown --- drivers/staging/Kconfig | 2 ++ drivers/staging/Makefile | 1 + drivers/staging/mt7621-eth/Kconfig | 39 +++++++++++++++++++++++++++++++++++ drivers/staging/mt7621-eth/Makefile | 14 +++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 drivers/staging/mt7621-eth/Kconfig create mode 100644 drivers/staging/mt7621-eth/Makefile diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index 4c872bf7c280..d9cddad71da2 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig @@ -132,4 +132,6 @@ source "drivers/staging/mt7621-dma/Kconfig" source "drivers/staging/mt7621-mmc/Kconfig" +source "drivers/staging/mt7621-eth/Kconfig" + endif # STAGING diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index 8ce10da1ab1d..2a7defcd6836 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile @@ -58,3 +58,4 @@ obj-$(CONFIG_SOC_MT7621) += mt7621-gpio/ obj-$(CONFIG_SOC_MT7621) += mt7621-spi/ obj-$(CONFIG_SOC_MT7621) += mt7621-dma/ obj-$(CONFIG_SOC_MT7621) += mt7621-mmc/ +obj-$(CONFIG_SOC_MT7621) += mt7621-eth/ diff --git a/drivers/staging/mt7621-eth/Kconfig b/drivers/staging/mt7621-eth/Kconfig new file mode 100644 index 000000000000..44ea86c7a96c --- /dev/null +++ b/drivers/staging/mt7621-eth/Kconfig @@ -0,0 +1,39 @@ +config NET_VENDOR_MEDIATEK_STAGING + bool "MediaTek ethernet driver - staging version" + depends on RALINK + ---help--- + If you have an MT7621 Mediatek SoC with ethernet, say Y. + +if NET_VENDOR_MEDIATEK_STAGING +choice + prompt "MAC type" + +config NET_MEDIATEK_MT7621 + bool "MT7621" + depends on MIPS && SOC_MT7621 + +endchoice + +config NET_MEDIATEK_SOC_STAGING + tristate "MediaTek SoC Gigabit Ethernet support" + depends on NET_VENDOR_MEDIATEK_STAGING + select PHYLIB + ---help--- + This driver supports the gigabit ethernet MACs in the + MediaTek SoC family. + +config NET_MEDIATEK_MDIO + def_bool NET_MEDIATEK_SOC_STAGING + depends on NET_MEDIATEK_MT7621 + select PHYLIB + +config NET_MEDIATEK_MDIO_MT7620 + def_bool NET_MEDIATEK_SOC_STAGING + depends on NET_MEDIATEK_MT7621 + select NET_MEDIATEK_MDIO + +config NET_MEDIATEK_GSW_MT7621 + def_tristate NET_MEDIATEK_SOC_STAGING + depends on NET_MEDIATEK_MT7621 + +endif #NET_VENDOR_MEDIATEK_STAGING diff --git a/drivers/staging/mt7621-eth/Makefile b/drivers/staging/mt7621-eth/Makefile new file mode 100644 index 000000000000..018bcc3596b3 --- /dev/null +++ b/drivers/staging/mt7621-eth/Makefile @@ -0,0 +1,14 @@ +# +# Makefile for the Ralink SoCs built-in ethernet macs +# + +mtk-eth-soc-y += mtk_eth_soc.o ethtool.o + +mtk-eth-soc-$(CONFIG_NET_MEDIATEK_MDIO) += mdio.o +mtk-eth-soc-$(CONFIG_NET_MEDIATEK_MDIO_MT7620) += mdio_mt7620.o + +mtk-eth-soc-$(CONFIG_NET_MEDIATEK_MT7621) += soc_mt7621.o + +obj-$(CONFIG_NET_MEDIATEK_GSW_MT7621) += gsw_mt7621.o + +obj-$(CONFIG_NET_MEDIATEK_SOC_STAGING) += mtk-eth-soc.o