mb/prodrive/hermes: Encapsulate GPIO setup
commitfe17a8cd6a2e734bd1bb8be45a41b3e1d46ab904
authorAngel Pons <th3fanbus@gmail.com>
Tue, 24 Nov 2020 14:26:10 +0000 (24 15:26 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Mon, 30 Nov 2020 08:02:09 +0000 (30 08:02 +0000)
treea9f0b0b8504328490e61fad4100ac0654bab4e0f
parent329ebb340b157bc64065473a960a97eae0e30914
mb/prodrive/hermes: Encapsulate GPIO setup

Having variants' gpio.c call the `gpio_configure_pads` function results
in an API that does not need to pass data around, which is much simpler.

Change-Id: I1064dc6258561bcf83f0e249d65b823368cf0d31
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47958
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
src/mainboard/prodrive/hermes/bootblock.c
src/mainboard/prodrive/hermes/ramstage.c
src/mainboard/prodrive/hermes/variants/baseboard/gpio.c
src/mainboard/prodrive/hermes/variants/baseboard/include/variant/gpio.h