Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760299AbcKDH6f (ORCPT ); Fri, 4 Nov 2016 03:58:35 -0400 Received: from regular1.263xmail.com ([211.150.99.130]:52262 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760190AbcKDH6d (ORCPT ); Fri, 4 Nov 2016 03:58:33 -0400 X-263anti-spam: KSV:0;BIG:0;ABS:1;DNS:0;ATT:0;SPF:S; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ADDR-CHECKED4: 1 X-RL-SENDER: andy.yan@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: andy.yan@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH 5/6] ARM: add low level debug uart for rk1108 To: Heiko Stuebner References: <1478175975-11779-1-git-send-email-andy.yan@rock-chips.com> <1478176941-12188-1-git-send-email-andy.yan@rock-chips.com> <12034481.WHiLii4Pov@phil> Cc: mturquette@baylibre.com, linux-rockchip@lists.infradead.org, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Andy Yan Message-ID: <56bcae77-3aed-c183-5e9f-3581cc187a7d@rock-chips.com> Date: Fri, 4 Nov 2016 15:58:35 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <12034481.WHiLii4Pov@phil> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2374 Lines: 67 Hi Heiko: On 2016年11月04日 15:36, Heiko Stuebner wrote: > Am Donnerstag, 3. November 2016, 20:42:21 CET schrieb Andy Yan: >> RK1108 UARTs are Synopsis DesignWare 8250 compatible. >> Only with different register addresses. >> >> Signed-off-by: Andy Yan >> --- >> >> arch/arm/Kconfig.debug | 30 ++++++++++++++++++++++++++++++ >> 1 file changed, 30 insertions(+) >> >> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug >> index d83f7c3..408540f 100644 >> --- a/arch/arm/Kconfig.debug >> +++ b/arch/arm/Kconfig.debug >> @@ -776,6 +776,30 @@ choice >> their output to the standard serial port on the RealView >> PB1176 platform. >> >> + config DEBUG_RK1108_UART0 >> + bool "Kernel low-level debugging messages via Rockchip RK1108 UART0" >> + depends on ARCH_ROCKCHIP >> + select DEBUG_UART_8250 >> + help >> + Say Y here if you want kernel low-level debugging support >> + on Rockchip RK1108 based platforms. >> + >> + config DEBUG_RK1108_UART1 >> + bool "Kernel low-level debugging messages via Rockchip RK1108 UART1" >> + depends on ARCH_ROCKCHIP >> + select DEBUG_UART_8250 >> + help >> + Say Y here if you want kernel low-level debugging support >> + on Rockchip RK1108 based platforms. >> + >> + config DEBUG_RK1108_UART2 >> + bool "Kernel low-level debugging messages via Rockchip RK1108 UART2" >> + depends on ARCH_ROCKCHIP >> + select DEBUG_UART_8250 >> + help >> + Say Y here if you want kernel low-level debugging support >> + on Rockchip RK1108 based platforms. >> + > are you sure, you need all 3 of them? > > I.e. most Rockchip SoCs so far had one uart somewhat designated as debug uart. > Most likely due to it not having rts/cts and being used in reference > schematics, but no one ever used another uart than uart2 on previous socs. So > ideally we could check and only add uarts we actually need for now. More can > be added later anyway once boards try to use them. > > > Heiko > Actually, I have two boards on my hand, one uses uart0 as debug port and the another uses uart2, so I add all of them here. I have a question here, I not very clear how to get the DEBUG_UART_VIRT value here, I now set the value I got from uart driver and it works , is there some rule or method to calculate this DEBUG_UART_VIRT value on different platform? >