| From: |
| Jiaxun Yang <jiaxun.yang-AT-flygoat.com> |
| To: |
| linux-mips-AT-vger.kernel.org |
| Subject: |
| [PATCH 0/3] serial, MIPS: Add MIPS UHI semihosting support |
| Date: |
| Fri, 27 Oct 2023 19:26:43 +0100 |
| Message-ID: |
| <20231027182650.281405-1-jiaxun.yang@flygoat.com> |
| Cc: |
| linux-serial-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, tsbogend-AT-alpha.franken.de, gregkh-AT-linuxfoundation.org, jirislaby-AT-kernel.org, Jiaxun Yang <jiaxun.yang-AT-flygoat.com> |
| Archive-link: |
| Article |
Hi all,
This patchset adds support for MIPS UHI semihosting.
It has been implemented on many debugers such as MIPS CodeScape debugger
and OpenOCD.
It is also supported by QEMU's -semihosting option.
I didn't add MAINTAINERS entry for this driver because I find other
simple earlycon drivers don't have one either. Do let me know if it
should be added.
Thanks
Jiaxun
Jiaxun Yang (3):
MIPS: Add header for UHI semihosting defines
MIPS: zboot: Add UHI semihosting debug print support
serial: Add an earlycon driver for MIPS UHI semihosting
arch/mips/Kconfig.debug | 11 +
arch/mips/boot/compressed/Makefile | 1 +
arch/mips/boot/compressed/dbg-uhi.c | 11 +
arch/mips/boot/compressed/dbg.c | 4 +-
arch/mips/boot/compressed/decompress.c | 4 +
arch/mips/include/asm/uhi.h | 309 +++++++++++++++++++++++++
drivers/tty/serial/Kconfig | 13 ++
drivers/tty/serial/Makefile | 1 +
drivers/tty/serial/earlycon-mips-uhi.c | 85 +++++++
9 files changed, 437 insertions(+), 2 deletions(-)
create mode 100644 arch/mips/boot/compressed/dbg-uhi.c
create mode 100644 arch/mips/include/asm/uhi.h
create mode 100644 drivers/tty/serial/earlycon-mips-uhi.c
--
2.34.1