Lines Matching full:peripheral

13 static void exynos5_uart_config(int peripheral)  in exynos5_uart_config()  argument
17 switch (peripheral) { in exynos5_uart_config()
35 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos5_uart_config()
44 static void exynos5420_uart_config(int peripheral) in exynos5420_uart_config() argument
48 switch (peripheral) { in exynos5420_uart_config()
66 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos5420_uart_config()
76 static int exynos5_mmc_config(int peripheral, int flags) in exynos5_mmc_config() argument
80 switch (peripheral) { in exynos5_mmc_config()
100 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos5_mmc_config()
105 peripheral); in exynos5_mmc_config()
129 static int exynos5420_mmc_config(int peripheral, int flags) in exynos5420_mmc_config() argument
133 switch (peripheral) { in exynos5420_mmc_config()
148 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos5420_mmc_config()
154 peripheral); in exynos5420_mmc_config()
173 if ((peripheral == PERIPH_ID_SDMMC0) && (i == (start + 2))) { in exynos5420_mmc_config()
266 static void exynos5_i2c_config(int peripheral, int flags) in exynos5_i2c_config() argument
279 switch (peripheral) { in exynos5_i2c_config()
315 static void exynos5420_i2c_config(int peripheral) in exynos5420_i2c_config() argument
317 switch (peripheral) { in exynos5420_i2c_config()
365 static void exynos5_i2s_config(int peripheral) in exynos5_i2s_config() argument
369 switch (peripheral) { in exynos5_i2s_config()
381 static void exynos5420_i2s_config(int peripheral) in exynos5420_i2s_config() argument
385 switch (peripheral) { in exynos5420_i2s_config()
395 void exynos5_spi_config(int peripheral) in exynos5_spi_config() argument
399 switch (peripheral) { in exynos5_spi_config()
423 if (peripheral != PERIPH_ID_SPI4) { in exynos5_spi_config()
429 void exynos5420_spi_config(int peripheral) in exynos5420_spi_config() argument
433 switch (peripheral) { in exynos5420_spi_config()
457 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos5420_spi_config()
461 if (peripheral != PERIPH_ID_SPI4) { in exynos5420_spi_config()
474 static int exynos5_pinmux_config(int peripheral, int flags) in exynos5_pinmux_config() argument
476 switch (peripheral) { in exynos5_pinmux_config()
481 exynos5_uart_config(peripheral); in exynos5_pinmux_config()
487 return exynos5_mmc_config(peripheral, flags); in exynos5_pinmux_config()
499 exynos5_i2c_config(peripheral, flags); in exynos5_pinmux_config()
503 exynos5_i2s_config(peripheral); in exynos5_pinmux_config()
510 exynos5_spi_config(peripheral); in exynos5_pinmux_config()
526 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos5_pinmux_config()
533 static int exynos5420_pinmux_config(int peripheral, int flags) in exynos5420_pinmux_config() argument
535 switch (peripheral) { in exynos5420_pinmux_config()
540 exynos5420_uart_config(peripheral); in exynos5420_pinmux_config()
546 return exynos5420_mmc_config(peripheral, flags); in exynos5420_pinmux_config()
552 exynos5420_spi_config(peripheral); in exynos5420_pinmux_config()
565 exynos5420_i2c_config(peripheral); in exynos5420_pinmux_config()
568 exynos5420_i2s_config(peripheral); in exynos5420_pinmux_config()
574 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos5420_pinmux_config()
581 static void exynos4_i2c_config(int peripheral, int flags) in exynos4_i2c_config() argument
583 switch (peripheral) { in exynos4_i2c_config()
619 static int exynos4_mmc_config(int peripheral, int flags) in exynos4_mmc_config() argument
624 switch (peripheral) { in exynos4_mmc_config()
665 static void exynos4_uart_config(int peripheral) in exynos4_uart_config() argument
669 switch (peripheral) { in exynos4_uart_config()
687 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos4_uart_config()
696 static void exynos4x12_i2c_config(int peripheral, int flags) in exynos4x12_i2c_config() argument
698 switch (peripheral) { in exynos4x12_i2c_config()
734 static int exynos4x12_mmc_config(int peripheral, int flags) in exynos4x12_mmc_config() argument
739 switch (peripheral) { in exynos4x12_mmc_config()
779 static void exynos4x12_uart_config(int peripheral) in exynos4x12_uart_config() argument
783 switch (peripheral) { in exynos4x12_uart_config()
801 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos4x12_uart_config()
810 static int exynos4_pinmux_config(int peripheral, int flags) in exynos4_pinmux_config() argument
812 switch (peripheral) { in exynos4_pinmux_config()
817 exynos4_uart_config(peripheral); in exynos4_pinmux_config()
827 exynos4_i2c_config(peripheral, flags); in exynos4_pinmux_config()
832 return exynos4_mmc_config(peripheral, flags); in exynos4_pinmux_config()
835 debug("SDMMC device %d not implemented\n", peripheral); in exynos4_pinmux_config()
838 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos4_pinmux_config()
845 static int exynos4x12_pinmux_config(int peripheral, int flags) in exynos4x12_pinmux_config() argument
847 switch (peripheral) { in exynos4x12_pinmux_config()
852 exynos4x12_uart_config(peripheral); in exynos4x12_pinmux_config()
862 exynos4x12_i2c_config(peripheral, flags); in exynos4x12_pinmux_config()
867 return exynos4x12_mmc_config(peripheral, flags); in exynos4x12_pinmux_config()
870 debug("SDMMC device %d not implemented\n", peripheral); in exynos4x12_pinmux_config()
873 debug("%s: invalid peripheral %d", __func__, peripheral); in exynos4x12_pinmux_config()
880 int exynos_pinmux_config(int peripheral, int flags) in exynos_pinmux_config() argument
884 return exynos5420_pinmux_config(peripheral, flags); in exynos_pinmux_config()
886 return exynos5_pinmux_config(peripheral, flags); in exynos_pinmux_config()
889 return exynos4x12_pinmux_config(peripheral, flags); in exynos_pinmux_config()
891 return exynos4_pinmux_config(peripheral, flags); in exynos_pinmux_config()
908 debug(" invalid peripheral id\n"); in exynos4_pinmux_decode_periph_id()