mb/clevo/kbl-u: drop duplicated configuration of UART pads
UART pads already get configured in bootblock by the UART driver in soc code. Thus, drop the duplicated code from the mainboard. Change-Id: I95565a74e19d693a7d5ead81e72592cc4ca2038c Signed-off-by: Michael Niewöhner <foss@mniewoehner.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48594 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
parent
1a0071c711
commit
ccceb2250e
@ -2,9 +2,6 @@
|
|||||||
|
|
||||||
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include
|
CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/include
|
||||||
|
|
||||||
bootblock-y += bootblock.c
|
|
||||||
bootblock-y += variants/$(VARIANT_DIR)/gpio_early.c
|
|
||||||
|
|
||||||
ramstage-y += ramstage.c
|
ramstage-y += ramstage.c
|
||||||
ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c
|
ramstage-y += variants/$(VARIANT_DIR)/hda_verb.c
|
||||||
ramstage-y += variants/$(VARIANT_DIR)/gpio.c
|
ramstage-y += variants/$(VARIANT_DIR)/gpio.c
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
||||||
|
|
||||||
#include <bootblock_common.h>
|
|
||||||
#include <variant/gpio.h>
|
|
||||||
|
|
||||||
void bootblock_mainboard_early_init(void)
|
|
||||||
{
|
|
||||||
variant_configure_early_gpios();
|
|
||||||
}
|
|
@ -3,7 +3,6 @@
|
|||||||
#ifndef VARIANT_GPIO_H
|
#ifndef VARIANT_GPIO_H
|
||||||
#define VARIANT_GPIO_H
|
#define VARIANT_GPIO_H
|
||||||
|
|
||||||
void variant_configure_early_gpios(void);
|
|
||||||
void variant_configure_gpios(void);
|
void variant_configure_gpios(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
||||||
|
|
||||||
#include <soc/gpio.h>
|
|
||||||
#include <variant/gpio.h>
|
|
||||||
|
|
||||||
static const struct pad_config early_gpio_table[] = {
|
|
||||||
// UART2_RXD
|
|
||||||
_PAD_CFG_STRUCT(GPP_C20, 0x44000702, 0x0),
|
|
||||||
|
|
||||||
// UART2_TXD
|
|
||||||
_PAD_CFG_STRUCT(GPP_C21, 0x44000700, 0x0)
|
|
||||||
};
|
|
||||||
|
|
||||||
void variant_configure_early_gpios(void)
|
|
||||||
{
|
|
||||||
gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user