/* This function is used to config the rx retry count when detect parity error.  */
void wm_sc_rx_retry_times(uint8_t count)
/* This function is used to config the rx retry count when detect parity error.  */
void wm_sc_rx_retry_times(uint8_t count)
{
	uint32_t reg;
	reg = tls_reg_read32(HR_UART2_LINE_CTRL);
	reg &= ~(0x7 << 20);
	tls_reg_write32(HR_UART2_LINE_CTRL, reg|(count<<20));
	tls_bitband_write(HR_UART2_LINE_CTRL, 19, 1);}