soc/qualcomm: move uart_bitbang UART w/gpio code to common

BUG=b:182963902
TEST=Validated on qualcomm sc7280 development board

Change-Id: Ic6c70f917a59e233f6ea518d9c39f73fe84991c3
Signed-off-by: Ravi Kumar Bokka <rbokka@codeaurora.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47284
Reviewed-by: Shelley Chen <shchen@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Ravi Kumar Bokka 2020-11-06 11:28:01 +05:30 committed by Shelley Chen
parent cd1257a135
commit b01b476546
5 changed files with 19 additions and 3 deletions

View File

@ -3,8 +3,7 @@
#include <console/uart.h> #include <console/uart.h>
#include <gpio.h> #include <gpio.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include <soc/uart.h>
#define UART_TX_PIN GPIO(44)
void uart_fill_lb(void *data) void uart_fill_lb(void *data)
{ {

View File

@ -17,7 +17,7 @@ all-y += qupv3_config.c
################################################################################ ################################################################################
bootblock-y += bootblock.c bootblock-y += bootblock.c
bootblock-y += mmu.c bootblock-y += mmu.c
bootblock-$(CONFIG_DRIVERS_UART) += uart_bitbang.c bootblock-$(CONFIG_DRIVERS_UART) += ../common/uart_bitbang.c
################################################################################ ################################################################################
verstage-$(CONFIG_DRIVERS_UART) += qupv3_uart.c verstage-$(CONFIG_DRIVERS_UART) += qupv3_uart.c

View File

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _SOC_QUALCOMM_SC7180_UART_TX_H_
#define _SOC_QUALCOMM_SC7180_UART_TX_H_
#define UART_TX_PIN GPIO(44)
#endif /* _SOC_QUALCOMM_SC7180_UART_TX_H_ */

View File

@ -7,6 +7,7 @@ all-y += ../common/gpio.c
################################################################################ ################################################################################
bootblock-y += bootblock.c bootblock-y += bootblock.c
bootblock-y += mmu.c bootblock-y += mmu.c
bootblock-$(CONFIG_DRIVERS_UART) += ../common/uart_bitbang.c
################################################################################ ################################################################################
romstage-y += cbmem.c romstage-y += cbmem.c

View File

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _SOC_QUALCOMM_SC7280_UART_TX_H_
#define _SOC_QUALCOMM_SC7280_UART_TX_H_
#define UART_TX_PIN GPIO(22)
#endif /* _SOC_QUALCOMM_SC7280_UART_TX_H_ */