soc/amd/common/block/gpio_banks: factor out gpio_mux_ptr
commitaa9ad0544908761248e9ea9bd5d44e3d0d6b90ea
authorFelix Held <felix-coreboot@felixheld.de>
Tue, 3 Aug 2021 23:57:38 +0000 (4 01:57 +0200)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 8 Sep 2021 00:16:53 +0000 (8 00:16 +0000)
tree2c7343e5d21ef9be4a6ccee2a2f4f2d66558b948
parent85e733f0ef010e0bdeaab8e6e5790763844f805e
soc/amd/common/block/gpio_banks: factor out gpio_mux_ptr

This aligns the GPIO MUX access more with the GPIO control register
access and will facilitate adding support for the remote GPIO bank. Also
change the GPIO number argument type to gpio_t.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I4054656c5cc23ea942e8dd370fbbffca304755d6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56787
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
src/soc/amd/common/block/gpio_banks/gpio.c