Message ID | 20200510141257.v2.10.Ib8756a4661f954fd16fa53af900524e54b228fde@changeid |
---|---|
State | Accepted |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) 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=E+falTZM; 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 49KwQY2Kckz9sNH for <incoming@patchwork.ozlabs.org>; Mon, 11 May 2020 06:19:33 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8FF1381003; Sun, 10 May 2020 22:17:41 +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="E+falTZM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 23F85810E3; Sun, 10 May 2020 22:17:24 +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-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 C382180676 for <u-boot@lists.denx.de>; Sun, 10 May 2020 22:17:20 +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-x142.google.com with SMTP id c18so6496410ile.5 for <u-boot@lists.denx.de>; Sun, 10 May 2020 13:17:20 -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=3iGylbhDVqp03+6nUfLVYZGMhzwSD+VZ0WKUcP4hVK8=; b=E+falTZMXjahjuICEggDUiDfOp6OA21puLCX7HkWNQ/cqTp/3mrcQ3zOlORFP7RDzm p0CGHPQj9tXG6XTgrPPd01VfGBZ6u5grpfH1dbd2D/HF2JYDFncurL0KvdH+dHdX4iH5 fMb+RIHVUzehtl1FMB/xgwJqS90yDa/pX+j4Y= 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=3iGylbhDVqp03+6nUfLVYZGMhzwSD+VZ0WKUcP4hVK8=; b=L1fVZ9x/LUGSvR/SO+snYIs5s+4pYQzePp4KclHGuqlLHicV8O4Ay3fWneua38gIUl 4d7WxxVQF5wCMRVL3EPpQEJ0NaSYmpXVDcFueSgIzy3yZsJSUOhGtTi0368rNv/XeP3g ZmcqVd5ZuJVAcKYeARomxoUX8wA+IaOsA6PpU1eNBNrQ6A+f2ccrH3Nb+CZSWsBaHvXn OhVVq+tGOVlvefhMlVs4jkG886Zste55LwNXa6QBNO75dWWBqQwnz3+oFYF6MIIpIDT1 LSiAdJ3r6MTs+GwhSltebRtGWcSqqT85vwxve4HiAg3/XwYM6rSuV81OLHZhZyCpb0aR rCkg== X-Gm-Message-State: AGi0PuZcfG6G2VTnfdsYe2aYHDads9NNBg2d64XTJdMErNgFS6mdVbkN OBMUFsL9SWvr1MHsRGbxnp46lgZY7tI= X-Google-Smtp-Source: APiQypK0WXLL1EkMngcd97GBDqGtGVfmo92l7WmwTDguVoiZ/T3QmnLygZ2/ePp2gO2WprSskw11EQ== X-Received: by 2002:a92:4014:: with SMTP id n20mr13045275ila.249.1589141839536; Sun, 10 May 2020 13:17:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 13:17:19 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Bin Meng <bmeng.cn@gmail.com>, Stefan Roese <sr@denx.de>, Tom Rini <trini@konsulko.com>, Daniel Schwierzeck <daniel.schwierzeck@gmail.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v2 10/39] bdinfo: x86: Use the generic bd command Date: Sun, 10 May 2020 14:16:33 -0600 Message-Id: <20200510141257.v2.10.Ib8756a4661f954fd16fa53af900524e54b228fde@changeid> 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 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
Tidy up the 'bd' command.
|
expand
|
diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 0b9ac21848..0b903d234e 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -329,25 +329,7 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, #elif defined(CONFIG_X86) -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); -#if defined(CONFIG_CMD_NET) - print_eth_ip_addr(); - print_mhz("ethspeed", bd->bi_ethspeed); -#endif - print_baudrate(); - print_cpu_word_size(); - - return 0; -} +#define USE_GENERIC #elif defined(CONFIG_SANDBOX) @@ -426,6 +408,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #ifdef USE_GENERIC int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { + print_bi_dram(gd->bd); print_std_bdinfo(gd->bd); print_num("relocaddr", gd->relocaddr); print_num("reloc off", gd->reloc_off);