From patchwork Wed May 5 07:15:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Roese X-Patchwork-Id: 1474114 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=We+q5xJL; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FZnzg1wqKz9sSs for ; Wed, 5 May 2021 17:15:27 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1BA9282B5E; Wed, 5 May 2021 09:15:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1620198922; bh=1RZMwAPYWnUA6q8NQuEvymqlV26T8IVH6Ba82Oxix+o=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=We+q5xJLg56nn+NR7jvcuuW8HMrQ/hCa/qCnqVdJLIbiQxkSp9k9IyEkHeYKfmqoB 2aAJlFQ5DKdEKBmK9KLhZKY9b+DLkFyphqYidjtpZAXEu8n4IcdUlVMyjq4OB2gOId eDWKcCjYvJ+nCwO5JxF2eBf1wDxJlN3mG9rZ+GAUbpZUUEoLf0WDmTRsKWkPwmgjmA IBM3szMOA0/S7hOurq6Vo7MOsM7nuDFzRQicCPHZEsouL3PZviNM7O3GIT20GvHsfj VvMV0N4WL7gpD65CpRMzy4fPQhtmaaVSKaS6gwBttcIiKcHqTkBR5IdoKLBkUO7rky O6UrcM2E4WRwg== Received: by phobos.denx.de (Postfix, from userid 109) id A719482B6C; Wed, 5 May 2021 09:15:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,SPF_HELO_NONE, TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.2 Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [91.198.250.253]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8D94E82B1F for ; Wed, 5 May 2021 09:15:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4FZnzT3FpjzQjmf; Wed, 5 May 2021 09:15:17 +0200 (CEST) Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id M24pS7hZ9Bum; Wed, 5 May 2021 09:15:11 +0200 (CEST) From: Stefan Roese To: u-boot@lists.denx.de Cc: =?utf-8?q?Pali_Roh=C3=A1r?= , Marek Behun , Kostya Porotchkin , Nadav Haklai Subject: [PATCH] cmd: mvebu: Rename rx_training to mvebu_comphy_rx_training Date: Wed, 5 May 2021 09:15:10 +0200 Message-Id: <20210505071510.669590-1-sr@denx.de> MIME-Version: 1.0 X-MBO-SPAM-Probability: X-Rspamd-Score: -5.94 / 15.00 / 15.00 X-Rspamd-Queue-Id: 109811817 X-Rspamd-UID: a9d4c0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Rename the misleading cmd "rx_training" to "mvebu_comphy_rx_training" to avoid confusion and mixup with DDR3/4 training. This makes it clear, that this command is platform specific and handles the COMPHY RX training. Also depend this cmd on ARMADA_8K and not TARGET_MVEBU_ARMADA_8K to make is available for OcteonTX2 CN913x. Signed-off-by: Stefan Roese Cc: Pali Rohár Cc: Marek Behun Cc: Kostya Porotchkin Cc: Nadav Haklai Acked-by: Marek Behún Acked-by: Pali Rohár --- cmd/mvebu/Kconfig | 9 ++++----- cmd/mvebu/Makefile | 2 +- cmd/mvebu/{rx_training.c => comphy_rx_training.c} | 10 +++++----- 3 files changed, 10 insertions(+), 11 deletions(-) rename cmd/mvebu/{rx_training.c => comphy_rx_training.c} (74%) diff --git a/cmd/mvebu/Kconfig b/cmd/mvebu/Kconfig index f0e4f884d703..7c42c75afbe2 100644 --- a/cmd/mvebu/Kconfig +++ b/cmd/mvebu/Kconfig @@ -49,11 +49,10 @@ config MVEBU_UBOOT_DFLT_NAME This option should contain a default file name to be used with MVEBU "bubt" command if the source file name is omitted -config CMD_MVEBU_RX_TRAINING - bool "rx_training" - depends on TARGET_MVEBU_ARMADA_8K - default n +config CMD_MVEBU_COMPHY_RX_TRAINING + bool "mvebu_comphy_rx_training" + depends on ARMADA_8K help - Perform RX training sequence + Perform COMPHY RX training sequence endmenu diff --git a/cmd/mvebu/Makefile b/cmd/mvebu/Makefile index 79299b0814f4..ca96ad01d911 100644 --- a/cmd/mvebu/Makefile +++ b/cmd/mvebu/Makefile @@ -5,4 +5,4 @@ # https://spdx.org/licenses obj-$(CONFIG_CMD_MVEBU_BUBT) += bubt.o -obj-$(CONFIG_CMD_MVEBU_RX_TRAINING) += rx_training.o +obj-$(CONFIG_CMD_MVEBU_COMPHY_RX_TRAINING) += comphy_rx_training.o diff --git a/cmd/mvebu/rx_training.c b/cmd/mvebu/comphy_rx_training.c similarity index 74% rename from cmd/mvebu/rx_training.c rename to cmd/mvebu/comphy_rx_training.c index 4bae7653aca3..0798decfae13 100644 --- a/cmd/mvebu/rx_training.c +++ b/cmd/mvebu/comphy_rx_training.c @@ -13,8 +13,8 @@ #include #include -int rx_training_cmd(struct cmd_tbl *cmdtp, int flag, int argc, - char * const argv[]) +int mvebu_comphy_rx_training_cmd(struct cmd_tbl *cmdtp, int flag, int argc, + char * const argv[]) { struct udevice *dev; struct uclass *uc; @@ -51,7 +51,7 @@ int rx_training_cmd(struct cmd_tbl *cmdtp, int flag, int argc, } U_BOOT_CMD( - rx_training, 3, 0, rx_training_cmd, - "rx_training \n", - "\n\tRun RX training sequence, the user must state CP index (0/1) and comphy ID (0/5)" + mvebu_comphy_rx_training, 3, 0, mvebu_comphy_rx_training_cmd, + "mvebu_comphy_rx_training \n", + "\n\tRun COMPHY RX training sequence, the user must state CP index (0/1) and comphy ID (0/5)" );