From patchwork Fri Nov 8 19:53:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1192154 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=none (no SPF record) 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=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="MZwtEPHN"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 478ryp3FMJz9sPL for ; Sat, 9 Nov 2019 07:12:02 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 1EBE1C21E7F; Fri, 8 Nov 2019 20:09:04 +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=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 7D6AEC21F3D; Fri, 8 Nov 2019 19:57:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 0AF76C21FA8; Fri, 8 Nov 2019 19:57:18 +0000 (UTC) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by lists.denx.de (Postfix) with ESMTPS id A2577C21F3D for ; Fri, 8 Nov 2019 19:55:43 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id k1so7661216ioj.6 for ; Fri, 08 Nov 2019 11:55:43 -0800 (PST) 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=oINQq4oAborKQUgs5SL/ByMtn1NeUfl/APjPxrjJw/I=; b=MZwtEPHNkZzR+tjdFRa3QYbVWnrmowB8Ix2wArY8bnu7lx/RW78xcjTbGioDappDW5 yl25sU1LBhp//xhEkGVyiAqIFWUr5KLEM2j1pBnI521tCGmxVikRxS+7szSHEI4xUFma hqAIoA73aiDrArIK7yEgqbhBTLl8M/53JyE8c= 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=oINQq4oAborKQUgs5SL/ByMtn1NeUfl/APjPxrjJw/I=; b=RzNBEqlXERvm3UDMD9h95nq+XBPoGrrFyLyyWrCHTtXWt3Vi6t4/prAw6EkN8HwHSZ 2wvi6JOjTW1PrJeGfeS1bf7G4nnJycXudZJyyhqU4lT6UlG0QQQ4pOYvvMf+bIsWfmac 9J9BYj3bCNQv8gIHCYpI047IZ0TIfZ3TdBbfr6VFMJyRXBVxngt5mXyHcVMtnHHB37HT Sqgoa3TTXRCuJRuJDONDbIzHofWKdpjcnY2vcYdYUuoSC7kOjOm57P2/FssxKST76aIw 6fRO09NOUZPOPWOIYwAjlLFJ/gLQMRcYGcPCEV/AYXAF/rxnHabGCin7GaOmYRcSqkNZ idEQ== X-Gm-Message-State: APjAAAUCvgarc1svwUuppDpq2HUBkMpWs84WbH2hBIzU6P4h0pMGSj05 YxKqOSWlOchmkZF27ZYoEEIEwYfRZKasUA== X-Google-Smtp-Source: APXvYqx0gJViBqm04p0APTViADYQ2xfBO7nXtuztU5GSt8eVoHJbKVePPssac7rlT/59INBr4mi+qw== X-Received: by 2002:a5d:88c6:: with SMTP id i6mr2260394iol.251.1573242942369; Fri, 08 Nov 2019 11:55:42 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id l205sm622306ill.50.2019.11.08.11.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 11:55:41 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Fri, 8 Nov 2019 12:53:42 -0700 Message-Id: <20191108125120.v2.35.I0c0f0e7b0cadd7f02dcebc0a4ea3d42eb1a851fa@changeid> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191108195348.110648-1-sjg@chromium.org> References: <20191108195348.110648-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini Subject: [U-Boot] [PATCH v2 35/41] common: Drop board_show_dram() 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" This function is not defined by any boards so the feature is not used. Drop it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v2: None cmd/mem.c | 9 ++------- include/common.h | 9 --------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/cmd/mem.c b/cmd/mem.c index c6b8038fc9..545534b1fc 100644 --- a/cmd/mem.c +++ b/cmd/mem.c @@ -1212,16 +1212,11 @@ U_BOOT_CMD( #endif #ifdef CONFIG_CMD_MEMINFO -__weak void board_show_dram(phys_size_t size) -{ - puts("DRAM: "); - print_size(size, "\n"); -} - static int do_mem_info(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { - board_show_dram(gd->ram_size); + puts("DRAM: "); + print_size(gd->ram_size, "\n"); return 0; } diff --git a/include/common.h b/include/common.h index 5bd778a4f4..16d4b0612f 100644 --- a/include/common.h +++ b/include/common.h @@ -73,15 +73,6 @@ extern u8 __dtb_dt_begin[]; /* embedded device tree blob */ extern u8 __dtb_dt_spl_begin[]; /* embedded device tree blob for SPL/TPL */ int mdm_init(void); -/** - * Show the DRAM size in a board-specific way - * - * This is used by boards to display DRAM information in their own way. - * - * @param size Size of DRAM (which should be displayed along with other info) - */ -void board_show_dram(phys_size_t size); - /** * Get the uppermost pointer that is valid to access *