提交 d948a29e 编写于 作者: S Scott Wood 提交者: Kumar Gala

[POWERPC] cpm_uart: Issue STOP_TX command before initializing console.

This prevents some bootloader/bootwrapper characters from being lost.
Signed-off-by: NScott Wood <scottwood@freescale.com>
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 c1dcfd9d
...@@ -1325,6 +1325,8 @@ static int __init cpm_uart_console_setup(struct console *co, char *options) ...@@ -1325,6 +1325,8 @@ static int __init cpm_uart_console_setup(struct console *co, char *options)
udbg_putc = NULL; udbg_putc = NULL;
#endif #endif
cpm_line_cr_cmd(pinfo, CPM_CR_STOP_TX);
if (IS_SMC(pinfo)) { if (IS_SMC(pinfo)) {
clrbits8(&pinfo->smcp->smc_smcm, SMCM_RX | SMCM_TX); clrbits8(&pinfo->smcp->smc_smcm, SMCM_RX | SMCM_TX);
clrbits16(&pinfo->smcp->smc_smcmr, SMCMR_REN | SMCMR_TEN); clrbits16(&pinfo->smcp->smc_smcmr, SMCMR_REN | SMCMR_TEN);
...@@ -1346,6 +1348,7 @@ static int __init cpm_uart_console_setup(struct console *co, char *options) ...@@ -1346,6 +1348,7 @@ static int __init cpm_uart_console_setup(struct console *co, char *options)
cpm_uart_init_scc(pinfo); cpm_uart_init_scc(pinfo);
uart_set_options(port, co, baud, parity, bits, flow); uart_set_options(port, co, baud, parity, bits, flow);
cpm_line_cr_cmd(pinfo, CPM_CR_RESTART_TX);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册