diff options
author | Eric Lai <eric_lai@quanta.corp-partner.google.com> | 2022-05-27 09:11:27 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-06-27 13:39:04 +0000 |
commit | ce026c93658d05c8cb7086c71153f357b4628dcf (patch) | |
tree | 64813fc1ad26a209d59ba2a2586ff71aa1d7621b /src/mainboard/google/reef/ec.c | |
parent | 5a55a455cd03000aeb6a0b085e0779f99b85e26c (diff) |
soc/intel/common/block/gpio: Add gpio pad based function
Introduce three functions:
- new_padbased_table:
Returns the gpio pad number based table
- gpio_padbased_override:
Must pass the table with padbased table
- gpio_configure_pads_with_padbased:
Must pass the table with padbased table, will skip configures the
unmapped pins by check pad and DW0 are 0.
Some boards may have complex, SKU-based GPIO programming. This
patch provides for a simpler pattern of controlling overrides of
GPIO programming by providing a table of pad configuration indexed
by pad number. Thus, pad state can be overwritten over multiple
overrides until the final takes place, and then all GPIO
programming is performed at once.
Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Change-Id: I8b99127b73701b50a7f2e051dee9d12c9da9b741
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64712
Reviewed-by: Kangheui Won <khwon@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/reef/ec.c')
0 files changed, 0 insertions, 0 deletions