c1d1dddbcc
Rework gpio setup for the board series to not use headers but stage-specific compilation units. Tested successfully on X11SSM-F. Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Change-Id: Ic62ce4335af605c081ef288e892441585ff2bd3e Reviewed-on: https://review.coreboot.org/c/coreboot/+/48087 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
19 lines
484 B
C
19 lines
484 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <bootblock_common.h>
|
|
#include <mainboard/gpio.h>
|
|
#include <superio/aspeed/common/aspeed.h>
|
|
#include <superio/aspeed/ast2400/ast2400.h>
|
|
#include <console/uart.h>
|
|
|
|
static void early_config_superio(void)
|
|
{
|
|
const pnp_devfn_t serial_dev = PNP_DEV(0x2e, AST2400_SUART1);
|
|
aspeed_enable_serial(serial_dev, CONFIG_TTYS0_BASE);
|
|
}
|
|
|
|
void bootblock_mainboard_early_init(void)
|
|
{
|
|
mainboard_configure_early_gpios();
|
|
early_config_superio();
|
|
}
|