From patchwork Thu Sep 28 23:14:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9976863 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5BD3A6056F for ; Thu, 28 Sep 2017 23:16:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C1CB27D4A for ; Thu, 28 Sep 2017 23:16:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CD2129776; Thu, 28 Sep 2017 23:16:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1DBE29773 for ; Thu, 28 Sep 2017 23:16:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751344AbdI1XQk (ORCPT ); Thu, 28 Sep 2017 19:16:40 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:36862 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbdI1XP3 (ORCPT ); Thu, 28 Sep 2017 19:15:29 -0400 Received: by mail-qk0-f195.google.com with SMTP id j5so1472833qkd.3; Thu, 28 Sep 2017 16:15:29 -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:in-reply-to:references; bh=Axvud+MBh+gdHJ/87089dkQltnoikbtSsxi2nB6lN34=; b=rKerFROvNq24Tgnr6n6mMbgKaSVSHYy6UsVD9pauipRe5HT3wrOkrosbsdIn13aKoo e4HYy7fLZN/AnuLV25Zxi1Oe6/d5EFQBJSfOA5WQI7A0TNizd/345ziHgwIgralQtwjy 8t96wZZVX0UJ5tCaZlSwqNuquDcWApDNsuZBZjfv5uLZaGhoQ6XiQ7LpRMh3tvSG+nWO KFj9eh2Gl7l5SF3hoyNnxoF5HkKXLf6gZA3K0fQ2o+v/B6VEI6GCMc4WAqX/yLaDkJ1s 2o9rMxeUDd/j6t3rbEaKCMCLwVZnNRnxCyFVSaYi9jy8/J59Jv6FWnOEBCveSvSRuD68 IsBw== 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:in-reply-to :references; bh=Axvud+MBh+gdHJ/87089dkQltnoikbtSsxi2nB6lN34=; b=SI3eHNj0YD75+Tsay9q8Qf2OuxT770owpRx20tt1sbnGVI4fKHIgqbvLqWJQhB4BEo +FmHGYNJ4oKvFOqnyaRuO81lDAy4pMMRmo71zAUlusk0CHlzXuEImIgZ+HzmoB+BkJBr CQjXRHz85hCOzOs0BVlyeYNWDRW3j+ZhEg8A6zk30pJFX2bblk/cRlcrq+DkuXLYXYu/ EUwEY3vas1dD0pybH1cfTLhb3Q2Kt4brSM/YX1yrM7pSdh6/MdxEDlwEbLlpissBAkUd Mb3vcNJSedvk3jJ2kVkTN9Lg1num4Oi+r1rBgGTrzFKN20jAL/WY2Kj1kDXA7FN9cx/M qnlw== X-Gm-Message-State: AMCzsaVaixyKLd8UgpSBCHDrVma0RTNW5IaTiMxwH/3Ja6Vc8P2tA665 jGacLFHZBPxGVwnHjqKV9AQ= X-Google-Smtp-Source: AOwi7QBpiYdpJcd0zVJWHWL4BWmfrtITtZpJuR1iShu3TIzdBO3nL9TXj8jG0hR5vmvI1rbZo78tTw== X-Received: by 10.55.210.71 with SMTP id f68mr810025qkj.150.1506640528762; Thu, 28 Sep 2017 16:15:28 -0700 (PDT) Received: from stb-bld-02.irv.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id s90sm1792815qkl.81.2017.09.28.16.15.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Sep 2017 16:15:27 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Rob Herring , Mark Rutland , Ray Jui , Scott Branden , Jon Mason , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC ARM ARCHITECTURE), Michael Turquette , Stephen Boyd , Russell King , Arnd Bergmann , Olof Johansson , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK) Subject: [PATCH v2 07/10] ARM: debug: Add Hurricane 2 UART2 debug addresses Date: Thu, 28 Sep 2017 16:14:59 -0700 Message-Id: <20170928231502.27069-8-f.fainelli@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170928231502.27069-1-f.fainelli@gmail.com> References: <20170928231502.27069-1-f.fainelli@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Broadcom Hurricane 2 SoCs typically use their secondary UART for debug/console, provide a known good location for that. Acked-by: Jon Mason Signed-off-by: Florian Fainelli --- arch/arm/Kconfig.debug | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 6dcea8e8e941..0346805fe33c 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -169,6 +169,11 @@ choice depends on ARCH_BCM_5301X || ARCH_BCM_NSP select DEBUG_UART_8250 + config DEBUG_BCM_HR2 + bool "Kernel low-level debugging on Hurricane 2 UART2" + depends on ARCH_BCM_HR2 + select DEBUG_UART_8250 + config DEBUG_BCM_KONA_UART bool "Kernel low-level debugging messages via BCM KONA UART" depends on ARCH_BCM_MOBILE @@ -1508,6 +1513,7 @@ config DEBUG_UART_PHYS default 0x11009000 if DEBUG_MT8135_UART3 default 0x16000000 if DEBUG_INTEGRATOR default 0x18000300 if DEBUG_BCM_5301X + default 0x18000400 if DEBUG_BCM_HR2 default 0x18010000 if DEBUG_SIRFATLAS7_UART0 default 0x18020000 if DEBUG_SIRFATLAS7_UART1 default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1 @@ -1623,6 +1629,7 @@ config DEBUG_UART_VIRT default 0xf01fb000 if DEBUG_NOMADIK_UART default 0xf0201000 if DEBUG_BCM2835 || DEBUG_BCM2836 default 0xf1000300 if DEBUG_BCM_5301X + default 0xf1000400 if DEBUG_BCM_HR2 default 0xf1002000 if DEBUG_MT8127_UART0 default 0xf1006000 if DEBUG_MT6589_UART0 default 0xf1009000 if DEBUG_MT8135_UART3 @@ -1728,7 +1735,8 @@ config DEBUG_UART_8250_SHIFT int "Register offset shift for the 8250 debug UART" depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250 default 0 if DEBUG_FOOTBRIDGE_COM1 || ARCH_IOP32X || DEBUG_BCM_5301X || \ - DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || DEBUG_OMAP7XXUART3 + DEBUG_BCM_HR2 || DEBUG_OMAP7XXUART1 || DEBUG_OMAP7XXUART2 || \ + DEBUG_OMAP7XXUART3 default 2 config DEBUG_UART_8250_WORD