cros_ec: Add support for switches
authorSimon Glass <sjg@chromium.org>
Sat, 16 Jan 2021 21:52:28 +0000 (14:52 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2021 21:25:41 +0000 (14:25 -0700)
commit3a6c994f3896d66e617acdf9bb58ffc4def08b71
treed8b222358a56ab098e8a66a3f09a5b2b0d0066ee
parent2b4b65339110e11b4a859fceeb1eec82b2ebb5f1
cros_ec: Add support for switches

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 <sjg@chromium.org>
arch/sandbox/include/asm/test.h
cmd/cros_ec.c
drivers/misc/cros_ec.c
drivers/misc/cros_ec_lpc.c
drivers/misc/cros_ec_sandbox.c
include/cros_ec.h
test/dm/cros_ec.c