diff options
author | Sean Anderson <sean.anderson@seco.com> | 2021-04-20 10:50:55 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-05-04 07:57:18 -0400 |
commit | eed0a7a3e6087d038fccea18676e285d9807b644 (patch) | |
tree | 10e04827c174b0c2eb452d173adde928fe1b3236 /drivers/sysinfo | |
parent | 430e136dc1398546ad2b1db08692e9edac480cc8 (diff) | |
download | u-boot-eed0a7a3e6087d038fccea18676e285d9807b644.tar.gz u-boot-eed0a7a3e6087d038fccea18676e285d9807b644.tar.bz2 u-boot-eed0a7a3e6087d038fccea18676e285d9807b644.zip |
sysinfo: Use global sysinfo IDs for existing sysinfo drivers
Since 07c9e683a4 ("smbios: Allow a few values to come from sysinfo")
there are common global sysinfo IDs. This patch moved existing IDs above
SYSINFO_ID_USER.
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/sysinfo')
-rw-r--r-- | drivers/sysinfo/gazerbeam.h | 8 | ||||
-rw-r--r-- | drivers/sysinfo/sandbox.h | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/sysinfo/gazerbeam.h b/drivers/sysinfo/gazerbeam.h index 171729d203..6bf3c0098d 100644 --- a/drivers/sysinfo/gazerbeam.h +++ b/drivers/sysinfo/gazerbeam.h @@ -5,10 +5,12 @@ * */ +#include <sysinfo.h> + enum { - BOARD_MULTICHANNEL, - BOARD_VARIANT, - BOARD_HWVERSION, + BOARD_HWVERSION = SYSINFO_ID_BOARD_MODEL, + BOARD_MULTICHANNEL = SYSINFO_ID_USER, + BOARD_VARIANT }; enum { diff --git a/drivers/sysinfo/sandbox.h b/drivers/sysinfo/sandbox.h index 2cff494f56..d9c5804c26 100644 --- a/drivers/sysinfo/sandbox.h +++ b/drivers/sysinfo/sandbox.h @@ -5,7 +5,7 @@ */ enum { - BOOL_CALLED_DETECT, + BOOL_CALLED_DETECT = SYSINFO_ID_USER, INT_TEST1, INT_TEST2, STR_VACATIONSPOT, |