ipq: ported uart_wait_tx_empty function to wait until TX FIFO is emptied

Ported uart_wait_tx_empty function from ipq806x to wait until the TX FIFO is emptied
to avoid FIFO corruption during serial init after relocation

Change-Id: Id95627c791c1159fdd3392e6aa35738e7561d489
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
This commit is contained in:
devi priya 2022-04-25 19:18:55 +05:30
parent ec98947562
commit ea029c9d1c
2 changed files with 6 additions and 1 deletions

View file

@ -232,7 +232,7 @@ int board_init(void)
#endif
disable_audio_clks();
/*
* Needed by ipq806x to avoid TX FIFO curruption during
* Needed by ipq806x & ipq9574 to avoid TX FIFO curruption during
* serial init after relocation
*/
uart_wait_tx_empty();

View file

@ -1589,3 +1589,8 @@ int do_dpr(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
U_BOOT_CMD(dpr_execute, 2, 0, do_dpr,
"Debug Policy Request processing\n",
"dpr_execute [address] - Processing dpr\n");
void uart_wait_tx_empty(void)
{
ipq_serial_wait_tx_empty();
}