From b2c2b92a6d6fe4bf21f22db54ef85972c795aaf3 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 23 Nov 2021 10:19:28 +0100 Subject: soc/amd/common/block/gpio: drop unused gpio_get_address Signed-off-by: Felix Held Change-Id: I5b47324af368f81288e9e9be65fe0f1ae2fa3697 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59599 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- src/soc/amd/common/block/gpio/gpio.c | 5 ----- src/soc/amd/common/block/include/amdblocks/gpio.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/src/soc/amd/common/block/gpio/gpio.c b/src/soc/amd/common/block/gpio/gpio.c index 1141846842..163de2de58 100644 --- a/src/soc/amd/common/block/gpio/gpio.c +++ b/src/soc/amd/common/block/gpio/gpio.c @@ -125,11 +125,6 @@ static void program_sci(uint32_t flags, unsigned int gevent_num) configure_scimap(&sci); } -uintptr_t gpio_get_address(gpio_t gpio_num) -{ - return (uintptr_t)gpio_ctrl_ptr(gpio_num); -} - static void gpio_update32(gpio_t gpio_num, uint32_t mask, uint32_t or) { uint32_t reg; diff --git a/src/soc/amd/common/block/include/amdblocks/gpio.h b/src/soc/amd/common/block/include/amdblocks/gpio.h index 21b73f775b..7e6df9fb23 100644 --- a/src/soc/amd/common/block/include/amdblocks/gpio.h +++ b/src/soc/amd/common/block/include/amdblocks/gpio.h @@ -75,9 +75,6 @@ void gpio_configure_pads_with_override(const struct soc_amd_gpio *base_cfg, const struct soc_amd_gpio *override_cfg, size_t override_num_pads); -/* Get the address of the control register of a particular pin */ -uintptr_t gpio_get_address(gpio_t gpio_num); - /** * @brief program a particular set of GPIO * -- cgit v1.2.3