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>
This commit is contained in:
parent
b424caa25a
commit
5a2c7969e9
File diff suppressed because it is too large
Load Diff
|
@ -2,6 +2,7 @@
|
||||||
* This file is part of the coreboot project.
|
* This file is part of the coreboot project.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2017 Intel Corp.
|
* Copyright (C) 2017 Intel Corp.
|
||||||
|
* Copyright (C) 2017 - 2018 Online SAS.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -14,7 +15,6 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "harcuvar_boardid.h"
|
|
||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <fsp/api.h>
|
#include <fsp/api.h>
|
||||||
|
@ -31,21 +31,12 @@ void mainboard_config_gpios(void)
|
||||||
{
|
{
|
||||||
size_t num;
|
size_t num;
|
||||||
const struct pad_config *table;
|
const struct pad_config *table;
|
||||||
uint8_t boardid = board_id();
|
|
||||||
|
|
||||||
/* Configure pads prior to SiliconInit() in case there's any
|
/* Configure pads prior to SiliconInit() in case there's any
|
||||||
* dependencies during hardware initialization.
|
* dependencies during hardware initialization.
|
||||||
*/
|
*/
|
||||||
switch (boardid) {
|
table = tagada_gpio_config;
|
||||||
case BoardIdHarcuvar:
|
num = ARRAY_SIZE(tagada_gpio_config);
|
||||||
table = harcuvar_gpio_table;
|
|
||||||
num = ARRAY_SIZE(harcuvar_gpio_table);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
table = NULL;
|
|
||||||
num = 0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((!table) || (!num)) {
|
if ((!table) || (!num)) {
|
||||||
printk(BIOS_ERR, "ERROR: No valid GPIO table found!\n");
|
printk(BIOS_ERR, "ERROR: No valid GPIO table found!\n");
|
||||||
|
|
Loading…
Reference in New Issue