From patchwork Fri Sep 13 15:25:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramon Fried X-Patchwork-Id: 1162125 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ITraS2N5"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46VKHH5Yfhz9sNF for ; Sat, 14 Sep 2019 01:26:35 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 169C6C21F3B; Fri, 13 Sep 2019 15:26:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 83CB6C21EA7; Fri, 13 Sep 2019 15:25:55 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5BBD4C21EA6; Fri, 13 Sep 2019 15:25:54 +0000 (UTC) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by lists.denx.de (Postfix) with ESMTPS id 972E9C21F1D for ; Fri, 13 Sep 2019 15:25:49 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id g207so3209726wmg.5 for ; Fri, 13 Sep 2019 08:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1TUQi/bd7eE9ueWUx4fnas9pewsPWrE6JYfiBJHpI7I=; b=ITraS2N5G9xTOOHDgC1pcvZUOz2OJL7V2qUcnJWYi0pgPGVYOu7iDsWIxxgvE/S24r IVQEODXSnHO9JoRKgjUjJOoGCi+VWa9yjIw6BqbaAFAIZC24lZGS93Wdqo+CDVzsTePY 31nmPYgQa5xKVXNC76nel+hdDNBFid9c8pZR9y0eme11NK4+DcS9S78IrPodo9azm/d0 bkYe7iYKsVZkiRirHT4oLUao6X11bZdncAm8QKoKuATI6JhQtyrUqjwzQ4C5XC7RAWS9 ucYphtgv6PYN6Ibx6EHIJ+1RlVaYsKplg2Yacg0H/3cz89H/uakOZx8gFTqFpWlxvzzA WZ8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1TUQi/bd7eE9ueWUx4fnas9pewsPWrE6JYfiBJHpI7I=; b=tTeDxM2C7NDVUyGHmnfaO0Ren49nrL0SHCnHuBWj4h4x/RXOBqT3j4fqdjFCkjsxFk hOZTcdWtg48/lPqKyPpMxu4WZ4YEDp+V1qRNhBOM34YCseQb4U8auCORFHNLU3Cn2wrF wR6jM5F5SFJJtenqL9Kkn6BwMeEn0WWuzzYs538vE7SknCqHMDwTzFAs/WNTBfNPHjbY udniCFdkAPsHx8vEPsqALgsLGZ0ic8Vxq4ljFmaGFN+1SZSWWUaaVURr7efIJZzITm1q 3jYwqjQNbWrfsVJJG5yyar2vIcLB5ZzpIiMsWcZTcidvWC+EjobSes/ocHBIODYOUVXI X+aA== X-Gm-Message-State: APjAAAW0GmOf2k2e5uw4VN+fiussC0YIN00V6A9Fa+Jpx8eXNsB/csN6 9gqO7hjlEbsiBRpOkR9C8vA= X-Google-Smtp-Source: APXvYqykhG+52PlVRhZ1eUSxfTHpZvpiO6oZUUc/o3OayDsRVuVWUZfPG9atPx6jlJ/WKhWrWxYBFQ== X-Received: by 2002:a7b:ce99:: with SMTP id q25mr3816572wmj.163.1568388349271; Fri, 13 Sep 2019 08:25:49 -0700 (PDT) Received: from localhost.localdomain ([141.226.31.91]) by smtp.gmail.com with ESMTPSA id s12sm40698542wra.82.2019.09.13.08.25.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 08:25:48 -0700 (PDT) From: Ramon Fried To: sjg@chromium.org, xypron.glpk@gmx.de, lukma@denx.de, Tom Rini , marex@denx.de, joe.hershberger@ni.com Date: Fri, 13 Sep 2019 18:25:03 +0300 Message-Id: <20190913152502.23140-1-rfried.dev@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] cmd: mdio/mii: add Kconfig help and allow break dependency X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" * Add Kconfig help describing the purpose of each command. * Add CONFIG_CMD_MDIO so it could be selected individually, as it doesn't depend on the mii command. * Add Kconfig imply to mii to automatically select the mdio command. Signed-off-by: Ramon Fried Acked-by: Joe Hershberger --- cmd/Kconfig | 18 ++++++++++++++++-- cmd/Makefile | 4 +--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 98647f58b7..cfb3b58119 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1410,8 +1410,22 @@ config CMD_NFS config CMD_MII bool "mii" - help - Enable MII utility commands. + imply CMD_MDIO + help + If set, allows 802.3(clause 22) MII Management functions interface access + The management interface specified in Clause 22 provides + a simple, two signal, serial interface to connect a + Station Management entity and a managed PHY for providing access + to management parameters and services. + The interface is referred to as the MII management interface. + +config CMD_MDIO + bool "mdio" + depends on PHYLIB + help + If set, allows Enable 802.3(clause 45) MDIO interface registers access + The MDIO interface is orthogonal to the MII interface and extends + it by adding access to more registers through indirect addressing. config CMD_PING bool "ping" diff --git a/cmd/Makefile b/cmd/Makefile index ac843b4b16..384ddb8eaf 100644 --- a/cmd/Makefile +++ b/cmd/Makefile @@ -89,9 +89,7 @@ obj-$(CONFIG_CMD_MEMORY) += mem.o obj-$(CONFIG_CMD_IO) += io.o obj-$(CONFIG_CMD_MFSL) += mfsl.o obj-$(CONFIG_CMD_MII) += mii.o -ifdef CONFIG_PHYLIB -obj-$(CONFIG_CMD_MII) += mdio.o -endif +obj-$(CONFIG_CMD_MDIO) += mdio.o obj-$(CONFIG_CMD_MISC) += misc.o obj-$(CONFIG_CMD_MMC) += mmc.o obj-$(CONFIG_MP) += mp.o