From patchwork Mon May 4 23:17:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1283083 X-Patchwork-Delegate: bmeng.cn@gmail.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=85.214.62.61; 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=fGScJgEf; 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 49GJlD4vrPz9sSd for ; Tue, 5 May 2020 09:21:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 79583820AD; Tue, 5 May 2020 01:19:26 +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="fGScJgEf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A39828208A; Tue, 5 May 2020 01:19:16 +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-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (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 260F48205F for ; Tue, 5 May 2020 01:19:13 +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-io1-xd42.google.com with SMTP id k18so458400ion.0 for ; Mon, 04 May 2020 16:19:13 -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=+Cl5TfljbH4Tta6LwuR0NylYXtKN9aRFhk038ESk/uc=; b=fGScJgEfpFyqzrRXCwUlEIB9+nqWoC+4RAXI6JkX9tEsUNzzqyQsZtKeOIu785SsZy JBcP+fPASfxxaIPMW/36OjOYEBkJpuMsf1MxDvQeNeg90EZ16HkqTmrkdRn3xWwWUDNe BaGl3RJUqic/dTGEw+bmyaQtcHlqjwyoNPrJ0= 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=+Cl5TfljbH4Tta6LwuR0NylYXtKN9aRFhk038ESk/uc=; b=iCNEgkeQYVktxVst2IWipwLe9scSPbUQo5P1+e2EXTSBk165T2UxhnT9WVl+4SK7/C m/1E1o0DEJnbfoGf/TIR9/f1aVNV9+a5sWApM5cPPK6Kj7LiGgjkBZBeUNTRfL/SFUyV eJiyY7xdOgVnaDyEvmZ4ZpeGSmg5yBjHZj1Fbwml/wvRYnNUSGGJ+aIGA0e8+cE5QnMc b/o6NUlZySXFrrqndNv+sjh1wzXyJnwjIyUoqTAoq/Z1xupFyyv6jTmls6NTBODBWpI0 xSYCJ13ql7NXk+quAM4VJnh+juv0UWlyw5ZefPQqp6mAFeuck114FGIPFY6Zb8LVD3Y9 PRcQ== X-Gm-Message-State: AGi0PuZYqH9/QPDISEtkN+jdBeTA+WbLsZfzM3HVwmr/j0Rem/Z7O+4d YUlDHp98AvlC5g2jfcNgBPMXb/ZJeDrcqQ== X-Google-Smtp-Source: APiQypJzLv2/WHPdXtT6aFwEBwZdGqGs5muheLqTXISaw9dMoBon2re8VriiGmkJw5IcgyVzxHODJw== X-Received: by 2002:a05:6602:1695:: with SMTP id s21mr766136iow.40.1588634351787; Mon, 04 May 2020 16:19:11 -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 d23sm342706ioc.48.2020.05.04.16.19.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 16:19:11 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Bin Meng , Heiko Schocher Subject: [PATCH 12/36] bdinfo: riscv: Use the generic bd command Date: Mon, 4 May 2020 17:17:08 -0600 Message-Id: <20200504231732.98778-4-sjg@chromium.org> X-Mailer: git-send-email 2.26.2.526.g744177e7f7-goog In-Reply-To: <20200504231732.98778-1-sjg@chromium.org> References: <20200504231732.98778-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 This arch has none of its own info to show. Move it over to use the generic do_bdinfo(). Signed-off-by: Simon Glass Reviewed-by: Rick Chen Reviewed-by: Bin Meng --- cmd/bdinfo.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 6a2bbfb348..0e96dd619c 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -341,20 +341,7 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, #elif defined(CONFIG_RISCV) -int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) -{ - bd_t *bd = gd->bd; - - print_bi_boot_params(bd); - print_bi_dram(bd); - print_num("relocaddr", gd->relocaddr); - print_num("reloc off", gd->reloc_off); - print_eth_ip_addr(); - print_baudrate(); - print_cpu_word_size(); - - return 0; -} +#define USE_GENERIC #elif defined(CONFIG_ARC)