Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
input: gpio_kbd_matrix: add direct access support
When the matrix is connected to consecutive pins on the same port, it's possible to read the whole row or set the whole column in a single operation. For the column, this is only possible if the matrix is configured for driving unselected column, as there's no API to configure multiple pins at the same time at the moment. This is more efficient than checking the pins individually, and it's particularly useful if the row or columns are driven from a GPIO port expander. Add some code to detect the condition and enable it automatically as long as the hw configuration supports it. (cherry picked from commit 6cd7249) Original-Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> GitOrigin-RevId: 6cd7249 Change-Id: I9177319fde9280b70cb37b3feab36dd0fafb7338 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5053176 Commit-Queue: Tristan Honscheid <honscheid@google.com> Tested-by: Tristan Honscheid <honscheid@google.com> Reviewed-by: Tristan Honscheid <honscheid@google.com> Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
- Loading branch information