/* This function is used to configure a pin through the IOMUX module.  */
static void iomux_config_mux(iomux_pin_name_t pin, iomux_pin_cfg_t cfg)
/* This function is used to configure a pin through the IOMUX module.  */
static void iomux_config_mux(iomux_pin_name_t pin, iomux_pin_cfg_t cfg)
{
	u32 mux_reg = get_mux_reg(pin);
	if ((mux_reg > get_mux_end()) || (mux_reg < IOMUXSW_MUX_CTL))
		return ;
	if (cfg == IOMUX_CONFIG_GPIO)
		writel(PIN_TO_ALT_GPIO(pin), mux_reg);
	else
		writel(cfg, mux_reg);
}