From patchwork Sun Aug 30 19:57:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 11745313 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BD574913 for ; Sun, 30 Aug 2020 20:00:08 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 960A920757 for ; Sun, 30 Aug 2020 20:00:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XqnyHMiZ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=me.com header.i=@me.com header.b="kwJmUEjD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 960A920757 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=me.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=28WiF1dcLJ7nI1PcSg1QoXTQwOJB4K1cCS8UwXVHz4c=; b=XqnyHMiZSoHh6aXNGB0sgGOgJ/ nnYaUcbO7Z4LNw7ZxMemXS3gD8L3eMvebTVul1UXt1rbbfzhWXgOKP4Xkhhyp+Z3SKoYFnpQT43fM ERrSA1nC/IR9GuuOv1elMMr0efdgUWObdUHxM87ABuFSV1nA7YM93M4r4vIRZs5IY0HzuUUFpd+jk 4VePF/6DiF8q00dq6IfApI1t649pFigueRgQxfTal7TUymIPF65iS3b48rYktkCXfla29IhZ/vI87 YTjgvb/nNdNBYhubo3HObMxdWzHPZ/zUqZ+cOtauEzwNUEV9DtMQVxxlDOZzGq/2TwGrihpLXYMDZ 3meVcKXg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCTTO-00009S-7k; Sun, 30 Aug 2020 19:58:42 +0000 Received: from st43p00im-ztdg10061801.me.com ([17.58.63.170]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCTTL-00008G-Qt for linux-arm-kernel@lists.infradead.org; Sun, 30 Aug 2020 19:58:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1598817517; bh=GjuN2/fQlJOqjNx2OJHrTJv4BYTPn1KJIHQroxtmaro=; h=From:To:Subject:Date:Message-Id; b=kwJmUEjDZXMxYmpVjio4hjoqVu5LjzxbSDbO9lZgq/dmW4AJTO9BqhprpzCcGZpGm E4Ej1r3LstDqjYpojfKMdvQbvzXrQn62lKLYD/ZAD11nRdpHSdEH7yGThs6709qLD4 IXJf31OrXhr0dBOcKSivd9bGLNe97qdiIPkWCmGaqMFNnKpY7INKgIrFLGv4QyM5XK UpsutB0FVM5x25QPQH6wgFr3+D9WgtjwmD0eFl+19WhsDfk5rHQpbMlsxi4H1WJmoR fUUgqi51PmHQv22+rZ98mE1eXmxf6bp5m+eqwbQXGUdYlKwLACaZaXhpz9OfamdI+7 EVCpuPh3trZqQ== Received: from localhost (101.220.150.77.rev.sfr.net [77.150.220.101]) by st43p00im-ztdg10061801.me.com (Postfix) with ESMTPSA id 1EDFF8C062B; Sun, 30 Aug 2020 19:58:27 +0000 (UTC) From: Alain Volmat To: Russell King , Arnd Bergmann , Sascha Hauer , Olof Johansson , Linus Walleij , Nathan Huckleberry , Geert Uytterhoeven , Claudiu Beznea , Enrico Weigelt , Thomas Gleixner , Kate Stewart , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] arm: sti LL_UART: add STiH418 SBC UART0 support Date: Sun, 30 Aug 2020 21:57:48 +0200 Message-Id: <20200830195748.30221-3-avolmat@me.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200830195748.30221-1-avolmat@me.com> References: <20200830195748.30221-1-avolmat@me.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-30_07:2020-08-28, 2020-08-30 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2008300163 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200830_155839_930466_F78772A7 X-CRM114-Status: GOOD ( 16.63 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [avolmat[at]me.com] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [17.58.63.170 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [17.58.63.170 listed in wl.mailspike.net] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: patrice.chotard@st.com, avolmat@me.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add the entry for the STiH418 SBC UART0 low level uart. Signed-off-by: Alain Volmat Reviewed-by: Patrice Chotard --- arch/arm/Kconfig.debug | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index e97d6e5c8898..447d177fcf8d 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -1204,6 +1204,16 @@ choice If unsure, say N. + config DEBUG_STIH418_SBC_ASC0 + bool "Use StiH418 SBC ASC0 UART for low-level debug" + depends on ARCH_STI + help + Say Y here if you want kernel low-level debugging support + on STiH418 based platforms which has default UART wired + up to SBC ASC0. + + If unsure, say N. + config STM32F4_DEBUG_UART bool "Use STM32F4 UART for low-level debug" depends on MACH_STM32F429 || MACH_STM32F469 @@ -1587,6 +1597,7 @@ config DEBUG_LL_INCLUDE default "debug/sirf.S" if DEBUG_SIRFSOC_UART default "debug/sti.S" if DEBUG_STIH41X_ASC2 default "debug/sti.S" if DEBUG_STIH41X_SBC_ASC1 + default "debug/sti.S" if DEBUG_STIH418_SBC_ASC0 default "debug/stm32.S" if DEBUG_STM32_UART default "debug/tegra.S" if DEBUG_TEGRA_UART default "debug/ux500.S" if DEBUG_UX500_UART @@ -1620,6 +1631,7 @@ config DEBUG_UART_PHYS default 0x03010fe0 if ARCH_RPC default 0x07000000 if DEBUG_SUN9I_UART0 default 0x09405000 if DEBUG_ZTE_ZX + default 0x09530000 if DEBUG_STIH418_SBC_ASC0 default 0x10009000 if DEBUG_REALVIEW_STD_PORT || \ DEBUG_VEXPRESS_UART0_CA9 default 0x1010c000 if DEBUG_REALVIEW_PB1176_PORT @@ -1750,7 +1762,8 @@ config DEBUG_UART_PHYS DEBUG_BCM63XX_UART || DEBUG_ASM9260_UART || \ DEBUG_SIRFSOC_UART || DEBUG_DIGICOLOR_UA0 || \ DEBUG_AT91_UART || DEBUG_STM32_UART || \ - DEBUG_STIH41X_ASC2 || DEBUG_STIH41X_SBC_ASC1 + DEBUG_STIH41X_ASC2 || DEBUG_STIH41X_SBC_ASC1 || \ + DEBUG_STIH418_SBC_ASC0 config DEBUG_UART_VIRT hex "Virtual base address of debug UART" @@ -1796,6 +1809,7 @@ config DEBUG_UART_VIRT default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1 default 0xf8ffee00 if DEBUG_AT91_SAM9263_DBGU default 0xf8fff200 if DEBUG_AT91_RM9200_DBGU + default 0xf9530000 if DEBUG_STIH418_SBC_ASC0 default 0xf9e09000 if DEBUG_AM33XXUART1 default 0xfa020000 if DEBUG_OMAP4UART3 || DEBUG_TI81XXUART1 default 0xfa022000 if DEBUG_TI81XXUART2 @@ -1864,7 +1878,8 @@ config DEBUG_UART_VIRT DEBUG_BCM63XX_UART || DEBUG_ASM9260_UART || \ DEBUG_SIRFSOC_UART || DEBUG_DIGICOLOR_UA0 || \ DEBUG_AT91_UART || DEBUG_STM32_UART || \ - DEBUG_STIH41X_ASC2 || DEBUG_STIH41X_SBC_ASC1 + DEBUG_STIH41X_ASC2 || DEBUG_STIH41X_SBC_ASC1 || \ + DEBUG_STIH418_SBC_ASC0 config DEBUG_UART_8250_SHIFT int "Register offset shift for the 8250 debug UART"