apbuart: add support for virtual KGDB<->GRMON channel
PATCH 2/5 apbuart: add support for virtual KGDB<->GRMON channel
Add support for a virtual GRMON<->KGDB channel that
is created using share memory polling by GRMON. Start
GRMON with the option "-vchannel" to enable polling. This feature enables connecting to KGDB without having an hardware serial connection, but using GRMON as an tunnel.
Reorder Makefile addition so that apbuart.o gets inserted before kgdboc.o.
Add Kconfig option SERIAL_GRLIB_GAISLER_APBUART_GRMON_VIRTUAL to enable the feature.
Signed-off-by Konrad Eisele <[email protected]>
--- drivers/tty/serial/Kconfig | 12 +++++ drivers/tty/serial/Makefile | 2 +- drivers/tty/serial/apbuart.c | 100 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+), 1 deletions(-)
drivers/tty/serial/Kconfig +12 -0
@@ -1526,6 +1526,18 @@ config SERIAL_GRLIB_GAISLER_APBUART_CONSOLE help Support for running a console on the GRLIB APBUART +config SERIAL_GRLIB_GAISLER_APBUART_GRMON_VIRTUAL + bool "Virtual channel created by GRMON to communicate with KGDB" + depends on SERIAL_GRLIB_GAISLER_APBUART=y + default y + help + Add support for a virtual GRMON<->KGDB channel that + is created using share memory polling by GRMON. Start + GRMON with the option "-vchannel" to enable polling. This + feature enables connecting to KGDB without having an hardware + serial connection, but using GRMON as an tunnel. Also + enable KGDB_SERIAL_CONSOLE to use this feature. + config SERIAL_ALTERA_JTAGUART tristate "Altera JTAG UART support" select SERIAL_CORE
drivers/tty/serial/Makefile +1 -1
@@ -81,10 +81,10 @@ obj-$(CONFIG_SERIAL_OF_PLATFORM) += of_serial.o obj-$(CONFIG_SERIAL_OF_PLATFORM_NWPSERIAL) += nwpserial.o obj-$(CONFIG_SERIAL_KS8695) += serial_ks8695.o obj-$(CONFIG_SERIAL_OMAP) += omap-serial.o +obj-$(CONFIG_SERIAL_GRLIB_GAISLER_APBUART) += apbuart.o obj-$(CONFIG_KGDB_SERIAL_CONSOLE) += kgdboc.o obj-$(CONFIG_SERIAL_QE) += ucc_uart.o obj-$(CONFIG_SERIAL_TIMBERDALE) += timbuart.o -obj-$(CONFIG_SERIAL_GRLIB_GAISLER_APBUART) += apbuart.o obj-$(CONFIG_SERIAL_ALTERA_JTAGUART) += altera_jtaguart.o obj-$(CONFIG_SERIAL_ALTERA_UART) += altera_uart.o obj-$(CONFIG_SERIAL_VT8500) += vt8500_serial.o
drivers/tty/serial/apbuart.c +97 -0
115 lines not on this page · raw message
Signature · 1 line
1.6.4.1