[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <41961321-A428-42BF-ADDB-C2ACBBE25E4E@flygoat.com>
Date: Sat, 16 May 2020 15:16:36 +0800
From: Jiaxun Yang <jiaxun.yang@...goat.com>
To: Tiezhu Yang <yangtiezhu@...ngson.cn>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Huacai Chen <chenhc@...ote.com>
CC: linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
Xuefeng Li <lixuefeng@...ngson.cn>
Subject: Re: [PATCH] MIPS: Loongson: Add support for serial console
于 2020年5月16日 GMT+08:00 下午3:03:08, Tiezhu Yang <yangtiezhu@...ngson.cn> 写到:
>After commit 87fcfa7b7fe6 ("MIPS: Loongson64: Add generic dts"),
>there already exists the node and property of Loongson CPU UART0
>in loongson3-package.dtsi:
>
>cpu_uart0: serial@...001e0 {
> compatible = "ns16550a";
> reg = <0 0x1fe001e0 0x8>;
> clock-frequency = <33000000>;
> interrupt-parent = <&liointc>;
> interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;
> no-loopback-test;
>};
>
>In order to support for serial console on the Loongson platform,
>add CONFIG_SERIAL_OF_PLATFORM=y to loongson3_defconfig.
>
>With this patch, we can see the following boot message:
>
>[ 1.877745] printk: console [ttyS0] disabled
>[ 1.881979] 1fe001e0.serial: ttyS0 at MMIO 0x1fe001e0 (irq = 16, base_baud = 2062500) is a 16550A
>[ 1.890838] printk: console [ttyS0] enabled
>
>And also, we can login normally from the serial console.
>
>Signed-off-by: Tiezhu Yang <yangtiezhu@...ngson.cn>
>---
>
>Hi Jiaxun,
>
>Thank you very much for your suggestion.
Reviewed-by: Jiaxun Yang <jiaxun.yang@...goat.com>
Looks like we need a Kconfig clean up.
I'll do that after getting LS7A PCH support merged.
Anyway, thanks for catching this.
[...]
--
Jiaxun Yang
Powered by blists - more mailing lists