/*! * This function configures the pad value for a IOMUX pin. * * @param pin a pin number as defined in \b #iomux_pin_name_t * @param config the ORed value of elements defined in \b #iomux_pad_config_t */ void mxc_iomux_set_pad(iomux_pin_name_t pin, u32 config) { void __iomem *pad_reg = _get_pad_reg(pin); void __iomem *sw_pad_reg = _get_sw_pad(); BUG_ON(pad_reg < sw_pad_reg); __raw_writel(config, pad_reg); }
unsigned int mxc_iomux_get_pad(iomux_pin_name_t pin) { u32 pad_reg = _get_pad_reg(pin); return readl(pad_reg); }
/*! * This function configures the pad value for a IOMUX pin. * * @param pin a pin number as defined in \b #iomux_pin_name_t * @param config the ORed value of elements defined in \b #iomux_pad_config_t */ void mxc_iomux_set_pad(iomux_pin_name_t pin, u32 config) { u32 pad_reg = _get_pad_reg(pin); writel(config, pad_reg); }
unsigned int mxc_iomux_get_pad(iomux_pin_name_t pin) { void __iomem *pad_reg = _get_pad_reg(pin); return __raw_readl(pad_reg); }