From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Steven J. Hill" Subject: [PATCH net-next v11 09/10] netdev: cavium: octeon: Add Octeon III BGX Ethernet building Date: Mon, 4 Jun 2018 17:00:16 -0500 Message-ID: <1528149617-8964-10-git-send-email-steven.hill@cavium.com> References: <1528149617-8964-1-git-send-email-steven.hill@cavium.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Carlos Munoz , "Steven J. Hill" To: netdev@vger.kernel.org Return-path: Received: from mail-sn1nam01on0065.outbound.protection.outlook.com ([104.47.32.65]:11264 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751786AbeFDWZK (ORCPT ); Mon, 4 Jun 2018 18:25:10 -0400 In-Reply-To: <1528149617-8964-1-git-send-email-steven.hill@cavium.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Carlos Munoz Add the build and configuration files for the BGX Ethernet. Signed-off-by: Carlos Munoz Signed-off-by: Steven J. Hill --- drivers/net/ethernet/cavium/Kconfig | 22 +++++++++++++++++++++- drivers/net/ethernet/cavium/octeon/Makefile | 8 +++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/cavium/Kconfig b/drivers/net/ethernet/cavium/Kconfig index 043e3c1..3b9709d 100644 --- a/drivers/net/ethernet/cavium/Kconfig +++ b/drivers/net/ethernet/cavium/Kconfig @@ -4,7 +4,7 @@ config NET_VENDOR_CAVIUM bool "Cavium ethernet drivers" - depends on PCI + depends on PCI || CAVIUM_OCTEON_SOC default y ---help--- Select this option if you want enable Cavium network support. @@ -100,4 +100,24 @@ config LIQUIDIO_VF will be called liquidio_vf. MSI-X interrupt support is required for this driver to work correctly +config OCTEON3_BGX_PORT + tristate "Cavium Octeon III BGX port support" + depends on CAVIUM_OCTEON_SOC + ---help--- + This driver adds support for Cavium Octeon III BGX ports. BGX ports + support sgmii, rgmii, xaui, rxaui, xlaui, xfi, 10KR and 40KR modes. + + Say Y to use the management port on Octeon III boards or to use + any other ethernet port. + +config OCTEON3_ETHERNET + tristate "Cavium OCTEON III PKI/PKO Ethernet support" + depends on CAVIUM_OCTEON_SOC + select OCTEON_BGX_PORT + select OCTEON_FPA3 + select FW_LOADER + ---help--- + Support for 'BGX' Ethernet via PKI/PKO units. No support for + cn70xx chips, use OCTEON_ETHERNET instead. + endif # NET_VENDOR_CAVIUM diff --git a/drivers/net/ethernet/cavium/octeon/Makefile b/drivers/net/ethernet/cavium/octeon/Makefile index efa41c1..1939c84 100644 --- a/drivers/net/ethernet/cavium/octeon/Makefile +++ b/drivers/net/ethernet/cavium/octeon/Makefile @@ -1,5 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0 # # Makefile for the Cavium network device drivers. # -obj-$(CONFIG_OCTEON_MGMT_ETHERNET) += octeon_mgmt.o +obj-$(CONFIG_OCTEON_MGMT_ETHERNET) += octeon_mgmt.o +obj-$(CONFIG_OCTEON3_BGX_PORT) += octeon3-bgx-nexus.o octeon3-bgx-port.o +obj-$(CONFIG_OCTEON3_ETHERNET) += octeon3-ethernet.o + +octeon3-ethernet-objs += octeon3-core.o octeon3-pki.o octeon3-pko.o \ + octeon3-sso.o -- 2.1.4