From patchwork Sun May 10 20:16:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1287328 X-Patchwork-Delegate: trini@ti.com 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=QNIVN7RK; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 49KwS95bgXz9sNH for ; Mon, 11 May 2020 06:20:57 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6651281522; Sun, 10 May 2020 22:18:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="QNIVN7RK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 759F0812EA; Sun, 10 May 2020 22:17:30 +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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 527D48116F for ; Sun, 10 May 2020 22:17:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x141.google.com with SMTP id e8so6476797ilm.7 for ; Sun, 10 May 2020 13:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lw6xJ2pBGmEtNJ6FEnkTCPl3VFXbMQI0T/lfbeA4+1c=; b=QNIVN7RKSwaMHNFbGhjX+mbB/aHsy8JpJzZcXBZmL3aSTKsppEvFvjNxTLPA9N/9hy HaB+nTtrvccmsSnUWGkp3EC3XfNGcr1lxdBi7ql4CaeY9EjlceQZRgWIo51cBU/hH9nT p3s2dIEP7d2O4LQazvOLhG2rd7BIQaqSr7FaQ= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=lw6xJ2pBGmEtNJ6FEnkTCPl3VFXbMQI0T/lfbeA4+1c=; b=W5hrbWt//QC5NPbEMEbdE9yTbVsCs6vllq7yLyh+z03wdGoQy92gZD5uE+bs62dUBI vnK+quHKe63T+UX6RKfIiJeHHrLWkrRT3wh2lr8z5UBuBh1+rC1pYjeb0pJ9MERoXUlY mH1nf3dGUMMUOrgLwSVX25h4/KaBcxh+3w9eti29zpunUP8+vkgQJH07jvZEc7z4zRE/ nEMM8tVZH6zlB60bggNbBEm12z0a4gQR1Ho7MB0zhDag9vXZVSRaX7GRpVWE08LxvYqV y06QgaCK1rl2R0ChKfUT7XuWVxaNEhtnCpYhVXJ9oR10LQP9GRC5VqwWmwroy2I74ivT cS1Q== X-Gm-Message-State: AGi0PuYaOLMjeeBD5EarigVJ9mSQZjWfJMO4v0sm/oDHa+AUbtRokT1U Ck7l22a66mFgU2CJRxrwOGqzhJhru8g= X-Google-Smtp-Source: APiQypLmlBY10/yKz2FD+BcXui/aCfLDZQ5+rhCnS2xkl2HoQiBwlcMA+phkWEsPuB/pzdxcTn6iPQ== X-Received: by 2002:a92:8747:: with SMTP id d7mr9865274ilm.235.1589141846080; Sun, 10 May 2020 13:17:26 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id s22sm3662176iow.40.2020.05.10.13.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 13:17:25 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Stefan Roese , Tom Rini , Daniel Schwierzeck , Simon Glass , Alexey Brodkin Subject: [PATCH v2 17/39] bdinfo: arc: Use the generic bd command Date: Sun, 10 May 2020 14:16:40 -0600 Message-Id: <20200510201702.196031-9-sjg@chromium.org> X-Mailer: git-send-email 2.26.2.645.ge9eca65c58-goog In-Reply-To: <20200510201702.196031-1-sjg@chromium.org> References: <20200510201702.196031-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.2 at phobos.denx.de X-Virus-Status: Clean There is nothing new in the arc 'bd' command beyond what is already there. Switch it over to use the generic code. Signed-off-by: Simon Glass Acked-by: Alexey Brodkin Reviewed-by: Bin Meng --- Changes in v2: - Fix up inadvertent merge of PowerPC/ARM/m68k/arc patches cmd/bdinfo.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 9cf3da4725..f07f92463c 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -215,17 +215,7 @@ static inline void __maybe_unused print_std_bdinfo(const bd_t *bd) #elif defined(CONFIG_ARC) -int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) -{ - bd_t *bd = gd->bd; - - print_bi_mem(bd); - print_eth_ip_addr(); - print_baudrate(); - print_cpu_word_size(); - - return 0; -} +#define USE_GENERIC #elif defined(CONFIG_XTENSA)