From patchwork Fri May 13 07:50:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kavyasree Kotagiri X-Patchwork-Id: 12848455 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C993C433FE for ; Fri, 13 May 2022 07:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rYCfYyPskTt0Nh8mYGnZoxixa1Th6pt7rWGJRrtNdf0=; b=VoVbbh9QdK5NOn DLH6eaEjQ2I+VqlfWycrfYWL67Y3/suhxHFfF5SI+ZXHUynnVw50TL2sTiMHswq7MUJ6YK/Smyg2O 4+hf7xYc9b7lnJeyJXXaF9LGmYwqi+w+iINtqMsQIByIQvZu+u2vrfDYAeh6NIi+ZHxJmXAchcdWp 2+yV8HArBuadrQCm99+San9Yx6gGmVACZmS/GcpeXn1tcXzc7Cfibas7CGL7l9kmuTgWBaiFeoT/f bI/m8Q+7p7v1rAQpi23Ns2h71j+fmQGXQgnR4REcxjiMYKOAP/aEgWRyv10OZxkevGq2CAPVEMEsI fC3Q78TcuQn+e06K8oSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npQ4X-00EuLP-CT; Fri, 13 May 2022 07:50:49 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1npQ4T-00EuIw-7k for linux-arm-kernel@lists.infradead.org; Fri, 13 May 2022 07:50:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1652428245; x=1683964245; h=from:to:cc:subject:date:message-id:mime-version; bh=CGPxjaomcbXxm6GZzv2LtN8DWBzi8Alu8nAqq4wgI8Y=; b=Afw7IadYlGvVGhyudy/tn11px98sbfrxIUUhSdiRW2w/5GYACk89/sMq 8at0Oe8uAI2N+GXN8uX3URCF54K5ktuWBDcdY26NddaWGqM6MkDe2jxb2 BUImpU4Ap9UKaDixXoUG6G5cxcFS8mUrHe7Yv4VfSw2sDOquM9EdgfNae UlKDH4xHQ8/g474CnEqBWFazCDJmZdiL71QoiiqfFchm+LN6p582ZcnOK +AEW5a39Hwwoazir7A5plZ+mVstVCgnXe1NR9Nm8J54NaCb/RolO1WLGH 4m55lhyr+Js8u9co/A/cmFYN8Zu9g4l8Ub6f8NCMdgURyuTwqj6qoDy9k w==; X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="95653875" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 May 2022 00:50:41 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 13 May 2022 00:50:41 -0700 Received: from kavya-HP-Compaq-6000-Pro-SFF-PC.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 13 May 2022 00:50:37 -0700 From: Kavyasree Kotagiri To: , , , CC: , , , , Subject: [PATCH v3] ARM: at91: debug: add lan966 support Date: Fri, 13 May 2022 13:20:35 +0530 Message-ID: <20220513075035.18663-1-kavyasree.kotagiri@microchip.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220513_005045_427210_5099068D X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for low-level debugging on FLEXCOM USART of LAN966 SoC. Signed-off-by: Kavyasree Kotagiri Reviewed-by: Michael Walle Tested-by: Michael Walle Acked-by: Nicolas Ferre --- arch/arm/Kconfig.debug | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 0c9497d549e3..b8a2364df9c1 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -210,6 +210,26 @@ choice Say Y here if you want kernel low-level debugging support on the FLEXCOM3 port of SAMA7G5. + config DEBUG_AT91_LAN966_FLEXCOM + bool "Kernel low-level debugging on LAN966 FLEXCOM USART" + select DEBUG_AT91_UART + depends on SOC_LAN966x + help + Say Y here if you want kernel low-level debugging support + on the FLEXCOM port of LAN966. + + DEBUG_UART_PHYS | DEBUG_UART_VIRT + + 0xe0040200 | 0xfd040200 | FLEXCOM0 + 0xe0044200 | 0xfd044200 | FLEXCOM1 + 0xe0060200 | 0xfd060200 | FLEXCOM2 + 0xe0064200 | 0xfd064200 | FLEXCOM3 + 0xe0070200 | 0xfd070200 | FLEXCOM4 + + By default, enabling FLEXCOM3 port. Based on requirement, use + DEBUG_UART_PHYS and DEBUG_UART_VIRT configurations from above + table. + config DEBUG_BCM2835 bool "Kernel low-level debugging on BCM2835 PL011 UART" depends on ARCH_BCM2835 && ARCH_MULTI_V6 @@ -1685,6 +1705,7 @@ config DEBUG_UART_PHYS default 0xd4017000 if DEBUG_MMP_UART2 default 0xd4018000 if DEBUG_MMP_UART3 default 0xe0000000 if DEBUG_SPEAR13XX + default 0xe0064200 if DEBUG_AT91_LAN966_FLEXCOM default 0xe1824200 if DEBUG_AT91_SAMA7G5_FLEXCOM3 default 0xe4007000 if DEBUG_HIP04_UART default 0xe6c40000 if DEBUG_RMOBILE_SCIFA0 @@ -1805,6 +1826,7 @@ config DEBUG_UART_VIRT default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT default 0xfcfe8600 if DEBUG_BCM63XX_UART default 0xfd000000 if DEBUG_SPEAR3XX || DEBUG_SPEAR13XX + default 0xfd064200 if DEBUG_AT91_LAN966_FLEXCOM default 0xfd531000 if DEBUG_STIH41X_SBC_ASC1 default 0xfd883000 if DEBUG_ALPINE_UART0 default 0xfdd32000 if DEBUG_STIH41X_ASC2