diff --git a/thermosphere/src/car.c b/thermosphere/src/car.c index 05b603364..d23635eaa 100644 --- a/thermosphere/src/car.c +++ b/thermosphere/src/car.c @@ -68,10 +68,10 @@ static inline uint32_t get_clk_source_val(CarDevice dev) { static inline uint32_t get_clk_source_div(CarDevice dev) { switch (dev) { - case CARDEVICE_UARTA: return 1 << 24; // enable bit - case CARDEVICE_UARTB: return 1 << 24; // enable bit - case CARDEVICE_UARTC: return 1 << 24; // enable bit - case CARDEVICE_UARTD: return 1 << 24; // enable bit + case CARDEVICE_UARTA: return 0; + case CARDEVICE_UARTB: return 0; + case CARDEVICE_UARTC: return 0; + case CARDEVICE_UARTD: return 0; case CARDEVICE_I2C1: return 0; case CARDEVICE_I2C5: return 0; case CARDEVICE_TZRAM: return 0; diff --git a/thermosphere/src/uart.c b/thermosphere/src/uart.c index 3e83a6a8e..747157018 100644 --- a/thermosphere/src/uart.c +++ b/thermosphere/src/uart.c @@ -26,26 +26,26 @@ void uart_config(UartDevice dev) { switch (dev) { case UART_A: - pinmux->uart1_rx = 0; - pinmux->uart1_tx = (PINMUX_INPUT | PINMUX_PULL_UP); + pinmux->uart1_tx = 0; + pinmux->uart1_rx = (PINMUX_INPUT | PINMUX_PULL_UP); pinmux->uart1_rts = 0; pinmux->uart1_cts = (PINMUX_INPUT | PINMUX_PULL_DOWN); break; case UART_B: - pinmux->uart2_rx = 0; - pinmux->uart2_tx = (PINMUX_INPUT | PINMUX_PULL_UP); + pinmux->uart2_tx = 0; + pinmux->uart2_rx = (PINMUX_INPUT | PINMUX_PULL_UP); pinmux->uart2_rts = 0; pinmux->uart2_cts = (PINMUX_INPUT | PINMUX_PULL_DOWN); break; case UART_C: - pinmux->uart3_rx = 0; - pinmux->uart3_tx = (PINMUX_INPUT | PINMUX_PULL_UP); + pinmux->uart3_tx = 0; + pinmux->uart3_rx = (PINMUX_INPUT | PINMUX_PULL_UP); pinmux->uart3_rts = 0; pinmux->uart3_cts = (PINMUX_INPUT | PINMUX_PULL_DOWN); break; case UART_D: - pinmux->uart4_rx = 0; - pinmux->uart4_tx = (PINMUX_INPUT | PINMUX_PULL_UP); + pinmux->uart4_tx = 0; + pinmux->uart4_rx = (PINMUX_INPUT | PINMUX_PULL_UP); pinmux->uart4_rts = 0; pinmux->uart4_cts = (PINMUX_INPUT | PINMUX_PULL_DOWN); break;