[PATCH v6 3/7] mips: loongson: lowlevel debug serial

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Wed Mar 11 19:11:18 CET 2026



On 3/11/26 09:41, sgdfkk at 163.com wrote:
> From: Du Huanpeng <u74147 at gmail.com>
> 
> set pin to uart alternate function and enable uart for lowlevel debug,
> also future pinctrl driver can base on this code.
> 
> Signed-off-by: Du Huanpeng <u74147 at gmail.com>
> ---
>   arch/mips/mach-loongson/include/mach/serial.h |  16 +++
>   arch/mips/mach-loongson/ls1c300/gpio.c        |  66 +++++++++++
>   arch/mips/mach-loongson/ls1c300/serial.c      | 104 ++++++++++++++++++
>   3 files changed, 186 insertions(+)
>   create mode 100644 arch/mips/mach-loongson/include/mach/serial.h
>   create mode 100644 arch/mips/mach-loongson/ls1c300/gpio.c
>   create mode 100644 arch/mips/mach-loongson/ls1c300/serial.c
> 

Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>

-- 
- Daniel



More information about the U-Boot mailing list