int exynos_pinmux_config(int peripheral, int flags) { if (cpu_is_exynos5()) return exynos5_pinmux_config(peripheral, flags); else if (cpu_is_exynos4()) return exynos4_pinmux_config(peripheral, flags); else { debug("pinmux functionality not supported\n"); return -1; } }
int exynos_pinmux_config(int peripheral, int flags) { if (cpu_is_exynos5()) { if (proid_is_exynos5420() || proid_is_exynos5800()) return exynos5420_pinmux_config(peripheral, flags); else if (proid_is_exynos5250()) return exynos5_pinmux_config(peripheral, flags); } else if (cpu_is_exynos4()) { if (proid_is_exynos4412()) return exynos4x12_pinmux_config(peripheral, flags); else return exynos4_pinmux_config(peripheral, flags); } debug("pinmux functionality not supported\n"); return -1; }