From patchwork Fri Sep 25 01:44:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1370994 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=B6onrpGl; 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4ByF8v2Hkzz9sR4 for ; Fri, 25 Sep 2020 11:44:57 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 95AC8823FF; Fri, 25 Sep 2020 03:44:51 +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="B6onrpGl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0A5F78242A; Fri, 25 Sep 2020 03:44:50 +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=-3.2 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-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) (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 8EDC8823F0 for ; Fri, 25 Sep 2020 03:44:47 +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-oi1-x243.google.com with SMTP id i17so1127701oig.10 for ; Thu, 24 Sep 2020 18:44:47 -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:mime-version :content-transfer-encoding; bh=rjU+4adxZ1pKRnNID/Zb2TcMAxryFetSkpGeTeqMKmk=; b=B6onrpGlwYsBNSvp9n52Pvipl5vgkHjoeAGYt9cOd/9XKuzelqjB+861JwMHqtur5b cdGaIQV1HLqhkfvWza39B3Ft/TVs/VKreHGs2u+mCtMNCtYwBWv3WfgTqVm4YAjAYmZY zk8kMJ+T4G+KBCetTPiOaS9LDlcE3f8guhB0A= 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:mime-version :content-transfer-encoding; bh=rjU+4adxZ1pKRnNID/Zb2TcMAxryFetSkpGeTeqMKmk=; b=MzqGwlB+6IXxFrxP/PnZaAngVRCPrF7cy7pv80op9Me9nalCocBE8dS8iwRBbzsKVx aP01GzFBdRXmvCWuUxrQIkBx628JbQmgoDUsDHOIaS92GYlru9UF+S9w/BkpB2j6Uqoq TbMc7G24cobGb+U2kMDKqQQNhgzfU47SY2UwHK+mos2oc0yl4BcOomXRetghnxeqSt9b v7gwNTjpoPExdGj7E/0zZ2Eyx5X5ggBIL9oiuEINyaQo4HCLiBUlk73BWSEe1dQCUOIH O6T1LDR5w0TmyJIiKZwtkALgZJqraWujgfMjr9b8dvHtobjd+lwj7yd0ATBNeFbZAoQy L1qQ== X-Gm-Message-State: AOAM531f2pDRIbqrmzq/bCp0lAvqTm/wmKZNcPha1ZWm9oB5q2RW7BUO BPpJ1Hi3YO8VkgkoS0hzxHOjYVVAofUHfbyE X-Google-Smtp-Source: ABdhPJwolxcE5BxsS1F4dMoAd313ll9o1YJtH4kNiDBQcKQIuF+5+t3r7lENIoLXNH/sTLfH8eZs+g== X-Received: by 2002:a05:6808:1da:: with SMTP id x26mr249006oic.161.1600998286104; Thu, 24 Sep 2020 18:44:46 -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 v12sm299492otn.6.2020.09.24.18.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 18:44:45 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass Subject: [PATCH 1/2] x86: Fix-up patch for showing video information Date: Thu, 24 Sep 2020 19:44:39 -0600 Message-Id: <20200925014440.47300-1-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.3 at phobos.denx.de X-Virus-Status: Clean This should be merged into the following patch: 09bd6339966 ("x86: video: Show information about each video device") Signed-off-by: Simon Glass --- cmd/bdinfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 39a606ba348..8d8daa6336a 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -36,6 +36,12 @@ static void print_eth(int idx) printf("%-12s= %s\n", name, val); } +static void print_phys_addr(const char *name, phys_addr_t value) +{ + printf("%-12s= 0x%.*llx\n", name, 2 * (int)sizeof(ulong), + (unsigned long long)value); +} + void bdinfo_print_mhz(const char *name, unsigned long hz) { char buf[32];