summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMoritz Fischer <[email protected]>2016-10-04 17:08:08 -0700
committerSimon Glass <[email protected]>2016-10-11 10:17:08 -0600
commitbfeba0173aa45c24bbdba45149716c83258d25f6 (patch)
tree902c18320089c47d2835875437b2ada2a2ca1b6e /include
parent2f159402d9ab0dc642759d9eab3b002cde33064d (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 <[email protected]> Signed-off-by: Moritz Fischer <[email protected]> Cc: Simon Glass <[email protected]> Cc: Heiko Schocher <[email protected]> Cc: Bin Meng <[email protected]> Cc: Miao Yan <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Stefan Roese <[email protected]> Cc: Przemyslaw Marczak <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Nishanth Menon <[email protected]> Cc: [email protected]
Diffstat (limited to 'include')
-rw-r--r--include/cros_ec.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/cros_ec.h b/include/cros_ec.h
index 30b19089b14..ec7517c5ae2 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