5413a77f34
Do early pad configuration in early bootblock before console init, to make the console work as early as possible. The board does not do any other gpio configuration in bootblock, so this should not influence behaviour in a negative way (e.g. breaking overrides). Change-Id: I2f484d232a46214ff98168f41f96d56b047892e2 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49422 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
16 lines
322 B
C
16 lines
322 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <baseboard/variants.h>
|
|
#include <bootblock_common.h>
|
|
#include <soc/gpio.h>
|
|
|
|
#include <variant/gpio.h>
|
|
|
|
void bootblock_mainboard_early_init(void)
|
|
{
|
|
const struct pad_config *pads;
|
|
size_t num;
|
|
|
|
pads = variant_early_gpio_table(&num);
|
|
gpio_configure_pads(pads, num);
|
|
}
|