summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2021-01-19 18:55:50 +0100
committerCommit Bot <commit-bot@chromium.org>2021-02-23 19:12:32 +0000
commit3a8d8b16790ea15bceec6e11d3ed091f5462ce44 (patch)
tree2ac4ce6dab7f884f1174533b8b953ca9551083d5 /include/config.h
parent4057eedf924fd5d3a9850b3d9ae8ed749474bc5e (diff)
downloadchrome-ec-3a8d8b16790ea15bceec6e11d3ed091f5462ce44.tar.gz
ioexpander: Add support to read levels on whole IOEX port
In some cases it's needed to read many pins on the same IOEX port. To improve performance and remove redundant calls, it will be easier to read levels on whole IOEX port. To enable this functionality, CONFIG_IO_EXPANDER_SUPPORT_GET_PORT must be defined and driver must support it. BUG=b:168385201 BRANCH=main Signed-off-by: Michał Barnaś <mb@semihalf.com> Change-Id: I472385a4ef4f5db23ce92d017194f8c737b7607e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2700295 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 4b7a0bedbd..e9e3105e5f 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1468,6 +1468,13 @@
#undef CONFIG_IO_EXPANDER
/*
+ * Enable reading levels for whole IO expander port with one call.
+ * This adds 'get_port' function pointer to 'ioexpander_drv' structure.
+ * Most drivers don't implement this functionality.
+ */
+#undef CONFIG_IO_EXPANDER_SUPPORT_GET_PORT
+
+/*
* EC's supporting powering down GPIO pins.
* Add flag GPIO_POWER_DOWN and additional API's.
*/