4 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
6 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/sys_proto.h>
11 #include <asm/arch/mux.h>
14 static struct module_pin_mux uart0_pin_mux[] = {
15 {OFFSET(uart0_rxd), (MODE(0) | PULLUP_EN | RXACTIVE | SLEWCTRL)},
16 {OFFSET(uart0_txd), (MODE(0) | PULLUDDIS | PULLUP_EN | SLEWCTRL)},
20 static struct module_pin_mux mmc0_pin_mux[] = {
21 {OFFSET(mmc0_clk), (MODE(0) | PULLUDDIS | RXACTIVE)}, /* MMC0_CLK */
22 {OFFSET(mmc0_cmd), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* MMC0_CMD */
23 {OFFSET(mmc0_dat0), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* MMC0_DAT0 */
24 {OFFSET(mmc0_dat1), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* MMC0_DAT1 */
25 {OFFSET(mmc0_dat2), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* MMC0_DAT2 */
26 {OFFSET(mmc0_dat3), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* MMC0_DAT3 */
30 static struct module_pin_mux i2c0_pin_mux[] = {
31 {OFFSET(i2c0_sda), (MODE(0) | PULLUP_EN | RXACTIVE | SLEWCTRL)},
32 {OFFSET(i2c0_scl), (MODE(0) | PULLUP_EN | RXACTIVE | SLEWCTRL)},
36 static struct module_pin_mux gpio5_7_pin_mux[] = {
37 {OFFSET(spi0_cs0), (MODE(7) | PULLUP_EN)}, /* GPIO5_7 */
41 void enable_uart0_pin_mux(void)
43 configure_module_pin_mux(uart0_pin_mux);
46 void enable_board_pin_mux(void)
48 configure_module_pin_mux(mmc0_pin_mux);
49 configure_module_pin_mux(i2c0_pin_mux);
52 configure_module_pin_mux(gpio5_7_pin_mux);
55 void enable_i2c0_pin_mux(void)
57 configure_module_pin_mux(i2c0_pin_mux);