/* Converts a Modem Control Register bit mask to a flow control configuration enum value. 
Converts a bit mask representing the UART's flow control setting within the UART's Modem Control Register into a value of an enumeration type provided by the UART driver API. */
static enum uart_config_flow_control uart_xlnx_ps_ll2cfg_hwctrl(uint32_t modemcr_reg)
/* Converts a Modem Control Register bit mask to a flow control configuration enum value. 
Converts a bit mask representing the UART's flow control setting within the UART's Modem Control Register into a value of an enumeration type provided by the UART driver API. */
static enum uart_config_flow_control uart_xlnx_ps_ll2cfg_hwctrl(uint32_t modemcr_reg)
{
	if ((modemcr_reg & XUARTPS_MODEMCR_FCM_MASK)
		== XUARTPS_MODEMCR_FCM_RTS_CTS) {
		return UART_CFG_FLOW_CTRL_RTS_CTS;
	}
	return UART_CFG_FLOW_CTRL_NONE;
}