From patchwork Thu Jan 7 04:21:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1423138 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=bLFzJBaY; 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 4DBCl13mMCz9sVt for ; Thu, 7 Jan 2021 15:22:53 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 712E7827B8; Thu, 7 Jan 2021 05:22:24 +0100 (CET) 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="bLFzJBaY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 02F5D827AA; Thu, 7 Jan 2021 05:22:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) (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 5F2D0827AA for ; Thu, 7 Jan 2021 05:22:17 +0100 (CET) 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-x12d.google.com with SMTP id n9so5545359ili.0 for ; Wed, 06 Jan 2021 20:22:17 -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=pBp6dksuf5LVa92pIXu+Uq02e++8SOYLDHRM/UBs3yw=; b=bLFzJBaYhqsxxWb3KBXEFure6cx5n1Wx6nx+2jkR9VRqF+SODN1u3Ks/GQy7HdYXug rc/Ps1dNvCkYTzGglVE7o0ibPmwA/epDBphR4vRbsTVuEyyphupFBxxAQati3OrXvaX9 cj4Wfbr6iDLlBXoNpCtGs1H7rV0jiCoaNBumc= 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=pBp6dksuf5LVa92pIXu+Uq02e++8SOYLDHRM/UBs3yw=; b=uf0s6Wjv5V0rKrYJ41cfzsyLUlhMtOmRUsufAczaWLsvkUZlMPa6SPDdTlHnQ4gVDf UnmVFS2xzQcROTSwA6YQ2GGEVHfjLJC8svdv3tGh6YHWXP/whuptjPD2lKvpI4sx2Lzi hfLx+jyBr1bXRrXSn7AdKdMQxNy6ZDFxrpF9nqwn183PTNWRWg+2ofXTiRUHH6SeeN3Y Gf31D3klIBpgEf6AI5WliW5+cqBczXAm99PYR4PUgRekno9v91Br8a3pS+vEC7C5lqCR fRh/f0yE9KnzTZFx0liOXhlfnZFR6PrHUhpWfYsfr/6Xu7hQNdJgTO2yDq9o9J6LZMUS cKOw== X-Gm-Message-State: AOAM5308uQ3ot9tW+7EqvHDlm7/DNNFPCY/kOCT27Wh9nuequmXKwR2d 2nNugSN1BP0BIzLpPqEfpHkR2axksUjI/9lc X-Google-Smtp-Source: ABdhPJxxtPaWtGzTPke3nP+g6tyBjcDaq1148OuAyXMyZNQ1qwaBN8CdgxrXqJwfTGdXnhGnDgDVGw== X-Received: by 2002:a05:6e02:c6a:: with SMTP id f10mr7527235ilj.264.1609993336032; Wed, 06 Jan 2021 20:22:16 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id s1sm2793419iot.0.2021.01.06.20.22.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Jan 2021 20:22:15 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Andy Shevchenko , Heinrich Schuchardt , Bernhard Messerklinger , Wolfgang Wallner , Walter Lozano , Simon Glass , Bin Meng Subject: [PATCH 05/10] smbios: Set BIOS release version Date: Wed, 6 Jan 2021 21:21:57 -0700 Message-Id: <20210106212153.5.I1af655eac7c24ccf4537bcc1f61bee9e629bf008@changeid> X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog In-Reply-To: <20210107042202.2600568-1-sjg@chromium.org> References: <20210107042202.2600568-1-sjg@chromium.org> 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 We may as well include the U-Boot release information in the type-0 table since it is designed for that purpose. U-Boot uses release versions based on the year and month. The year cannot fit in a byte, so drop the century. Signed-off-by: Simon Glass --- lib/smbios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/smbios.c b/lib/smbios.c index b1171f544a8..8e9c002dec2 100644 --- a/lib/smbios.c +++ b/lib/smbios.c @@ -143,8 +143,8 @@ static int smbios_write_type0(ulong *current, int handle, ofnode node) #endif t->bios_characteristics_ext2 = BIOS_CHARACTERISTICS_EXT2_TARGET; - t->bios_major_release = 0xff; - t->bios_minor_release = 0xff; + t->bios_major_release = U_BOOT_VERSION_NUM % 100; + t->bios_minor_release = U_BOOT_VERSION_NUM_PATCH; t->ec_major_release = 0xff; t->ec_minor_release = 0xff;