diff options
author | Moritz Fischer <moritz.fischer@ettus.com> | 2016-10-04 17:08:08 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-10-11 10:17:08 -0600 |
commit | bfeba0173aa45c24bbdba45149716c83258d25f6 (patch) | |
tree | 902c18320089c47d2835875437b2ada2a2ca1b6e /include/cros_ec.h | |
parent | 2f159402d9ab0dc642759d9eab3b002cde33064d (diff) |
cmd: cros_ec: Move crosec commands to cmd subdirectory
Move crosec commands from drivers/misc/cros_ec.c to
cmd/cros_ec.c
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Heiko Schocher <hs@denx.de>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Miao Yan <yanmiaobest@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: u-boot@lists.denx.de
Diffstat (limited to 'include/cros_ec.h')
-rw-r--r-- | include/cros_ec.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h index 30b19089b1..ec7517c5ae 100644 --- a/include/cros_ec.h +++ b/include/cros_ec.h @@ -281,6 +281,17 @@ int cros_ec_flash_read(struct cros_ec_dev *dev, uint8_t *data, uint32_t offset, uint32_t size); /** + * Read back flash parameters + * + * This function reads back parameters of the flash as reported by the EC + * + * @param dev Pointer to device + * @param info Pointer to output flash info struct + */ +int cros_ec_read_flashinfo(struct cros_ec_dev *dev, + struct ec_response_flash_info *info); + +/** * Write data to the flash * * Write an arbitrary amount of data to the EC flash, by repeatedly writing |