diff options
| author | Sean Anderson <sean.anderson@seco.com> | 2021-04-20 10:50:57 -0400 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2021-05-04 07:57:18 -0400 |
| commit | 54aa07fdfc01ac5abff342699df269f6f869fbe0 (patch) | |
| tree | db041b01ed62c82ff71b3b26e0b8661b1f8e2d5f /drivers/sysinfo/Kconfig | |
| parent | 4d65c6bcd71ab2a03a5b7fff0ecf22d068597b25 (diff) | |
| download | u-boot-54aa07fdfc01ac5abff342699df269f6f869fbe0.tar.gz u-boot-54aa07fdfc01ac5abff342699df269f6f869fbe0.tar.xz u-boot-54aa07fdfc01ac5abff342699df269f6f869fbe0.zip | |
sysinfo: Add gpio-sysinfo driver
This uses the newly-added dm_gpio_get_values_as_int_base3 function to
implement a sysinfo device. The revision map is stored in the device tree.
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/sysinfo/Kconfig')
| -rw-r--r-- | drivers/sysinfo/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/sysinfo/Kconfig b/drivers/sysinfo/Kconfig index 85c1e81e41..381dcd8844 100644 --- a/drivers/sysinfo/Kconfig +++ b/drivers/sysinfo/Kconfig @@ -30,4 +30,12 @@ config SYSINFO_SMBIOS one which provides a way to specify this SMBIOS information in the devicetree, without needing any board-specific functionality. +config SYSINFO_GPIO + bool "Enable gpio sysinfo driver" + help + Support querying gpios to determine board revision. This uses gpios to + form a ternary number (when they are pulled-up, -down, or floating). + This ternary number is then mapped to a board revision name using + device tree properties. + endif |
