
Hi Bin,
On Thu, 4 Feb 2021 at 21:17, Simon Glass sjg@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@chromium.org Reviewed-by: Bin Meng bmeng.cn@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