diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2024-02-20 20:35:17 +0100 |
---|---|---|
committer | Matt DeVillier <matt.devillier@gmail.com> | 2024-02-22 22:19:11 +0000 |
commit | b6d16fb3fa777a7ba22a12fbd5873f272fd5d81d (patch) | |
tree | d872b47722a079332bc7ce24d1e17cc6ef68d632 /src/soc/intel/braswell | |
parent | 1e113bc8783837fb8c2ad12d8984e33bbeab486f (diff) |
soc/intel/braswell/gpio_support: drop unused get_gpio
The get_gpio function in this file is both unused and it shouldn't use
a signed int to pass in the MMIO base address and offset.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I3b08bad040ad175b37175ef21d0a0a29525c4478
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80690
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src/soc/intel/braswell')
-rw-r--r-- | src/soc/intel/braswell/gpio_support.c | 5 | ||||
-rw-r--r-- | src/soc/intel/braswell/include/soc/gpio.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/soc/intel/braswell/gpio_support.c b/src/soc/intel/braswell/gpio_support.c index 0a2e001898..34464afdcc 100644 --- a/src/soc/intel/braswell/gpio_support.c +++ b/src/soc/intel/braswell/gpio_support.c @@ -143,8 +143,3 @@ int gpio_get(gpio_t gpio_num) return pad_value & PAD_RX_BIT; } - -int get_gpio(int community_base, int pad0_offset) -{ - return (read32p(community_base + pad0_offset)) & PAD_RX_BIT; -} diff --git a/src/soc/intel/braswell/include/soc/gpio.h b/src/soc/intel/braswell/include/soc/gpio.h index 2a01b2d346..d4bfb89b3d 100644 --- a/src/soc/intel/braswell/include/soc/gpio.h +++ b/src/soc/intel/braswell/include/soc/gpio.h @@ -466,7 +466,6 @@ struct soc_gpio_config *mainboard_get_gpios(void); typedef int gpio_t; -int get_gpio(int community_base, int pad0_offset); uint16_t gpio_family_number(uint8_t community, uint8_t pad); uint32_t *gpio_pad_config_reg(uint8_t community, uint8_t pad); |