summaryrefslogtreecommitdiff
path: root/src/mainboard
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-20 18:25:36 +0000
commit35808fdb08fb8a69e2f572ac18bf2c566396bca8 (patch)
treef49a6dbe3bb0aea24d35f41a7e92ab8b76db29bc /src/mainboard
parente0469b6dedc5ede7461ae1b19588d5e7990a3262 (diff)
mb/google/sarien: do early pad configuration in early bootstage
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>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/sarien/bootblock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mainboard/google/sarien/bootblock.c b/src/mainboard/google/sarien/bootblock.c
index 5bd5d029fd..2419a0084f 100644
--- a/src/mainboard/google/sarien/bootblock.c
+++ b/src/mainboard/google/sarien/bootblock.c
@@ -5,7 +5,7 @@
#include <soc/gpio.h>
#include <variant/gpio.h>
-static void early_config_gpio(void)
+void bootblock_mainboard_early_init(void)
{
const struct pad_config *early_gpio_table;
size_t num_gpios = 0;
@@ -16,6 +16,5 @@ static void early_config_gpio(void)
void bootblock_mainboard_init(void)
{
- early_config_gpio();
wilco_ec_early_init();
}