Fix compilation

Change-Id: Ie6e0bf1d4ad7829d0d76c716d241ac5c15e9c331
This commit is contained in:
Jeremy Soller
2020-10-13 12:29:53 -06:00
parent 9d7f328e41
commit a90ec66c0a
4 changed files with 13 additions and 12 deletions

View File

@@ -65,7 +65,7 @@ config MAX_CPUS
config DIMM_MAX
int
default 2
default 4 # Hack to make soc code work
config DIMM_SPD_SIZE
int

View File

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

View File

@@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#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

@@ -1,10 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <soc/ramstage.h>
#include "gpio.h"
void mainboard_silicon_init_params(FSP_S_CONFIG *params) {
/* Configure pads prior to SiliconInit() in case there's any
* dependencies during hardware initialization. */
cnl_configure_pads(gpio_table, ARRAY_SIZE(gpio_table));
}