Skip to content
Snippets Groups Projects
Commit 5d219d46 authored by Breno Lima's avatar Breno Lima Committed by Stefano Babic
Browse files

serial_mxc: Remove unconditional DCE setting


Commit 83fd908f ("dm: imx: serial: Support DTE mode when using driver
model") breaks the serial output for the imx boards that do not use
the serial driver model.

The reason for the breakage is that it's setting UFCR_DCEDTE
unconditionally for the non-dm case.

So keep the original behavior by removing UFCR_DCEDTE setting in the
non-dm case.

Tested on mx7sabresd and mx6wandboard.

Signed-off-by: default avatarBreno Lima <breno.lima@nxp.com>
Acked-by: default avatarStefan Agner <stefan.agner@toradex.com>
Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
parent 8f2e2f15
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,6 @@ static void mxc_serial_setbrg(void)
__REG(UART_PHYS + UFCR) = (RFDIV << UFCR_RFDIV_SHF)
| (TXTL << UFCR_TXTL_SHF)
| (RXTL << UFCR_RXTL_SHF);
__REG(UART_PHYS + UFCR) |= UFCR_DCEDTE;
__REG(UART_PHYS + UBIR) = 0xf;
__REG(UART_PHYS + UBMR) = clk / (2 * gd->baudrate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment