From patchwork Thu Nov 14 19:57:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1195209 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="edkA8xdn"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47DXwF38vTz9s7T for ; Fri, 15 Nov 2019 07:22:37 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 183BFC21EA6; Thu, 14 Nov 2019 20:11: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 EEC69C21E85; Thu, 14 Nov 2019 19:59:21 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D9C6DC21E2B; Thu, 14 Nov 2019 19:59:08 +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 90FBFC21E1E for ; Thu, 14 Nov 2019 19:59:00 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id k1so8225856ioj.6 for ; Thu, 14 Nov 2019 11:59:00 -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=2XhxsOjt5qOzpa54qjqPkpvDGgd4n37EtSnp+P89RKA=; b=edkA8xdnUmCel5pkFK1ML32Zsxh+OYM+8vRtb7C6PGxU1kUm+7Bp2kC2yX7KawsSZH LQWmnoKrxhhTlSRhHik59vi/PzL76LmprdPN92hnEtpmMp8pwcimHMpIHwMObqRpudIv Zfq6DGZL/4iA+naAQT/0UYfJplfeeLJ+r5BnY= 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=2XhxsOjt5qOzpa54qjqPkpvDGgd4n37EtSnp+P89RKA=; b=LQMMc37ujr/na9W2/pZaovllsXqNJwosIyTWMtHe0wiew2JFSWZV7YIKuruFPLyzQr oDpJbWPrpVzhEB+DWB9OS2RA4FstfGw8GZwsyhFoA1485R18rj55FhaJQAz/UtHKpWG8 Dl4hCYVasdcU1Zgl9Pq3oLKeCt/nhU9Z+2qtwk191Ry1YMeBBz9Hw2/O0o3J8qzWZ3oI yC/Tn/wWbYnWExHNjIU5Dqg9dkFg5/GhxOVrhBfOJgAPHkR2MpkFVjx0XjE4MNdB5GxV I7E4NYB7Fib9yH0WPA7Ii7SlCv8I0Wc1MTjrvfNemOex3WEDRtfBlmCf4dOS9NcQ6she d9Eg== X-Gm-Message-State: APjAAAV1WGxeh/22UWxm/6AkiT+05PhQ3O0m7+b+6lLuQV/+tF3Bx/rD 6EGdB998dpMGXff61ab2cMw+MjY1ewM= X-Google-Smtp-Source: APXvYqzt/lxgskwQKtfG5vgJDyofejiTuF+LZuYTzQRa5npgt0lpHBhJQiRTD9LDrvTV4qrfepm4Zg== X-Received: by 2002:a5d:8245:: with SMTP id n5mr10601453ioo.242.1573761539369; Thu, 14 Nov 2019 11:58:59 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id c83sm652546iof.48.2019.11.14.11.58.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 11:58:59 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 14 Nov 2019 12:57:44 -0700 Message-Id: <20191114125724.v4.36.I0c0f0e7b0cadd7f02dcebc0a4ea3d42eb1a851fa@changeid> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191114195751.30357-1-sjg@chromium.org> References: <20191114195751.30357-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini Subject: [U-Boot] [PATCH v4 36/42] 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 v4: None Changes in v3: None 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 *