aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/intel/kblrvp/bootblock.c
diff options
context:
space:
mode:
authorMichael Niewöhner <foss@mniewoehner.de>2020-12-21 03:46:58 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2021-01-21 19:01:58 +0000
commit18d360a5820ca208524886e96a35c5f296011fe2 (patch)
treec0b9cb5e67e23fd371e1488e49621c6044918746 /src/mainboard/intel/kblrvp/bootblock.c
parentf6d320060d4ab96fbe383cb9fd01fa43a8e022b7 (diff)
mb/intel/kblrvp: do UART pad configuration at board-level
UART pad configuration should not be done in common code, because that may cause short circuits, when the user sets a wrong UART index. Thus, add the corresponding pads to the early gpio table for the board as a first step. Common UART pad config code then gets dropped in CB:48829. Also switch to `bootblock_mainboard_early_init` to configure the pads in early bootblock before console initialization, 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: I8b30eb5d70c34ae3e2ed24ab52dd1357a54c5ae7 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49439 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/intel/kblrvp/bootblock.c')
-rw-r--r--src/mainboard/intel/kblrvp/bootblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/intel/kblrvp/bootblock.c b/src/mainboard/intel/kblrvp/bootblock.c
index 19c5e9efb8..41105826fb 100644
--- a/src/mainboard/intel/kblrvp/bootblock.c
+++ b/src/mainboard/intel/kblrvp/bootblock.c
@@ -12,7 +12,7 @@ static void early_config_gpio(void)
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
}
-void bootblock_mainboard_init(void)
+void bootblock_mainboard_early_init(void)
{
early_config_gpio();
}