On x86 platforms the EC provides a way to read 'switches', which are on/off values determined by the EC.
Add a new driver method for this and implement it for LPC. Signed-off-by: Simon Glass <s...@chromium.org> --- arch/sandbox/include/asm/test.h | 1 + cmd/cros_ec.c | 41 +++++++++++++++++++++++++++++++++ drivers/misc/cros_ec.c | 16 +++++++++++++ drivers/misc/cros_ec_lpc.c | 7 ++++++ drivers/misc/cros_ec_sandbox.c | 10 ++++++++ include/cros_ec.h | 19 +++++++++++++++ test/dm/cros_ec.c | 26 +++++++++++++++++++++ 7 files changed, 120 insertions(+) Applied to u-boot-dm, thanks!