Adjust GPIO init to look like prior boards

Change-Id: I36ff193a1d540f1723f45ebd7326a02b24c090d7
This commit is contained in:
Jeremy Soller
2020-10-14 20:14:03 -06:00
parent d811be0127
commit 3c75673da2
3 changed files with 9 additions and 13 deletions

View File

@@ -1,3 +1,3 @@
bootblock-y += bootblock.c bootblock-y += bootblock.c
ramstage-y += mainboard.c ramstage-y += ramstage.c
ramstage-y += hda_verb.c ramstage-y += hda_verb.c

View File

@@ -1,12 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h>
#include "gpio.h"
static void mainboard_init(void *chip_info) {
gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
}
struct chip_operations mainboard_ops = {
.init = mainboard_init,
};

View File

@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <soc/ramstage.h>
#include "gpio.h"
void mainboard_silicon_init_params(FSP_S_CONFIG *params) {
gpio_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
}