summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/util.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-07-25 14:12:58 -0700
committerAaron Durbin <adurbin@chromium.org>2018-07-26 15:36:32 +0000
commit4a12a56cdf1ea073def5e62386eebac32ff59cd3 (patch)
tree7340ec64294967f6b501a2230ce9dacf76e94441 /src/soc/intel/common/util.c
parente7f4780137c350f6e1ae1090ed69675296fd3887 (diff)
soc/intel/common/block/gpio: Add API for gpio_configure_pads_with_override
This function adds support for gpio_configure_pads_with_override which: 1. Takes as input two GPIO tables -- base config table and override config table 2. Configures each pad in base config by first checking if there is a config available for the pad in override config table. If yes, then uses the one from override config table. Else, uses the base config to configure the pad. This is done to allow sharing of GPIO tables across baseboard-variants for various boards i.e. Each board can have a base config table which is provided by the baseboard and an optional override config table that can be provided by a variant to configure certain GPIOs differently. It is helpful when the variant GPIO diff list is not very huge compared to the baseboard. BUG=b:111743717 TEST=Verified that the GPIO config for phaser is same with and without this change. Change-Id: I1c5dc72c8368957201ab53d2e8398ff861341a4c Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/27640 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Justin TerAvest <teravest@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/common/util.c')
0 files changed, 0 insertions, 0 deletions