aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/prodrive/hermes/ramstage.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-24 15:26:10 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-11-30 08:02:09 +0000
commitfe17a8cd6a2e734bd1bb8be45a41b3e1d46ab904 (patch)
treea9f0b0b8504328490e61fad4100ac0654bab4e0f /src/mainboard/prodrive/hermes/ramstage.c
parent329ebb340b157bc64065473a960a97eae0e30914 (diff)
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>
Diffstat (limited to 'src/mainboard/prodrive/hermes/ramstage.c')
-rw-r--r--src/mainboard/prodrive/hermes/ramstage.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mainboard/prodrive/hermes/ramstage.c b/src/mainboard/prodrive/hermes/ramstage.c
index 135d7754aa..e3dfffc2b3 100644
--- a/src/mainboard/prodrive/hermes/ramstage.c
+++ b/src/mainboard/prodrive/hermes/ramstage.c
@@ -10,12 +10,9 @@ static fsp_params parmas_list[] = {
void mainboard_silicon_init_params(FSP_S_CONFIG *params)
{
- size_t num = 0;
- const struct pad_config *gpio_table = get_gpio_table(&num);
-
/* Configure pads prior to SiliconInit() in case there's any
dependencies during hardware initialization. */
- gpio_configure_pads(gpio_table, num);
+ program_gpio_pads();
params->SataLedEnable = 1;