/* Converts a flow control enum value to a Modem Control Register bit mask. 
It is assumed that the Modem Control Register contents that are being modified within this function come with the bits modified by this function already masked out by the caller. */
static bool uart_xlnx_ps_cfg2ll_hwctrl(uint32_t *modemcr_reg, enum uart_config_flow_control hwctrl)
/* Converts a flow control enum value to a Modem Control Register bit mask. 
It is assumed that the Modem Control Register contents that are being modified within this function come with the bits modified by this function already masked out by the caller. */
static bool uart_xlnx_ps_cfg2ll_hwctrl(uint32_t *modemcr_reg, enum uart_config_flow_control hwctrl)
{
	if (hwctrl == UART_CFG_FLOW_CTRL_RTS_CTS) {
		*modemcr_reg |= XUARTPS_MODEMCR_FCM_RTS_CTS;
	} else if (hwctrl ==  UART_CFG_FLOW_CTRL_NONE) {
		*modemcr_reg |= XUARTPS_MODEMCR_FCM_NONE;
	} else {
		return false;
	}
	return true;
}