From patchwork Thu Mar 24 13:10:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kavyasree Kotagiri X-Patchwork-Id: 12790670 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 E9203C433F5 for ; Thu, 24 Mar 2022 13:12:19 +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=DJ8Sh7iYYnXvQSxR9af5f5iVl1I5TjOQxR9v8psma+M=; b=qLMUN9C7O6QlVJ 8zMPdux7ZwxG6SXdJw9ezqXqi6P81DXLs7+xATyTxdrEG1XaH2jF4WxD4pgpc0xdkjhEc/gyZuR2d WPJ+sCtm7GWyJO6gMbOc8GDI1qzNQW4XCINHuMh1l4sARdnPHkHSQn34opb33m82p3lNDVQqtVZmm W9yTa3vf+rBkySRCnLROrfjjVeMB+vsmJbRNbbhZwLsSNKCmvfTop9zu8YgjHE3Zefh8Sn8Y9xMco WIYcVisgabuewwcodOH8flt8B7oaUx0zY2Eb/jSDXpRNzJ+JlsRBX9X7LFt13QvAhQND060/kJFuT y7jfpJKKgJkI/BTg6Kog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXNEu-00GgaL-Ke; Thu, 24 Mar 2022 13:10:56 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXNEq-00Gga3-Pk for linux-arm-kernel@lists.infradead.org; Thu, 24 Mar 2022 13:10:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1648127452; x=1679663452; h=from:to:cc:subject:date:message-id:mime-version; bh=AJ4z9771lC03AT4ol+j4MJ3/Iwb6+ApMU5BnuJsmO3g=; b=mSkLy0R/AyQB5HLAuG2QIP+sqBFyHHNuODGescv1xn9+mWFM5wKrlPJq 0DDQAzF3CWrml4GjKjV2YT00MKCmqRNBT1vSUId4eP5iEtWkFUe6xTUoc l6pRTE22fqBmOsqV73ZQa3OWEjZ+pTOBBN19J45n/n4BVHZW7Sx3CT94a uAIstundkcKO4IANx5xsisNMOAfcLr0jfo2h3OrWD8AHjw+5ODz9m8XFB 1iWTi9cNVMexVdX2T5f8CvsOvMpFBEluxDHXS8Qdzcwqk4uwI+5ZfqPVJ CAmipyiTnVlMVPbPLA+KnmWvrv/6g1RbB/8vI5wEKvrV3HJNHQE+qhB26 A==; X-IronPort-AV: E=Sophos;i="5.90,207,1643698800"; d="scan'208";a="166977136" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 24 Mar 2022 06:10:48 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 24 Mar 2022 06:10:47 -0700 Received: from kavya-HP-Compaq-6000-Pro-SFF-PC.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 24 Mar 2022 06:10:45 -0700 From: Kavyasree Kotagiri To: , , CC: , , , , , Subject: [PATCH v2] ARM: at91: debug: add lan966 support Date: Thu, 24 Mar 2022 18:40:31 +0530 Message-ID: <20220324131031.32430-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-20220324_061052_894562_20BC209E X-CRM114-Status: UNSURE ( 9.02 ) 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 FLEXCOM3 USART of LAN966 SoC. Signed-off-by: Kavyasree Kotagiri --- v1 -> v2: - Corrected flexcom3 base address - 0xe0064200. arch/arm/Kconfig.debug | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 0c9497d549e3..04501ddc7ab4 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -210,6 +210,14 @@ choice Say Y here if you want kernel low-level debugging support on the FLEXCOM3 port of SAMA7G5. + config DEBUG_AT91_LAN966_FLEXCOM3 + bool "Kernel low-level debugging on LAN966 FLEXCOM3 USART" + select DEBUG_AT91_UART + depends on SOC_LAN966 + help + Say Y here if you want kernel low-level debugging support + on the FLEXCOM3 port of LAN966. + config DEBUG_BCM2835 bool "Kernel low-level debugging on BCM2835 PL011 UART" depends on ARCH_BCM2835 && ARCH_MULTI_V6 @@ -1685,6 +1693,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_FLEXCOM3 default 0xe1824200 if DEBUG_AT91_SAMA7G5_FLEXCOM3 default 0xe4007000 if DEBUG_HIP04_UART default 0xe6c40000 if DEBUG_RMOBILE_SCIFA0 @@ -1805,6 +1814,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_FLEXCOM3 default 0xfd531000 if DEBUG_STIH41X_SBC_ASC1 default 0xfd883000 if DEBUG_ALPINE_UART0 default 0xfdd32000 if DEBUG_STIH41X_ASC2