[0/3] serial, MIPS: Add MIPS UHI semihosting support

Message ID 20231027182650.281405-1-jiaxun.yang@flygoat.com
Headers
Series serial, MIPS: Add MIPS UHI semihosting support |

Message

Jiaxun Yang Oct. 27, 2023, 6:26 p.m. UTC
  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