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>
This commit is contained in:
parent
46f769d921
commit
c2800a5a60
|
@ -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);
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue