diff options
author | Julien Viard de Galbert <jviarddegalbert@online.net> | 2018-02-13 23:19:08 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-02-16 17:12:31 +0000 |
commit | 5a2c7969e9693ba3f6bb7e79f9fe8a17aa229d4e (patch) | |
tree | 68d8f4d69961316018ec0d68e614d5bf7179435d /src/mainboard/scaleway/tagada/romstage.c | |
parent | b424caa25af59d33c37bea319c33594915e63ba5 (diff) | |
download | coreboot-5a2c7969e9693ba3f6bb7e79f9fe8a17aa229d4e.tar.xz |
mb/scaleway/tagada: Update GPIO configuration
Change-Id: Ia0293a0ec85c752686750dadb9730a159fd0c073
Signed-off-by: Julien Viard de Galbert <jviarddegalbert@online.net>
Reviewed-on: https://review.coreboot.org/23740
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/scaleway/tagada/romstage.c')
-rw-r--r-- | src/mainboard/scaleway/tagada/romstage.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mainboard/scaleway/tagada/romstage.c b/src/mainboard/scaleway/tagada/romstage.c index 144d1e8961..d6a128209e 100644 --- a/src/mainboard/scaleway/tagada/romstage.c +++ b/src/mainboard/scaleway/tagada/romstage.c @@ -2,6 +2,7 @@ * This file is part of the coreboot project. * * Copyright (C) 2017 Intel Corp. + * Copyright (C) 2017 - 2018 Online SAS. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +15,6 @@ * GNU General Public License for more details. */ -#include "harcuvar_boardid.h" #include "gpio.h" #include <console/console.h> #include <fsp/api.h> @@ -31,21 +31,12 @@ void mainboard_config_gpios(void) { size_t num; const struct pad_config *table; - uint8_t boardid = board_id(); /* Configure pads prior to SiliconInit() in case there's any * dependencies during hardware initialization. */ - switch (boardid) { - case BoardIdHarcuvar: - table = harcuvar_gpio_table; - num = ARRAY_SIZE(harcuvar_gpio_table); - break; - default: - table = NULL; - num = 0; - break; - } + table = tagada_gpio_config; + num = ARRAY_SIZE(tagada_gpio_config); if ((!table) || (!num)) { printk(BIOS_ERR, "ERROR: No valid GPIO table found!\n"); |