mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 18:25:51 +07:00
4cebec609a
Add TTY driver and consoles for the MIPS EJTAG Fast Debug Channel (FDC), which is found on the per-CPU MIPS Common Device Mapped Memory (CDMM) bus. The FDC is a per-CPU device which is used to communicate with an EJTAG probe. RX and TX FIFOs exist, containing 32-bits of data and 4-bit channel numbers. 16 general data streams are implemented on this for TTY and console use by encoding up to 4 bytes on each 32-bit FDC word. The TTY devices are named e.g. /dev/ttyFDC3c2 for channel 2 of the FDC attached to logical CPU 3. These can be used for getting the kernel log, a login prompt, or as a GDB remote transport, all over EJTAG and without needing a serial port. It can have an interrupt to notify of when incoming data is available in the RX FIFO or when the TX FIFO is no longer full. The detection of this interrupt occurs in architecture / platform code, but it may be shared with the timer and/or performance counter interrupt. Due to the per-CPU nature of the hardware, all outgoing TTY data is written out from a kthread which is pinned to the appropriate CPU. The console is not bound to a specific CPU, so output will appear on the chosen channel on whichever CPU the code is executing on. Enable with e.g. console=fdc1 in kernel arguments. /dev/console is bound to the same channel on the boot CPU's FDC if it exists. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jslaby@suse.cz> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/9146/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
obj-$(CONFIG_TTY) += tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o \
|
|
tty_buffer.o tty_port.o tty_mutex.o tty_ldsem.o
|
|
obj-$(CONFIG_LEGACY_PTYS) += pty.o
|
|
obj-$(CONFIG_UNIX98_PTYS) += pty.o
|
|
obj-$(CONFIG_AUDIT) += tty_audit.o
|
|
obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
|
|
obj-$(CONFIG_N_HDLC) += n_hdlc.o
|
|
obj-$(CONFIG_N_GSM) += n_gsm.o
|
|
obj-$(CONFIG_TRACE_ROUTER) += n_tracerouter.o
|
|
obj-$(CONFIG_TRACE_SINK) += n_tracesink.o
|
|
obj-$(CONFIG_R3964) += n_r3964.o
|
|
|
|
obj-y += vt/
|
|
obj-$(CONFIG_HVC_DRIVER) += hvc/
|
|
obj-y += serial/
|
|
|
|
# tty drivers
|
|
obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
|
|
obj-$(CONFIG_BFIN_JTAG_COMM) += bfin_jtag_comm.o
|
|
obj-$(CONFIG_CYCLADES) += cyclades.o
|
|
obj-$(CONFIG_ISI) += isicom.o
|
|
obj-$(CONFIG_MOXA_INTELLIO) += moxa.o
|
|
obj-$(CONFIG_MOXA_SMARTIO) += mxser.o
|
|
obj-$(CONFIG_NOZOMI) += nozomi.o
|
|
obj-$(CONFIG_ROCKETPORT) += rocket.o
|
|
obj-$(CONFIG_SYNCLINK_GT) += synclink_gt.o
|
|
obj-$(CONFIG_SYNCLINKMP) += synclinkmp.o
|
|
obj-$(CONFIG_SYNCLINK) += synclink.o
|
|
obj-$(CONFIG_PPC_EPAPR_HV_BYTECHAN) += ehv_bytechan.o
|
|
obj-$(CONFIG_GOLDFISH_TTY) += goldfish.o
|
|
obj-$(CONFIG_DA_TTY) += metag_da.o
|
|
obj-$(CONFIG_MIPS_EJTAG_FDC_TTY) += mips_ejtag_fdc.o
|
|
|
|
obj-y += ipwireless/
|