mb/google/dedede: do UART pad config at board-level
commit805b96cdc6c9ae288f18904ee3d1b13acd82d786
authorMichael Niewöhner <foss@mniewoehner.de>
Mon, 21 Dec 2020 02:46:58 +0000 (21 03:46 +0100)
committerMichael Niewöhner <foss@mniewoehner.de>
Thu, 21 Jan 2021 17:49:29 +0000 (21 17:49 +0000)
tree9cf5b905a267d84a7afdb5a0c8c579cf6cea5b35
parent4bf70523b33757b539405cbe8413029980ec2dad
mb/google/dedede: do UART pad config 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 UART 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: I5482f44b361925b7d2dbcbf1065c1be035c68b0b
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49424
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/mainboard/google/dedede/bootblock.c
src/mainboard/google/dedede/variants/baseboard/gpio.c