/* exynos_pinctrl_setup_peri: setup pinctrl for a peripheral. conf: soc specific pin configuration data array num_conf: number of configurations in the conf array. base: base address of the pin controller.  */
void exynos_pinctrl_setup_peri(struct exynos_pinctrl_config_data *conf, unsigned int num_conf, unsigned long base)
/* exynos_pinctrl_setup_peri: setup pinctrl for a peripheral. conf: soc specific pin configuration data array num_conf: number of configurations in the conf array. base: base address of the pin controller.  */
void exynos_pinctrl_setup_peri(struct exynos_pinctrl_config_data *conf, unsigned int num_conf, unsigned long base)
{
	unsigned int idx, val;
	for (idx = 0; idx < num_conf; idx++) {
		val = readl(base + conf[idx].offset);
		val &= ~(conf[idx].mask);
		val |= conf[idx].value;
		writel(val, base + conf[idx].offset);
	}
}