Message ID | 20210124104327.v3.5.I1af655eac7c24ccf4537bcc1f61bee9e629bf008@changeid |
---|---|
State | Superseded |
Delegated to: | Bin Meng |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) 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=cMHw+EvX; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4DP0tW5bhkz9sB4 for <incoming@patchwork.ozlabs.org>; Mon, 25 Jan 2021 04:51:47 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0D57A826C7; Sun, 24 Jan 2021 18:51:22 +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="cMHw+EvX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A4EFE82714; Sun, 24 Jan 2021 18:51:05 +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.2 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-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (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 55458826A7 for <u-boot@lists.denx.de>; Sun, 24 Jan 2021 18:51:00 +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-pj1-x102a.google.com with SMTP id my11so8173982pjb.1 for <u-boot@lists.denx.de>; Sun, 24 Jan 2021 09:51: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=Ekt3uyTBQDwZC7HkHwt5hhOwDV3pc8xNTbb48yWnnt0=; b=cMHw+EvXM+4+O8Dup2h91OcYi6jOZel1UaAYMEFOR9QL0yjorvJnFSe+MsUG9xod4p iFpt32N+BP8+Rcnid4sSM7paQfD1m4y6OIbxa8WB4/Cjz+dC634dT41UfYUfS1zfWabQ R2C3QQErntqLctknOSOwyujvf35WoSp9U9q28= 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=Ekt3uyTBQDwZC7HkHwt5hhOwDV3pc8xNTbb48yWnnt0=; b=mJnUsgKLBKiWv8JOxuoqf07Wjgx4YilXCKauUZVwCcDm1xKNLfKEmG7cHYiYiNmErf oBPZD5zk72ArTioLYAfdSN2tAj5l8FgYEqOmuIubYVINd1E9GWEuHN8wR/132vHfCosa xJWL2SvIHKo5qlCRuS9PptzLZjTAdacVhKAG/PcUdRahyA9XxAXLZAu4j5h26ETiDiJx QdHBY9GkbA4anKza3r88bFAqZ56ptBd2jJg/L8EdLqwqBrwnWhd3T0e6OWGM8fptqcqM 8OmRmsmjpeu2nOxQq33TG+2BL5O0I7f+Nk7pyfgI9GObTah6Dri6oYbvWWHO3iniK5QA hSwA== X-Gm-Message-State: AOAM53384FhR1GJHjdHcOq+W4t4ZVb1Fps8gt/lPxq6AVgUMVceFaw1l xWBUJCJYSow9GoJevpNtsLgtxYoFcNW8M5di X-Google-Smtp-Source: ABdhPJzN47Xo2Lbk4uqJwE223ol1h6Xoj7w1AC0IcIimkjy7j3ReutoLFrk8ggXmhyaWsxrW5RvwlA== X-Received: by 2002:a17:903:2292:b029:de:45c0:7005 with SMTP id b18-20020a1709032292b02900de45c07005mr15987772plh.75.1611510658588; Sun, 24 Jan 2021 09:50:58 -0800 (PST) Received: from sjg1.home ([2600:6c4c:507f:f8e5:0:ec6e:a61e:6ad]) by smtp.gmail.com with ESMTPSA id w186sm10220673pfc.182.2021.01.24.09.50.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Jan 2021 09:50:58 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Bin Meng <bmeng.cn@gmail.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v3 05/12] smbios: Set BIOS release version Date: Sun, 24 Jan 2021 10:43:24 -0700 Message-Id: <20210124104327.v3.5.I1af655eac7c24ccf4537bcc1f61bee9e629bf008@changeid> X-Mailer: git-send-email 2.30.0.280.ga3ce27912f-goog In-Reply-To: <20210124174331.3462226-1-sjg@chromium.org> References: <20210124174331.3462226-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
smbios: Enhancements for more flexibility
|
expand
|
diff --git a/lib/smbios.c b/lib/smbios.c index b1171f544a8..a072d9ec10b 100644 --- a/lib/smbios.c +++ b/lib/smbios.c @@ -143,8 +143,9 @@ 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; + /* bios_major_release has only one byte, so drop century */ + 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;