From patchwork Fri Aug 5 15:26:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 656236 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3s5VzT4TpWz9t0F for ; Sat, 6 Aug 2016 01:27:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=JvSM4b3W; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2C59A4BFB2; Fri, 5 Aug 2016 17:27:13 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uPYtBT6yoOlB; Fri, 5 Aug 2016 17:27:13 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E13214BA35; Fri, 5 Aug 2016 17:27:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 69EAC4BA38 for ; Fri, 5 Aug 2016 17:27:02 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Asm1raAiQNpJ for ; Fri, 5 Aug 2016 17:27:02 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by theia.denx.de (Postfix) with ESMTPS id E9C0E4BA35 for ; Fri, 5 Aug 2016 17:26:57 +0200 (CEST) Received: by mail-lf0-f66.google.com with SMTP id f93so17028002lfi.0 for ; Fri, 05 Aug 2016 08:26:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zI2KTOu8tyISaBmYWCbbhbHRSuwo89OoOLlXlW+Kcz0=; b=JvSM4b3WrqNmBANsZY+Lts1qnFlZzOwuWocFh2pdpTLG7hvRvg4jhZGmMBZsPxlyFC XEV15OpBTNcdFCQ4wEXJ16nPqF4LMzyfct1kzDnJrkgVGxR/bx2mR5VZxWyzk5fVLUYd KZmet4bArkwvjKtp+tNBm/WD3cEB+cqhNSxyl/MZwGXpW7MFe+C4qX/IxzfFB3klLCvy xWgJMVSwymuMHCFuMorBfB3XG7mz70se5570E4OQZFkWEkvp25pZyLaKIQz8vZN9+xyd nj4ELG6afBucYulTBc0lPv1k70658Y9dynjjAn+GZZ0uwPywaLHgnkxjcr+O30xfwYdv pMjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zI2KTOu8tyISaBmYWCbbhbHRSuwo89OoOLlXlW+Kcz0=; b=XKgicbWhsnoHTY2UOnaBFl9+go8OfjhekPHQD4h8Ex/3i6DJx7rz4YGYC9Ri2MnxCO KHGgkkKdH6EQ4hGPGcEUFzkK6OFzA33eA3vCtTgaaUx4KG/wLIJ98ZroRi81Cjmm627g KpP5avbAacKiJmfvDyVJLrNwEFkhZXtEWWIWAje1Nv/Oa7C88me8kIdTDagVW96heYvx WahxAJ9AbfiU8L6ZBMwjlRpOF+/8h20NA0yXNQJ6W9Xz5M2WE4w8SsUowuUczipOrgVx AR05AbnJrzKrJ2i4aWEuParh94RifnVhyz04xIserrKMoPT1JYvzK+0hbPRiaYNmrcQM wJaQ== X-Gm-Message-State: AEkoouuQRyWOyU31Y+eIn0lsmsWbEKoYNzehbfrr08ZHcKn6JkANh0spiZkDNFKdqMAYYw== X-Received: by 10.25.41.142 with SMTP id p136mr25768213lfp.32.1470410817062; Fri, 05 Aug 2016 08:26:57 -0700 (PDT) Received: from octofox.metropolis ([5.19.183.212]) by smtp.gmail.com with ESMTPSA id u11sm3211980lja.12.2016.08.05.08.26.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Aug 2016 08:26:56 -0700 (PDT) From: Max Filippov To: u-boot@lists.denx.de Date: Fri, 5 Aug 2016 18:26:15 +0300 Message-Id: <1470410781-7944-2-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1470410781-7944-1-git-send-email-jcmvbkbc@gmail.com> References: <1470410781-7944-1-git-send-email-jcmvbkbc@gmail.com> Cc: Joe Hershberger Subject: [U-Boot] [PATCH v2 1/7] net/ethoc: add Kconfig entry for the driver X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add Kconfig entry for the driver, remove #define CONFIG_ETHOC from the only board configuration that uses it and put it into that board's defconfig. Cc: Stefan Kristiansson Signed-off-by: Max Filippov Acked-by: Joe Hershberger --- configs/openrisc-generic_defconfig | 2 ++ drivers/net/Kconfig | 5 +++++ include/configs/openrisc-generic.h | 1 - 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configs/openrisc-generic_defconfig b/configs/openrisc-generic_defconfig index 14923c0..5bc81cc 100644 --- a/configs/openrisc-generic_defconfig +++ b/configs/openrisc-generic_defconfig @@ -6,5 +6,7 @@ CONFIG_TARGET_OPENRISC_GENERIC=y CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y +CONFIG_NETDEVICES=y +CONFIG_ETHOC=y CONFIG_SYS_NS16550=y # CONFIG_AUTOBOOT is not set diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 88d8e83..be3ed73 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -124,6 +124,11 @@ config ETH_DESIGNWARE 100Mbit and 1 Gbit operation. You must enable CONFIG_PHYLIB to provide the PHY (physical media interface). +config ETHOC + bool "OpenCores 10/100 Mbps Ethernet MAC" + help + This MAC is present in OpenRISC and Xtensa XTFPGA boards. + config MVPP2 bool "Marvell Armada 375 network interface support" depends on ARMADA_375 diff --git a/include/configs/openrisc-generic.h b/include/configs/openrisc-generic.h index 913256a..227c0ca 100644 --- a/include/configs/openrisc-generic.h +++ b/include/configs/openrisc-generic.h @@ -44,7 +44,6 @@ /* * Ethernet */ -#define CONFIG_ETHOC #define CONFIG_SYS_ETHOC_BASE 0x92000000 #define CONFIG_BOOTFILE "boot.img"