diff options
author | Furquan Shaikh <furquan@google.com> | 2020-06-27 13:04:47 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-06-30 22:39:02 +0000 |
commit | 20af71dc6470e65c8d7f14810d43f340ffd0c60d (patch) | |
tree | 4d45a7f2fb8b4d4e3ec12af0f0e989aead180fa2 /src/mainboard/purism | |
parent | 8d9b878f639fdd55d9151e117863fa3a4cbe7ab0 (diff) |
soc/amd/common/gpio: Add macros for setting fields of soc_amd_gpio
This change adds helper macro PAD_CFG_STRUCT for setting the fields
of `soc_amd_gpio`. Additionally, macros are added for different
operations i.e. pull, output, trigger, int_enable, event_trigger,
wake_enable, debounce, etc. All GPIO configuration macros are updated
to use PAD_CFG_STRUCT instead of setting the fields directly.
BUG=b:159944426
Change-Id: I03535d2da0c05f72c4163fa30d72f9c6df44908b
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42872
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/purism')
0 files changed, 0 insertions, 0 deletions