tty: serial: cpm_uart: Add udbg support for enabling xmon
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 23 Dec 2020 09:38:46 +0000 (09:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Dec 2020 15:12:34 +0000 (16:12 +0100)
commita60526097f42eb98760d3c63c5de63fab309fe1a
tree7725956945a752dc5fc3a9a467268ef9a202e848
parent345523fab82760186bd453e2e6ebf7c21961610b
tty: serial: cpm_uart: Add udbg support for enabling xmon

In order to use xmon with powerpc 8xx, the serial driver
must provide udbg_putc() and udpb_getc().

Provide them via cpm_put_poll_char() and cpm_get_poll_char().

This requires CONFIG_CONSOLE_POLL.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/e4471bf81089252470efb3eed735d71a5b32adbd.1608716197.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/cpm_uart/cpm_uart_core.c