Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2233367rdh; Sun, 29 Oct 2023 06:47:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdSMSEqCobtD1/XLnPextn5VMnEGXpQqmvB+OILrtOVYtgfgGRP+ghj3RV+XrOzhN+8Fbi X-Received: by 2002:a05:6602:1506:b0:7a9:945f:e46 with SMTP id g6-20020a056602150600b007a9945f0e46mr11390798iow.13.1698587229440; Sun, 29 Oct 2023 06:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698587229; cv=none; d=google.com; s=arc-20160816; b=ZCLEWkagsp23behdoxm45snrkZtJSxlHTgFc4lbw0ao2Y7wfrczGQiOdM3uIjMldzz 7VJeMspM8NMS3Fzsq85cNz2xEkIZXlj2Tdy38tVEcFMoCiEuj9nwyY/NfZRQ8gwVNVfD oMeAeq693LOJbHl/3nwhywFGY+H0vJh2yDV+eYMgSHj4whpzSYBpHGmTFBJ0L8EyeU4D AaPyY6ATgvMqGgB9QIcdZvTCaX+Fwhux5tRi93c+6ZH58jEP2b1cLcnJL2UlkhaHX5+T 9vMVlQXH1mc8nPG1AcweaLqEy4j2xVKcq+8W+FUMRGhQJyj1IVuROlppC9EQkJtXJy8+ r5fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :feedback-id:dkim-signature:dkim-signature; bh=nwDi7G8YoCLKQtKQNySfnFuMFDqBzeBBPzRHijBNdnI=; fh=Dii/wXcZb/mJUCmsdlZbBl/o0XRcaQ9S/xOY9NGTLc4=; b=kCP7597KraKQoQr7TdD8UFpqiW6oGsoE9l8i2XbWbeSCLJBucODoPqxUvt29Iv8npS LQmzn++x0L70VEXvuGtJrq7VolX59DMBxMRRYU/dQzsDU+l1L5RUuwLK4dDUgyl7k3dX TcTUjJBmwk7ZyNfFpLI37zJdNVXtuQW55JZ8LmHibmJhO3KAIJzR11RRKCsY8z8tkOFG ucHnaKjZfN8KJ4T0ynQk4mgEsjSsf2tRTVriU/J02lqK1V+XIO+K9VEOFEOO+ADEWExk Yavo+zBqxuA82AvRwZKB2Fy5xEXjvrkuwedQ+YQ8xcr7/E8T7VpdYw9f0LZQCNzKrnr4 xoiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=yvHc5lKk; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=tGuQM+Sk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bv124-20020a632e82000000b005b97ca6ed26si1244040pgb.96.2023.10.29.06.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 06:47:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=yvHc5lKk; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=tGuQM+Sk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F051580A22F4; Sun, 29 Oct 2023 06:46:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230265AbjJ2NqE (ORCPT + 99 others); Sun, 29 Oct 2023 09:46:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbjJ2NqB (ORCPT ); Sun, 29 Oct 2023 09:46:01 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4201EC0; Sun, 29 Oct 2023 06:45:59 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 6CC00320070D; Sun, 29 Oct 2023 09:45:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 29 Oct 2023 09:45:58 -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:sender:subject:subject:to:to; s=fm1; t= 1698587157; x=1698673557; bh=nwDi7G8YoCLKQtKQNySfnFuMFDqBzeBBPzR HijBNdnI=; b=yvHc5lKkndBP6FqeOcISAQQZkOSLPiPQQnNJoKoHhU0v8kC74at PmAmRybiLi+hSSIWDpn6ODsCpr26PQQHgoMbjPy4dQthL1u1cruvxboGKV9QKzVv /UyOe4B95ebsQsGVQViqzhbBziVBJBRo4rTcJh9AeNvQ0O5h+3zBVosxbb3Ww2WW G+dDyjvGJzD2ZmcUO2uQiHsGSLii4SHE9N4hRndbMHlOt9nfqrGk6cDIOKQYDbTj Z/ZdoHwvldCtAEK5kcl5CxZ3aIR4ncjmzL+KVnMYufDUAElLKEQSf2rNRGPQXUXv 5e9Kvm8j3byvI5koynWePcR61CtIue9WHJg== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698587157; x=1698673557; bh=nwDi7G8YoCLKQtKQNySfnFuMFDqBzeBBPzR HijBNdnI=; b=tGuQM+Skxm7klrHzJ47I8+qRlLt6ZLMMYv/DzH5VPSD8y8pUlwS cXIJ1ItFNqq3dImL3SnZZ1RAOREjYptNba6YNJJpa/7Shj9c1NhTg1OsYTMZDzjr T8Wt9KdMpnpkVTpfzVMnTZeUfKsqRl+sDOEu+Wv7MTpkhu/JJmg4hotjOLYRkCV3 8i+iI9atzw5B7k0oLnDPE+TuQm1KWzti3FzGwL5MI5Tzxq3apw1lQq76u5t4o/Pc afKBWJJZF4nZ2/1tuEDMnnBpwUmyPrZn2aP/AwMHeY+BIV0KUQ+rJIFh3AGnm9YX z47JAp87fSlaIOzrylwlR+HaP+6K7Vtw+kw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleekgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhfffugggtgffkfhgjvfevofesthejredtredtjeenucfhrhhomheplfhirgig uhhnucgjrghnghcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmqeenuc ggtffrrghtthgvrhhnpedvkeeihfefveekueevteefleffkeegudeghfdtuddugefhueev geffgedukeejleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 29 Oct 2023 09:45:57 -0400 (EDT) From: Jiaxun Yang Date: Sun, 29 Oct 2023 02:53:06 +0000 Subject: [PATCH 5/8] MIPS: debug_ll: Add Kconfig symbols for some 8250 uarts MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231029-mips_debug_ll-v1-5-d7a491e8c278@flygoat.com> References: <20231029-mips_debug_ll-v1-0-d7a491e8c278@flygoat.com> In-Reply-To: <20231029-mips_debug_ll-v1-0-d7a491e8c278@flygoat.com> To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 29 Oct 2023 06:46:21 -0700 (PDT) Define platform symbols for all 8250 style uart type supported by zboot, plus Loongson-2K and boston. 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