diff options
author | Furquan Shaikh <furquan@google.com> | 2020-07-16 10:29:31 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2020-07-17 18:30:20 +0000 |
commit | b88409deb12406401c1e70af519fcbf8033860e0 (patch) | |
tree | 60178fdbb0c9db3b9b5673d7143635640393535e /src | |
parent | 538de782b192262dbd418449cf6f171254f880a6 (diff) |
soc/amd/common/gpio: Add macro for PAD_NC
This change adds a macro `PAD_NC` for configuring no-connect pads. This
configures the pad as input with pull-down.
Change-Id: I47c41c88ccfebe2c5dd9a24f85a120af9c8f56b5
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43521
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/amd/common/block/include/amdblocks/gpio_banks.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/gpio_banks.h b/src/soc/amd/common/block/include/amdblocks/gpio_banks.h index 92eae73430..7a9638d935 100644 --- a/src/soc/amd/common/block/include/amdblocks/gpio_banks.h +++ b/src/soc/amd/common/block/include/amdblocks/gpio_banks.h @@ -307,6 +307,10 @@ static inline bool is_gpio_event_active_low(uint32_t flags) PAD_CFG_STRUCT(pin, pin ## _IOMUX_GPIOxx, \ PAD_PULL(pull) | PAD_DEBOUNCE_CONFIG(type) | PAD_DEBOUNCE_CONFIG(time)) +/* No-connect pad - configured as input with PULL_DOWN */ +#define PAD_NC(pin) \ + PAD_CFG_STRUCT(pin, pin ## _IOMUX_GPIOxx, PAD_PULL(PULL_DOWN)) + typedef uint32_t gpio_t; /* |