return NULL;
}
- int pos = plat->uart_dev[index].rx;
- if (pos >= 0) {
- if (plat->pins[pos].uart.mux_total > 0) {
- if (mraa_setup_mux_mapped(plat->pins[pos].uart) != MRAA_SUCCESS) {
- syslog(LOG_ERR, "uart: failed to setup muxes for RX pin");
- return NULL;
+ if (!plat->no_bus_mux) {
+ int pos = plat->uart_dev[index].rx;
+ if (pos >= 0) {
+ if (plat->pins[pos].uart.mux_total > 0) {
+ if (mraa_setup_mux_mapped(plat->pins[pos].uart) != MRAA_SUCCESS) {
+ syslog(LOG_ERR, "uart: failed to setup muxes for RX pin");
+ return NULL;
+ }
}
}
- }
- pos = plat->uart_dev[index].tx;
- if (pos >= 0) {
- if (plat->pins[pos].uart.mux_total > 0) {
- if (mraa_setup_mux_mapped(plat->pins[pos].uart) != MRAA_SUCCESS) {
- syslog(LOG_ERR, "uart: failed to setup muxes for TX pin");
- return NULL;
+ pos = plat->uart_dev[index].tx;
+ if (pos >= 0) {
+ if (plat->pins[pos].uart.mux_total > 0) {
+ if (mraa_setup_mux_mapped(plat->pins[pos].uart) != MRAA_SUCCESS) {
+ syslog(LOG_ERR, "uart: failed to setup muxes for TX pin");
+ return NULL;
+ }
}
}
}