summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/common/block')
-rw-r--r--src/soc/amd/common/block/gpio_banks/gpio.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/soc/amd/common/block/gpio_banks/gpio.c b/src/soc/amd/common/block/gpio_banks/gpio.c
index 7f5b4b6b94..ce7e20a737 100644
--- a/src/soc/amd/common/block/gpio_banks/gpio.c
+++ b/src/soc/amd/common/block/gpio_banks/gpio.c
@@ -36,25 +36,15 @@ static inline void *gpio_mux_ptr(gpio_t gpio_num)
return acpimmio_iomux + gpio_num;
}
-static inline uint8_t iomux_read8(gpio_t gpio_num)
+static uint8_t get_gpio_mux(gpio_t gpio_num)
{
return read8(gpio_mux_ptr(gpio_num));
}
-static inline void iomux_write8(gpio_t gpio_num, uint8_t value)
+static void set_gpio_mux(gpio_t gpio_num, uint8_t function)
{
- write8(gpio_mux_ptr(gpio_num), value);
-}
-
-static uint8_t get_gpio_mux(gpio_t gpio)
-{
- return iomux_read8(gpio);
-}
-
-static void set_gpio_mux(gpio_t gpio, uint8_t function)
-{
- iomux_write8(gpio, function & AMD_GPIO_MUX_MASK);
- get_gpio_mux(gpio); /* Flush posted write */
+ write8(gpio_mux_ptr(gpio_num), function & AMD_GPIO_MUX_MASK);
+ get_gpio_mux(gpio_num); /* Flush posted write */
}
static int get_gpio_gevent(gpio_t gpio, const struct soc_amd_event *table,