Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1023758lqm; Thu, 2 May 2024 03:00:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhJiAE0z0JWiLM4AQ4m2dYU4vazETkdyJcvFhwFsphnIHTK/F8XGd45U5V89nHJDzLqgWZz3Jget7SwBb2PbD6u3CaJZMwFezM1CXQKg== X-Google-Smtp-Source: AGHT+IGrLLoDenN26cIiUOTW0UtwrIZx4JEMR77TFHzhJYrwNqQXOLPTtUKjovZsXK9rkWhSnvVS X-Received: by 2002:ad4:4eeb:0:b0:6a0:89ac:f9b with SMTP id dv11-20020ad44eeb000000b006a089ac0f9bmr6097095qvb.31.1714644051188; Thu, 02 May 2024 03:00:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714644051; cv=pass; d=google.com; s=arc-20160816; b=g4zB2WsvMwl8elOWvz0xj3ZYl0ME1iQ6CYtGDnUnJ4BxorTmG6psMm89rQeduy/tso jF5hpWiEb2uLBT2o+Fdkxnm8wDcURBUe0h+H/DQhS6d/irmGTvZRhkTj6amreVRjXGAE l8nMd9Wwxn4Nl5mhGCDYQhYrrVpKhG7YC1tCun41hxPwgpSgqSwuKMtk4XHBs5+5qD99 BN7aObV1yvAl8P3Y838aPjBRoZNLpDLQs5ebdktCGtrmUJgVpdEnpa/EByzPvYWGhhPl Yhx/m8mGEJ2mMdDbFwEsThm16BplmVxWLlSPbQPQ+urhpMF4aZbCgCVO9su36qHc0tjd oU3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:feedback-id:dkim-signature:dkim-signature; bh=Wl9g44xy9WnUazfe5zftCh7sZzwGSfuHNWg8YozgAjM=; fh=RK/8vhbrhjOUA34npyS3zLQeUo4bZD/N0oEXZQW22RQ=; b=uZJf8LDoyTowxtLKwLpuGICw21nPN5L4Y/nlko4ctCGfd1pDN1YPN9r/kqRmXFwsMd Xh8P+PKddyAIq/HLkz/0MPj+LVQHd5EG6rfDarsHio8CQL+2lpk1pIx/q2Gh9sbNvcqB YK+LKiERMpHbeM7AQpnY8tzoM9sCRpVHIeH5exXX1wTnNcmp5lh9SAfncLUbHcx/0FYZ cXbkXz8R2bpeq1nSHn3kXDHro6AscVg6HPgH11p0jCko9DSU/XvP/kMjiDuS/6X0n+gd Wl9wLAoPLKHsocPuM39cWCreE1gayy85Hm6ivYTz6v1WMhrP8vPpyuQbleqemSuDsV0h hAoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=G83L8kMo; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=cwTKPMKo; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-166269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e2-20020a0562140d8200b0069b6b416a8csi565467qve.224.2024.05.02.03.00.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 03:00:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=G83L8kMo; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=cwTKPMKo; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-166269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D6E411C20BFA for ; Thu, 2 May 2024 10:00:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3452F5FBA9; Thu, 2 May 2024 09:59:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="G83L8kMo"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="cwTKPMKo" Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E1E358AA1; Thu, 2 May 2024 09:59:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.153 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714643984; cv=none; b=MjTvX0rSOp3WG/Iv4X4SbQtaHxin0FJeMlrjZofWAjzNn0prWC2fG4O3MTSnLcDDh4t/+J9I+pReG7mEZ0wN0h9hDnRHExDTBR7C/wJqH44qva6IcFDsfzLqnKhtQ5Kk7RPheI1Y9fJuJe/S76Q+/qNz6tdRblywU32tFmL59Qs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714643984; c=relaxed/simple; bh=FOfpkZ1jw8FR3LMyDtmcF92PGea133W6fq2rKRby+wo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Eyb7ac9ROkUw7I7e61wL1liW2GSXbFHcBjHJAmNDionp8IjiusSP8q7Po2jfzn29KIc23jQdZSAHORFoo5jBfnW+zvVV+fGHjDen6nYhhc+nHBKmueSFcb9ly3APF9xtwDeVcgvQLZXYWMZlK6q03DZpGsozdp2JpDc5g4QReuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=G83L8kMo; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=cwTKPMKo; arc=none smtp.client-ip=103.168.172.153 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 279FB114014E; Thu, 2 May 2024 05:59:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 02 May 2024 05:59:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1714643982; x=1714730382; bh=Wl9g44xy9WnUazfe5zftCh7sZzwGSfuHNWg8YozgAjM=; b= G83L8kMorREd4pfcD5auqzqFfKX0inrNYLqq4s/T2jiWBlxo9DbgQdqv3PaotnL+ 0/4qXMp7wNA16lhPB7/KjMhvG4Hqusl2OTH4WMTlBmpUiJSoVFLIN3xJx0kVB//U g/tenperUdv7Kpo3SrROPj5WeP9P06XcmX+F0One11YOV93NSbsj5RLQF5Eo9rwY 6Sx2inGE38Q11UPHSDtnhRSbyv+7Ttnldc6VI6YKCnYUdsxDpSva/oV0RxLXrIlB 9O76IKEO99NTjO9uV7Shu/Dw06LM33ZCOWGCD8sFiZ7tTKgNHU1OInowxJI3ALEq MjxWD2s8RPAfnEXxmQ60Jw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1714643982; x= 1714730382; bh=Wl9g44xy9WnUazfe5zftCh7sZzwGSfuHNWg8YozgAjM=; b=c wTKPMKoBzfEPY9/kmdjlX7sCJbI6iPrVs0B5sKMgTEtYygcxNENnNb+scDAtVceQ EAHo1Osv9uH1v+M0WmRtrGWVxSXiB3fLXQvWKONcyEkMAptsoETFUKJy4KoNRnxk 3BqF2FmInDOWaBBxb5aFXW6AUdgiyY4fkLyQvbwwO1SUERKG2G7wnImTByjOGTSQ ZOZoB8VrM1cFtVT2tGHCD1M/jAuZgomFsg4ndzD2gP+c9JRejB/27d2H84xTvteA PYeNHkqkDZWZEF51kxo8ZvaemGaX1WDQOF4G5D+kfJsMQbnHMcuYmFFKWpIvLR5E MhBIhs/BXA7NAg7GJYlIw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddukedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfffufggtgfgkfhfjgfvvefosehtkeertdertdejnecuhfhrohhmpeflihgr gihunhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqne cuggftrfgrthhtvghrnhepveevteehgefggeejkeejtddtteeuleduheevjefgjeetvdfh udegtefglefhveeknecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilh hfrhhomhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 May 2024 05:59:41 -0400 (EDT) From: Jiaxun Yang Date: Thu, 02 May 2024 10:59:32 +0100 Subject: [PATCH v3 5/9] MIPS: debug_ll: Add Kconfig symbols for some 8250 uarts Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240502-mips_debug_ll-v3-5-3b61f30e484c@flygoat.com> References: <20240502-mips_debug_ll-v3-0-3b61f30e484c@flygoat.com> In-Reply-To: <20240502-mips_debug_ll-v3-0-3b61f30e484c@flygoat.com> To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaxun Yang , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3115; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=FOfpkZ1jw8FR3LMyDtmcF92PGea133W6fq2rKRby+wo=; b=owGbwMvMwCHmXMhTe71c8zDjabUkhjTjFHbl4qoZCadWVP6UKgsWY2fJ/X9BMnv76XUX3/Lva JWyMznaUcrCIMbBICumyBIioNS3ofHigusPsv7AzGFlAhnCwMUpABO5+J7hr8BXBokrQb/mFb4p lLnyPe9S6l7VQ59eLZhpU/aS/3n2ByaGf3oucvuqxUS5LHP+2b1ad0mNV/rU1OCUTKvyZt6z4oe WcwMA X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Define platform symbols for all 8250 style uart type supported by zboot, plus Loongson-2K and boston. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig.debug | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/mips/Kconfig.debug b/arch/mips/Kconfig.debug index 323ad3ec643b..3609d298a9eb 100644 --- a/arch/mips/Kconfig.debug +++ b/arch/mips/Kconfig.debug @@ -209,6 +209,54 @@ choice selecting one of the platform specific options below if you know the parameters for the port. + config DEBUG_BOSTON_UART + bool "Kernel low-level debugging messages via Boston UART" + depends on MIPS_GENERIC_KERNEL + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on IMG Boston board. + + config DEBUG_MALTA_UART + bool "Kernel low-level debugging messages via malta UART" + depends on MIPS_MALTA + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on MTI malta board. + + config DEBUG_AR71XX_UART + bool "Kernel low-level debugging messages via AR71XX UART" + depends on ATH79 + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on AR71xx based platforms. + + config DEBUG_LOONGSON3_UART + bool "Kernel low-level debugging messages via Loongson-3 UART" + depends on MACH_LOONGSON64 + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on Loongson-3 systems. + + config DEBUG_LOONGSON2K_UART + bool "Kernel low-level debugging messages via Loongson 2K UART" + depends on MACH_LOONGSON64 + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on Loongson-2K SoCs. + + config DEBUG_INGENIC_UART + bool "Kernel low-level debugging messages via Ingenic UART" + depends on MACH_INGENIC_SOC + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on uart0 of Ingenic SoCs. + endchoice config DEBUG_LL_INCLUDE @@ -239,6 +287,12 @@ config DEBUG_UART_FLOW_CONTROL config DEBUG_UART_PHYS hex "Physical base address of debug UART" depends on DEBUG_LL_UART + default 0x17ffe000 if DEBUG_BOSTON_UART + default 0x1fd003f8 if DEBUG_MALTA_UART + default 0x18020000 if DEBUG_AR71XX_UART + default 0x1fd003f8 if DEBUG_LOONGSON3_UART + default 0x1fe00000 if DEBUG_LOONGSON2K_UART + default 0x10030000 if DEBUG_INGENIC_UART help This is the physical base address of the debug UART. It must be accessible from unmapped kernel space (i.e. KSEG1 for 32bit kernels @@ -247,6 +301,8 @@ config DEBUG_UART_PHYS config DEBUG_UART_8250_SHIFT int "Register offset shift for the 8250 debug UART" depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250 + default 1 if DEBUG_MALTA_UART || DEBUG_LOONGSON3_UART || \ + DEBUG_LOONGSON2K_UART default 2 config DEBUG_UART_8250_WIDTH -- 2.34.1