[PATCH 07/10] cros_ec: Add support for switches

Simon Glass sjg at chromium.org
Sun Jan 24 21:23:23 CET 2021


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 at 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!


More information about the U-Boot mailing list