mb/prodrive/hermes: 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 UART gpio table for the board as a first step. Common UART pad config code then gets dropped in CB:48829. Change-Id: I5b99a66fb64683f3647ebff3ab01ceb52058f79c Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49440 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
71624cd94f
commit
0d18da8627
|
@ -389,6 +389,18 @@ const struct pad_config early_gpio_table[] = {
|
||||||
|
|
||||||
/* LED */
|
/* LED */
|
||||||
PAD_CFG_GPO(GPP_H5, 0, DEEP), /* PCH_HBLED_n */
|
PAD_CFG_GPO(GPP_H5, 0, DEEP), /* PCH_HBLED_n */
|
||||||
|
|
||||||
|
/* UART0 */
|
||||||
|
PAD_CFG_NF(GPP_C8, NONE, DEEP, NF1), /* UART0_RXD */
|
||||||
|
PAD_CFG_NF(GPP_C9, NONE, DEEP, NF1), /* UART0_TXD */
|
||||||
|
|
||||||
|
/* UART1 */
|
||||||
|
PAD_CFG_NF(GPP_C12, NONE, DEEP, NF1), /* UART1_RXD */
|
||||||
|
PAD_CFG_NF(GPP_C13, NONE, DEEP, NF1), /* UART1_TXD */
|
||||||
|
|
||||||
|
/* UART2 */
|
||||||
|
PAD_CFG_NF(GPP_C20, NONE, DEEP, NF1), /* UART2_RXD */
|
||||||
|
PAD_CFG_NF(GPP_C21, NONE, DEEP, NF1), /* UART2_TXD */
|
||||||
};
|
};
|
||||||
|
|
||||||
void program_gpio_pads(void)
|
void program_gpio_pads(void)
|
||||||
|
|
Loading…
Reference in New Issue