[PATCH 00/10] cros_ec: Add features required for verified boot
Simon Glass
sjg at chromium.org
Sat Jan 16 22:52:21 CET 2021
The Chromium OS EC has developed a few more features. This series adds
support for some of these, to allow a more recent verified-boot
implementation to work.
Also some existing features don't have commands available. It is useful
to be able to check the EC state from the command line, so this series
adds commands for listing features, checking switches, etc.
The following parts of the implementation are added or expanded:
- SKU ID for finding out basic factory information
- 'features' for seeing what the EC supports
- 'switches' for LID open, etc.
- events for seeing when the EC has an event for the AP
- vstore (for storing data in the EC)
The current comment style is used for new functions.
Simon Glass (10):
cros_ec: Add a function for the hello message
cros_ec: Tidy up a few delays
cros_ec: Add run-time check for input buffer overflow
cros_ec: Add support for reading the SKU ID
cros_ec: Support reading EC features
cros_ec: Add documentation for cros_ec driver operations
cros_ec: Add support for switches
cros_ec: Show events in human-readable form
cros_ec: Allow use with of-platdata
cros_ec: Add vstore support
arch/sandbox/include/asm/test.h | 15 +++
cmd/cros_ec.c | 195 ++++++++++++++++++++++++++++++-
drivers/misc/cros_ec.c | 200 +++++++++++++++++++++++++++-----
drivers/misc/cros_ec_lpc.c | 7 ++
drivers/misc/cros_ec_sandbox.c | 100 +++++++++++++++-
include/cros_ec.h | 142 +++++++++++++++++++++++
include/ec_commands.h | 45 ++++++-
test/dm/Makefile | 1 +
test/dm/cros_ec.c | 178 ++++++++++++++++++++++++++++
9 files changed, 844 insertions(+), 39 deletions(-)
create mode 100644 test/dm/cros_ec.c
--
2.30.0.284.gd98b1dd5eaa7-goog
More information about the U-Boot
mailing list