From patchwork Fri Dec 14 06:49:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 206341 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 21F5D2C008C for ; Fri, 14 Dec 2012 18:02:07 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A71F84A404; Fri, 14 Dec 2012 08:01:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pcTdUAhVVxA2; Fri, 14 Dec 2012 08:01:13 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 89C6D4A230; Fri, 14 Dec 2012 07:55:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 91D9D4A13C for ; Fri, 14 Dec 2012 07:53:38 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g2L5tg0gBITU for ; Fri, 14 Dec 2012 07:53:33 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ye0-f202.google.com (mail-ye0-f202.google.com [209.85.213.202]) by theia.denx.de (Postfix) with ESMTPS id 0366E4A15F for ; Fri, 14 Dec 2012 07:50:25 +0100 (CET) Received: by mail-ye0-f202.google.com with SMTP id l7so311848yen.3 for ; Thu, 13 Dec 2012 22:50:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=wUwK4zBuw1MsREt4wRMhXfoHsydN8/e3g+CVZ3bhDzw=; b=QwtxIVb9oMuA0T1aICSSVQnUp8T/FWBO+GG0pFDnbPIM3WsC8fI2IkxTptqtDB5Kin O+KQBX3DZGlSa+LWhRqMU334F5bGWjuJxX4UTjZRjxqH9BnUW2q2Rkup6zk9VHi3w+Gq 0dWVl1GBZtQgB1TG2KsQ5fcXpZ4ulPeRcsLwEI+kYEPFA/ytv5dMiiUi2lvpucCdFRZu KKlMknvJx3woJfeHNOab8ChA0gpOXK4w6rjQK6Ek4f4yibuhwD9BTbURlJ3JXeRYckML o/bUhXMV3PuS5KtEmUWcYt22pMNJi41z4hbsfy4enKw/kOgFI4TxXVpS05zeKlWeASw3 tXXA== Received: by 10.236.138.232 with SMTP id a68mr2197370yhj.28.1355467823030; Thu, 13 Dec 2012 22:50:23 -0800 (PST) Received: from wpzn4.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id l20si348741yhi.2.2012.12.13.22.50.23 (version=TLSv1/SSLv3 cipher=AES128-SHA); Thu, 13 Dec 2012 22:50:23 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by wpzn4.hot.corp.google.com (Postfix) with ESMTP id E740882004A; Thu, 13 Dec 2012 22:50:22 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id C839116079A; Thu, 13 Dec 2012 22:50:22 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 13 Dec 2012 22:49:13 -0800 Message-Id: <1355467767-29575-45-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1355467767-29575-1-git-send-email-sjg@chromium.org> References: <1355467767-29575-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQnGiyi5qMG5/Xp/2eovvqUbzMVCz1b6MG35KUPdfiDFzVjmnIsCXK5VTk9QZOXjb2dpNUJeU2zePX9weRNV2LlF+PdfuSugx6VPE69Bi2viHHlDmP8nyZBdxuqKEoXSwYfG+tpyBe7bz9oCMGh7JPhT1OTuIAB2KwsVrDtncYpPv6yvsFCZk/iR5rGrBpPXFwVLiOLy Cc: Tom Rini Subject: [U-Boot] [PATCH v2 44/58] Only use fb_base if we have a display X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The ideal of having a frame buffer when there isn't a display is not that useful. Change the bdinfo command to expect this only when we have an lcd or video display. Signed-off-by: Simon Glass --- Changes in v2: None common/cmd_bdinfo.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 82a3693..6800c4f 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -377,7 +377,9 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) print_num("reloc off", gd->reloc_off); print_num("irq_sp", gd->irq_sp); /* irq stack pointer */ print_num("sp start ", gd->start_addr_sp); +#if defined(CONFIG_LCD) || defined(CONFIG_VIDEO) print_num("FB base ", gd->fb_base); +#endif /* * TODO: Currently only support for davinci SOC's is added. * Remove this check once all the board implement this. @@ -463,7 +465,9 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) print_eth(0); printf("ip_addr = %s\n", getenv("ipaddr")); #endif +#if defined(CONFIG_LCD) || defined(CONFIG_VIDEO) print_num("FB base ", gd->fb_base); +#endif return 0; }