35808fdb08
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: I342b9217af0288a3b525e629aac791eb0f880442 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49420 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
20 lines
451 B
C
20 lines
451 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <bootblock_common.h>
|
|
#include <ec/google/wilco/bootblock.h>
|
|
#include <soc/gpio.h>
|
|
#include <variant/gpio.h>
|
|
|
|
void bootblock_mainboard_early_init(void)
|
|
{
|
|
const struct pad_config *early_gpio_table;
|
|
size_t num_gpios = 0;
|
|
|
|
early_gpio_table = variant_early_gpio_table(&num_gpios);
|
|
gpio_configure_pads(early_gpio_table, num_gpios);
|
|
}
|
|
|
|
void bootblock_mainboard_init(void)
|
|
{
|
|
wilco_ec_early_init();
|
|
}
|