summaryrefslogtreecommitdiffstats
path: root/src/soc/qualcomm/sc7280
diff options
context:
space:
mode:
authorRavi Kumar Bokka <rbokka@codeaurora.org>2020-11-06 11:28:01 +0530
committerShelley Chen <shchen@google.com>2021-07-22 06:40:06 +0000
commitb01b47654677ddb7d14023f2e233b3151a287aa3 (patch)
treef20aa268f06991ec37d954ce9c473c74c5fc83dc /src/soc/qualcomm/sc7280
parentcd1257a1359450194a514ca0184131bcf23d2094 (diff)
downloadcoreboot-b01b47654677ddb7d14023f2e233b3151a287aa3.tar.gz
coreboot-b01b47654677ddb7d14023f2e233b3151a287aa3.tar.bz2
coreboot-b01b47654677ddb7d14023f2e233b3151a287aa3.zip
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>
Diffstat (limited to 'src/soc/qualcomm/sc7280')
-rw-r--r--src/soc/qualcomm/sc7280/Makefile.inc1
-rw-r--r--src/soc/qualcomm/sc7280/include/soc/uart.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/qualcomm/sc7280/Makefile.inc b/src/soc/qualcomm/sc7280/Makefile.inc
index abcc3fb175ab..3c34be010ca8 100644
--- a/src/soc/qualcomm/sc7280/Makefile.inc
+++ b/src/soc/qualcomm/sc7280/Makefile.inc
@@ -7,6 +7,7 @@ all-y += ../common/gpio.c
################################################################################
bootblock-y += bootblock.c
bootblock-y += mmu.c
+bootblock-$(CONFIG_DRIVERS_UART) += ../common/uart_bitbang.c
################################################################################
romstage-y += cbmem.c
diff --git a/src/soc/qualcomm/sc7280/include/soc/uart.h b/src/soc/qualcomm/sc7280/include/soc/uart.h
new file mode 100644
index 000000000000..2b2f2809d411
--- /dev/null
+++ b/src/soc/qualcomm/sc7280/include/soc/uart.h
@@ -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_ */