]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
uart: allow UART_DEV_DBGPORT for fdt consoles
authorMitchell Horne <mhorne@FreeBSD.org>
Wed, 2 Dec 2020 21:01:52 +0000 (21:01 +0000)
committerMitchell Horne <mhorne@FreeBSD.org>
Wed, 2 Dec 2020 21:01:52 +0000 (21:01 +0000)
commit1c5d066a72cf6069d72e395e79a658749f2ce23a
tree18bcb8dc028e71f59341378a60d73358b05c838f
parentf42f3b2955e5afa770275fd76b4f754fbd67bbeb
uart: allow UART_DEV_DBGPORT for fdt consoles

Allow fdt devices to be used as debug ports for gdb(4).

A debug console can be specified with the "freebsd,debug-path" property
in the device tree's /chosen node, or using the environment variable
hw.fdt.dbgport.

The device should be specified by its name in the device tree, for
example hw.fdt.dbgport="serial2".

PR: 251053
Submitted by: Dmitry Salychev <dsl@mcusim.org>
Submitted by:   stevek (original patch, D5986)
Reviewed by: andrew, mhorne
Differential Revision: https://reviews.freebsd.org/D27422
sys/dev/uart/uart_bus_fdt.c
sys/dev/uart/uart_cpu_arm64.c
sys/dev/uart/uart_cpu_fdt.c
sys/dev/uart/uart_cpu_fdt.h