summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorRajesh Patil <rajpat@codeaurora.org>2021-06-18 09:17:34 +0530
committerShelley Chen <shchen@google.com>2021-09-23 04:43:59 +0000
commitc2800a5a60f6b914f9a62c7ab301cfd49f97075f (patch)
tree8902bf1b60d6249af5081840ec8a5653a64befd4 /src/soc
parent46f769d9210a0668e96061ef91f7cc22bb2efb03 (diff)
soc/qualcomm/common: Move UART SC7180 driver to common section
Move existing UART driver from sc7180 to common folder. This implements UART driver for QCOM SoC's BUG=b:182963902 TEST=Validated on qualcomm sc7180 and sc7280 development board. Signed-off-by: Rajesh Patil <rajpat@codeaurora.org> Change-Id: I7bc2d3765f956e04bae3e45c3a9b9e2ad424c7b1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55954 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shelley Chen <shchen@google.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/qualcomm/common/qupv3_uart.c (renamed from src/soc/qualcomm/sc7180/qupv3_uart.c)4
-rw-r--r--src/soc/qualcomm/sc7180/Makefile.inc6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/soc/qualcomm/sc7180/qupv3_uart.c b/src/soc/qualcomm/common/qupv3_uart.c
index 862c950cfb..2086c1df70 100644
--- a/src/soc/qualcomm/sc7180/qupv3_uart.c
+++ b/src/soc/qualcomm/common/qupv3_uart.c
@@ -5,8 +5,8 @@
#include <console/uart.h>
#include <soc/clock.h>
#include <soc/qcom_qup_se.h>
-#include <soc/qupv3_config_common.h>
#include <soc/qup_se_handlers_common.h>
+#include <soc/qupv3_config_common.h>
#include <types.h>
/* COMMON STATUS/CONFIGURATION REGISTERS AND MASKS */
@@ -69,7 +69,7 @@ void uart_init(unsigned int idx)
baud_rate = get_uart_baudrate();
- /* sc7180 requires 16 clock pulses to sample 1 bit of data */
+ /*requires 16 clock pulses to sample 1 bit of data */
uart_freq = baud_rate * 16;
div = DIV_ROUND_CLOSEST(SRC_XO_HZ, uart_freq);
diff --git a/src/soc/qualcomm/sc7180/Makefile.inc b/src/soc/qualcomm/sc7180/Makefile.inc
index 8fb8b48e10..7c393b3fac 100644
--- a/src/soc/qualcomm/sc7180/Makefile.inc
+++ b/src/soc/qualcomm/sc7180/Makefile.inc
@@ -21,7 +21,7 @@ bootblock-y += bootblock.c
bootblock-y += mmu.c
bootblock-$(CONFIG_DRIVERS_UART) += ../common/uart_bitbang.c
################################################################################
-verstage-$(CONFIG_DRIVERS_UART) += qupv3_uart.c
+verstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c
################################################################################
romstage-y += cbmem.c
@@ -31,14 +31,14 @@ romstage-y += ../common/mmu.c
romstage-y += mmu.c
romstage-y += usb.c
romstage-y += carve_out.c
-romstage-$(CONFIG_DRIVERS_UART) += qupv3_uart.c
+romstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c
################################################################################
ramstage-y += soc.c
ramstage-y += carve_out.c
ramstage-y += aop_load_reset.c
ramstage-y += usb.c
-ramstage-$(CONFIG_DRIVERS_UART) += qupv3_uart.c
+ramstage-$(CONFIG_DRIVERS_UART) += ../common/qupv3_uart.c
ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/dsi_phy_pll.c
ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/dsi_phy.c
ramstage-$(CONFIG_MAINBOARD_DO_NATIVE_VGA_INIT) += display/dsi.c