From patchwork Tue May 4 17:03:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12238313 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D8DEC433ED for ; Tue, 4 May 2021 17:05:19 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 E9C2E613C4 for ; Tue, 4 May 2021 17:05:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E9C2E613C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=HHpetTS1vxbl8AqpI6po0gVa0U2AenLpeOJbNApYdoE=; b=DMgihmRlsMZ5K4TCjOCKAiFR72 ek48uhaglNO0ND50yeFmCESj7Ey7u4ubt/2kshb9/LAi8KWJ3gjUeTVtUTBlzUX7pQ4TIOrgGY7Zh Mu2zTVuEhxnzoV/biV4yeHqLBfE3FNjtVRHrcXh+3c07Uk0B5eH9T2m4YgQxC7ZpfWRFBDiYuONpN pATVOdnqj3fSo370LWOiQEM+SeRktto2ez2KXLIx9tX/aHLSZy60Eq64Websw5usXxNtO8ALiYYnS oPP6J6Xq9+jVgsAiuCbLs/Oyq05BqZ0F38XkLzHTdaIGMTiXuVElDVFtIFuwJ74NUCZ/ROvPK0jA3 KO85Ehzw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldySJ-00GcBt-K9; Tue, 04 May 2021 17:03:31 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldySG-00GcBh-Ff for linux-arm-kernel@desiato.infradead.org; Tue, 04 May 2021 17:03:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=tCUalEsbqL7jPNNj7LVJWgqHRBYA4CkEWBQjOeP24DU=; b=G1FDTq9qgdHF8T4iNWia4FTy/A liLab6velh53ekTMiWwp7Uh9TC3BoBR7u4KgpCXi21+cphQQCPiz//pM/Trb7Vzx9ELxIXYSq5LJj GQ2z40WLXTbIvbi8O1bb7wBkKpjRB+jQch/AcipX3ihT1MtnfymmBnXEAlEUlPaUsF35SWDcopqrq YyP33770LW9Eq6gA1n+cF/s2xE4FWdE8Mdl9fn5D8stFK7c0qLKacNYnR3sc7kYglVVA/SrewDZGL jKi/di+vOgv9kZCWWFUNz7Oq+3bYdG8mxBub3n+xCXvyPFwQAsOfzAnt+QQceE4vEVb/9TDWBmZle cwFksd/w==; Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldySD-0047pL-Qo for linux-arm-kernel@lists.infradead.org; Tue, 04 May 2021 17:03:27 +0000 Received: by mail-wr1-x434.google.com with SMTP id z6so10244882wrm.4 for ; Tue, 04 May 2021 10:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tCUalEsbqL7jPNNj7LVJWgqHRBYA4CkEWBQjOeP24DU=; b=VnjhYUI7f2n4ECFBANJzN91+Rk7GWbRJK5NfGa1P2OOD4Te6MA0AJ10uelIDcJ1fav hr+u0pi79BNpoberVrp7x7u4NJOHBAEK1ijtFduruuj/b4KZC6vYyh7odjijukcK4sf5 PQTdeO0vZA90hlatSCEkYFoA9y3/XKL1QkiSrgkIZYnntT7kvb694EQg3vMdxgnzWg7a MIEvd/GLfglLT2tu8zWnh0f/wiAFrMP614BpgJcbVjAdunKi9yS9sLb/8kkUEWV3VOCt mIOO4UPCgR/W07ZS38cGFtP4Xb1EKoxlRoOPVsvWtdCcFOF8H74lNEKTNscC6llztPqU ArAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tCUalEsbqL7jPNNj7LVJWgqHRBYA4CkEWBQjOeP24DU=; b=KVw+7zzhpquDNWlTH8O8xAY0Oj8VKucoiJHlaOM6rV+AZlsAtTwv0dSoPgbP4blzJg J9HbQe+BU2k6cYVhBpGAQBI8hb61PjDpqb6ImTUPV1tu1p4LmbuZWul/sa9+zPGciusM jXQT+F5fycKhgCvgftGm3M6DQias0krO6+oBKJnq66HqdPG54uVJjTOSCO4giC+DQH4p 19h42OuS+Ey6pgkhR1d4L1JPo4EOODXa5Y09ARMXwjNkpCODcP1ve9kLopimrjEsC+OL 7MYpzpdjSDA1dl3Vz3YuVFn4ukZxH4S3B+Vr1eu/2GhdcPjHeSYl8SnkNspS7NHIr4L0 dZ5w== X-Gm-Message-State: AOAM531j9KB+qsvJMbjCwFrxZtVgNfV5WImGc+VpZODXkxv+rXGawFr9 +0O8tO17WiKwtqyDD2qwgG4= X-Google-Smtp-Source: ABdhPJxhdSLkgmWq70qkXDplBIV8URfPNGOmK8wtljjNSG8tDlg60lLOYAbhG6bJBgIp1hieuZjEiA== X-Received: by 2002:adf:dfcc:: with SMTP id q12mr33401883wrn.123.1620147804026; Tue, 04 May 2021 10:03:24 -0700 (PDT) Received: from debby (176-141-241-253.abo.bbox.fr. [176.141.241.253]) by smtp.gmail.com with ESMTPSA id m184sm3168233wme.40.2021.05.04.10.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 10:03:23 -0700 (PDT) From: Romain Perier To: Russell King , Arnd Bergmann Cc: Krzysztof Kozlowski , Linus Walleij , Alain VOLMAT , Kefeng Wang , Rob Herring , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , linux-arm-kernel@lists.infradead.org, Daniel Palmer , Mohammed Billoo , Daniel Palmer Subject: [PATCH v2] ARM: debug: add UART early console support for MSTAR SoCs Date: Tue, 4 May 2021 19:03:16 +0200 Message-Id: <20210504170316.34622-1-romain.perier@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210504_100325_904120_F4E34759 X-CRM114-Status: GOOD ( 13.33 ) 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 This adds the debug_ll uart for the PM UART found on armv7-based MStar SoCs. Signed-off-by: Romain Perier Acked-by: Daniel Palmer Reviewed-by: Linus Walleij Tested-by: Mohammed Billoo --- Changes since v1: - Renamed to DEBUG_MSTARV7_PMUART, so it matches the arch name - Improved the Kconfig description - Added Daniel's Acked-by --- arch/arm/Kconfig.debug | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 36016497b1b3..1c673762ce7c 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -607,6 +607,14 @@ choice when u-boot hands over to the kernel, the system silently crashes, with no serial output at all. + config DEBUG_MSTARV7_PMUART + bool "Kernel low-level debugging messages via MSTARV7 PM UART" + depends on ARCH_MSTARV7 + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + for MSTAR ARMv7-based platforms on PM UART. + config DEBUG_MT6589_UART0 bool "Mediatek mt6589 UART0" depends on ARCH_MEDIATEK @@ -1605,6 +1613,7 @@ config DEBUG_UART_PHYS default 0x18000400 if DEBUG_BCM_HR2 default 0x18023000 if DEBUG_BCM_IPROC_UART3 default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1 + default 0x1f221000 if DEBUG_MSTARV7_PMUART default 0x20001000 if DEBUG_HIP01_UART default 0x20060000 if DEBUG_RK29_UART0 default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2 @@ -1722,6 +1731,7 @@ config DEBUG_UART_VIRT default 0xf0100000 if DEBUG_DIGICOLOR_UA0 default 0xf01fb000 if DEBUG_NOMADIK_UART default 0xf0201000 if DEBUG_BCM2835 || DEBUG_BCM2836 + default 0xf0221000 if DEBUG_MSTARV7_PMUART default 0xf1000300 if DEBUG_BCM_5301X default 0xf1000400 if DEBUG_BCM_HR2 default 0xf1002000 if DEBUG_MT8127_UART0 @@ -1827,6 +1837,7 @@ config DEBUG_UART_8250_SHIFT default 0 if DEBUG_FOOTBRIDGE_COM1 || ARCH_IOP32X || DEBUG_BCM_5301X || \ DEBUG_BCM_HR2 || DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || \ DEBUG_OMAP7XXUART3 + default 3 if DEBUG_MSTARV7_PMUART default 2 config DEBUG_UART_8250_WORD