Ravi kumar has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47528 )
Change subject: sc7280: HACK PATCH: UART source clock frequency change ......................................................................
sc7280: HACK PATCH: UART source clock frequency change
On SoC, console UART works fine with 19.2MHz On Rumi, facing issues with 19.2MHz and changed it to 7372800Hz
Change-Id: I7e91d704f51290d4e368972d53fde59161936c3f Signed-off-by: Roja Rani Yarubandi rojay@codeaurora.org --- M src/soc/qualcomm/sc7280/qupv3_uart.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/28/47528/1
diff --git a/src/soc/qualcomm/sc7280/qupv3_uart.c b/src/soc/qualcomm/sc7280/qupv3_uart.c index 5679a25..c9ae1ab 100644 --- a/src/soc/qualcomm/sc7280/qupv3_uart.c +++ b/src/soc/qualcomm/sc7280/qupv3_uart.c @@ -71,7 +71,7 @@ /* sc7280 requires 16 clock pulses to sample 1 bit of data */ uart_freq = baud_rate * 16;
- div = DIV_ROUND_CLOSEST(SRC_XO_HZ, uart_freq); + div = DIV_ROUND_CLOSEST(7372800, uart_freq); write32(®s->geni_ser_m_clk_cfg, (div << 4) | 1); write32(®s->geni_ser_s_clk_cfg, (div << 4) | 1);