summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/glados/variants/asuka/include/variant/gpio.h
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 17:51:36 +0000
commit1b77a487d6161053c36b5eeade3775b6858fb6ab (patch)
treebb219781872dddaa2a328394d988bc3e4318b12b /src/mainboard/google/glados/variants/asuka/include/variant/gpio.h
parent1c22753996fc7884115e478249b3080fb4bb9c83 (diff)
downloadcoreboot-1b77a487d6161053c36b5eeade3775b6858fb6ab.tar.gz
coreboot-1b77a487d6161053c36b5eeade3775b6858fb6ab.tar.bz2
coreboot-1b77a487d6161053c36b5eeade3775b6858fb6ab.zip
mb/google/glados: 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: I6fedcebea3bb31d992bac1e3b21382fea93a8b82 Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49429 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/glados/variants/asuka/include/variant/gpio.h')
-rw-r--r--src/mainboard/google/glados/variants/asuka/include/variant/gpio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainboard/google/glados/variants/asuka/include/variant/gpio.h b/src/mainboard/google/glados/variants/asuka/include/variant/gpio.h
index b4c65baa90c2..17c24a2ed72d 100644
--- a/src/mainboard/google/glados/variants/asuka/include/variant/gpio.h
+++ b/src/mainboard/google/glados/variants/asuka/include/variant/gpio.h
@@ -217,6 +217,8 @@ static const struct pad_config gpio_table[] = {
/* Early pad configuration in romstage. */
static const struct pad_config early_gpio_table[] = {
/* SPI_WP_STATUS */ PAD_CFG_GPI_GPIO_DRIVER(GPP_C23, UP_20K, DEEP),
+/* GD_UART2_RXD */ PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1),
+/* GD_UART2_TXD */ PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1),
};
#endif