mb/siemens/mc_apl1: do LPC/eSPI pad configuration at board-level

Do LPC/eSPI pad configuration at board-level to match other platforms.

Early gpio configuration was done in romstage, while LPC pads were
configured in bootblock. Instead of adding another dedicated gpio table
for bootblock, move early gpio configuration completely to bootblock on
these boards. This won't hurt, since there is no code touching the pads
in between.

The soc code gets dropped in CB:49410.

Change-Id: I2a614afb305036b0581eac8ed6a723a3f80747b3
Tested-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49413
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
This commit is contained in:
Michael Niewöhner 2020-12-21 17:09:08 +01:00 committed by Patrick Georgi
parent 7519ca42b5
commit ec1c0f5337
8 changed files with 15 additions and 14 deletions

View file

@ -1,9 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <baseboard/variants.h>
#include <bootblock_common.h>
#include <intelblocks/lpc_lib.h>
#include <intelblocks/gpio.h>
void bootblock_mainboard_init(void)
{
lpc_configure_pads();
const struct pad_config *pads;
size_t num;
pads = variant_early_gpio_table(&num);
gpio_configure_pads(pads, num);
}

View file

@ -11,15 +11,9 @@
void mainboard_memory_init_params(FSPM_UPD *memupd)
{
const struct pad_config *pads;
const struct lpddr4_swizzle_cfg *cfg;
const struct lpddr4_chan_swizzle_cfg *chan;
uint8_t spd[0x80];
size_t num;
/* setup early gpio before memory */
pads = variant_early_gpio_table(&num);
gpio_configure_pads(pads, num);
/*
* Get DRAM configuration data from hwinfo block.

View file

@ -1,4 +1,5 @@
romstage-y += gpio.c
bootblock-y += gpio.c
romstage-y += memory.c
ramstage-y += gpio.c

View file

@ -1,4 +1,4 @@
romstage-y += gpio.c
bootblock-y += gpio.c
ramstage-y += gpio.c
ramstage-y += mainboard.c

View file

@ -1,4 +1,4 @@
romstage-y += gpio.c
bootblock-y += gpio.c
ramstage-y += gpio.c
ramstage-y += mainboard.c

View file

@ -1,5 +1,6 @@
bootblock-y += gpio.c
romstage-y += memory.c
romstage-y += gpio.c
ramstage-y += gpio.c
ramstage-y += lcd_panel.c

View file

@ -1,4 +1,4 @@
romstage-y += gpio.c
bootblock-y += gpio.c
ramstage-y += gpio.c
ramstage-y += mainboard.c

View file

@ -1,4 +1,4 @@
romstage-y += gpio.c
bootblock-y += gpio.c
ramstage-y += gpio.c
ramstage-y += mainboard.c