[PATCH v4 12/12] smbios: Allow a few values to come from sysinfo

Simon Glass sjg at chromium.org
Fri Feb 5 05:19:17 CET 2021


Hi Bin,

On Thu, 4 Feb 2021 at 21:17, Simon Glass <sjg at chromium.org> wrote:
>
> While static configuration is useful it cannot cover every case. Sometimes
> board revisions are encoded in resistor straps and must be read at
> runtime.
>
> The easiest way to provide this information is via sysinfo, since the
> board can then provide a driver to read whatever is needed.
>
> Add some standard sysinfo options for this, and use them to obtain the
> required information.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> (no changes since v3)
>
> Changes in v3:
> - Use SMBIOS_STR_MAX for the max sysinfo string length
>
>  include/sysinfo.h | 11 +++++++++++
>  lib/smbios.c      | 32 +++++++++++++++++++++++++++++---
>  2 files changed, 40 insertions(+), 3 deletions(-)

Sorry this cannot be applied yet. It depends on the GPIO series.

Regards,
Simon


More information about the U-Boot mailing list