From patchwork Mon May 3 18:04:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12236701 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.7 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,URIBL_BLOCKED, 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 CD32DC433ED for ; Mon, 3 May 2021 18:07:16 +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 38D8C611AC for ; Mon, 3 May 2021 18:07:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38D8C611AC 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=50bCcV8/HyoF0lWgaQO4gplawsLme9f76+xyKcfz4xo=; b=Uw1t5krBQ5EA9CXyQoA6JrOFDJ IArFb6YWw8Yx3A2ZYyh5BNs6nN2WGEfAG6YHMCAQkz/8BLzaXFDZIzawnpiJJCfT0iRqTLa0oVNI1 oZj1NhCKt4RWxYZG/QZqR0lARVsVyQVvARx0rdTI4c2ygpGoO92auEZwY/+DHUi8xcnmSRwJG3778 ls/ZQDJJjvCVdhfTFI0NKYfekeQGL/OlALVksSO5a33unb4J+1YeJBP4VL2ZB9l7UyT7/gWZflLi7 PA1ZlA7CIVALTyBofmmkb42ZudqkeH3obISkO9SaDFSrF5k/wRyjuTv/EAiBYro4mz2s0ljjgyzDW f7y63oHA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldcwK-00EZQz-RF; Mon, 03 May 2021 18:05:04 +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 1ldcwH-00EZQd-OU for linux-arm-kernel@desiato.infradead.org; Mon, 03 May 2021 18:05:02 +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=6DTsubos9hDPXx1bLfjH/qsRMOMczAN45WBtspsV3SM=; b=fruiTKPeRI+lTigGkNuG90TSRT fFjBNc0FHw+Tp2s9TPbRHfneu2XRwwm/mNT/xKCUtw2ScQTZqXrZdm4MVOvdoqMzQabiHFA+Urqfo nrxU5uEmKxN2aLa7y1xlG9mDylTOEJ3aVcwScR+Exn/DCyUZBg5wUuyE31WB1E/kniLAdEWrPwpS8 oydgE6JHyhaqJeKqta57nuPVIRrAF58Q0N/PhzfCURiy/Zgwu+fdNcXQwOBZ0r1Kh1SqnwGValiJK g4Nsdfo0UV63J0sv9SHkyX2aXBJqwu23eOeO7UxQsdIosqe0Vfr3W/VPi+ZLSPbZWSZwCmMG7Gh6A Z3xgt0oQ==; Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldcwE-003NPt-KI for linux-arm-kernel@lists.infradead.org; Mon, 03 May 2021 18:05:00 +0000 Received: by mail-wm1-x333.google.com with SMTP id k128so3849526wmk.4 for ; Mon, 03 May 2021 11:04:57 -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=6DTsubos9hDPXx1bLfjH/qsRMOMczAN45WBtspsV3SM=; b=I8+ENKmZ+aPGEsLf1eVPpuLfc7ihy/4yhHo/isTV/71GbPeD+mLVXwvcKrWKgkbDjY XoeWbI9eTrWWwyVY9d3otwCpsoIsYIWhwSuVDbISL6W8n3zP3K5s/tKCHVQX5khkgCp0 YI7m8FjYWD9DicoThmBniNUjJH0EFJYHyaq2lZOO4MvbCrDWpRomY1z/fhHvPy/JdZPt CqXYEBgOlP9N/G30jx+rndwsJ+4FPv+dqVgP26009fz2wWMZGFSpPEtYwnqw/IKBgXUp 3e+LkLROlpKrc60dxKOV9uGkAq5+B3/mvBHsszKeLxUCSr3hq/8I5QDdF9AVbI/S1ZMY XZbg== 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=6DTsubos9hDPXx1bLfjH/qsRMOMczAN45WBtspsV3SM=; b=IisTctNAOoe2wbkqyE/e43u6X5JG82LCHdCtop4YHGF6hI/wl6/OmNvDli+yXtxtGn AJz2fDTL8LceqjYdNnNeAGcf7AawbORltLMxOEwai7MOQ8quegOSYARcjfWtPhY3ccCS Aczxbs2dEmIi3pYgYt4mHwBtcSejznRXbzLUq2s8YOrDTyu/wFHVoQQl2wE2w3bNYnyo jZNi6Z7BCpaBDoxptBfpaoCWrksPXXo9+prjdmkIqeuUSjD162Q6AmOQfYfsiQwuKgxM we6BgdSAa9ZpeaKMrHe0kS2AfuIIFQTUnNh+2/HU6V0UckSexskhhyC/x48rnLwzWKtI qS3w== X-Gm-Message-State: AOAM533PBkYxH42Wfpk6N65SewbE5pTPmZDq+1z+AKiZ2jAqstPoJDLH vbFTOVPD1LbQimPFtArOUSM= X-Google-Smtp-Source: ABdhPJx9XqVu0cr0UBQY1GI5sRzG9hVcSbJJnHGOnDdmlldljsAi5W5w3pFKYyhdj/EPTEY5CerDAg== X-Received: by 2002:a1c:f20f:: with SMTP id s15mr34273661wmc.61.1620065096559; Mon, 03 May 2021 11:04:56 -0700 (PDT) Received: from debby (176-141-241-253.abo.bbox.fr. [176.141.241.253]) by smtp.gmail.com with ESMTPSA id l12sm13018508wrm.76.2021.05.03.11.04.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 11:04:56 -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 Subject: [PATCH] ARM: debug: add UART early console support for MSTAR SoCs Date: Mon, 3 May 2021 20:04:29 +0200 Message-Id: <20210503180429.88198-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-20210503_110458_690806_8C462D87 X-CRM114-Status: GOOD ( 12.43 ) 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 --- arch/arm/Kconfig.debug | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 36016497b1b3..4f1dd41d639a 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_MSTAR_PMUART + bool "Kernel low-level debugging messages via MSTAR PM UART" + depends on ARCH_MSTARV7 + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + for MSTAR 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_MSTAR_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_MSTAR_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_MSTAR_PMUART default 2 config DEBUG_UART_8250_WORD