From patchwork Thu Feb 5 17:15:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 5785861 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C89D7BF440 for ; Thu, 5 Feb 2015 17:18:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 560BA20268 for ; Thu, 5 Feb 2015 17:18:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1E922022D for ; Thu, 5 Feb 2015 17:18:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YJQ2g-00067B-Cg; Thu, 05 Feb 2015 17:16:38 +0000 Received: from mail-we0-f174.google.com ([74.125.82.174]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YJQ2P-0005pY-GA for linux-arm-kernel@lists.infradead.org; Thu, 05 Feb 2015 17:16:22 +0000 Received: by mail-we0-f174.google.com with SMTP id k11so59376wes.5 for ; Thu, 05 Feb 2015 09:15:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=495iLa2ygNFTy+FvLOqAK+WTvz0TMsGSJpBMfdKGAoM=; b=UAW/Utw4K9JF+iIQbD6dgHTnUSAs34Buz+Y+4lZEeZsGV6IRHc5hkcMgu7yjOWc0mq e/9gcGGkSdoHVmpYNfdFSoWc+vXdbuMh1kolUQ8ZtrvJrYW5/dHZjxMt+9DTjV0KuIoD Te4bbxRN2/JQ0f7aio4ttj9WRNRickKRaf5qkeb504RoNQkjFndpjBJj37Bj9cC0Npaj CQvMFl+iVPevRT44Akl4ubYZNj95qwPgTQvF1cTtENGq9fEoQ6cMZY5OjWa2LAZGDzlY IflsGqHIkvVq51BeSIg1KgG250UklFM+nD15GfBzWpOrLVTVljW4/NP2FMCpjsHYRFY8 /ZXw== X-Gm-Message-State: ALoCoQlQO9xOgrfRTI5It08PO+zT0JTyKucsVlyn1R27WKxGG3fgQUvWubQfD0gjZt9+duHPFLn6 X-Received: by 10.194.173.161 with SMTP id bl1mr9970632wjc.102.1423156559342; Thu, 05 Feb 2015 09:15:59 -0800 (PST) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id i13sm8221194wjr.7.2015.02.05.09.15.57 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 05 Feb 2015 09:15:58 -0800 (PST) Date: Thu, 05 Feb 2015 19:15:55 +0200 From: Tsahee Zidenberg To: arm@kernel.org, linux-arm-kernel@lists.infradead.org, barak@annapurnalabs.com, saeed@annapurnalabs.com Subject: [PATCH v5 2/6] ARM: Alpine: early-debug print support Message-ID: <54d3a54b.hjEFDlXMBICjsSBO%tsahee@annapurnalabs.com> User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150205_091621_706574_D5C3E89C X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: mark.rutland@arm.com, sboyd@codeaurora.org, zeev@annapurnalabs.com, rshitrit@annapurnalabs.com, olof@lixom.net, maxime.coquelin@st.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Alpine platform includes UART8250 that can be used for early prints. Signed-off-by: Saeed Bishara Signed-off-by: Tsahee Zidenberg Acked-by: Arnd Bergmann --- arch/arm/Kconfig.debug | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index b6a073d..b8412c3 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -93,6 +93,14 @@ choice prompt "Kernel low-level debugging port" depends on DEBUG_LL + config DEBUG_ALPINE_UART0 + bool "Kernel low-level debugging messages via Alpine UART0" + depends on ARCH_ALPINE + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on Alpine based platforms. + config DEBUG_ASM9260_UART bool "Kernel low-level debugging via asm9260 UART" depends on MACH_ASM9260 @@ -1367,6 +1375,7 @@ config DEBUG_UART_PHYS default 0xf8b00000 if DEBUG_HIX5HD2_UART default 0xf991e000 if DEBUG_QCOM_UARTDM default 0xfcb00000 if DEBUG_HI3620_UART + default 0xfd883000 if DEBUG_ALPINE_UART0 default 0xfe800000 if ARCH_IOP32X default 0xff690000 if DEBUG_RK32_UART2 default 0xffc02000 if DEBUG_SOCFPGA_UART @@ -1427,6 +1436,7 @@ config DEBUG_UART_VIRT default 0xfd000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX default 0xfd000000 if ARCH_SPEAR13XX default 0xfd012000 if ARCH_MV78XX0 + default 0xfd883000 if DEBUG_ALPINE_UART0 default 0xfde12000 if ARCH_DOVE default 0xfe012000 if ARCH_ORION5X default 0xf31004c0 if DEBUG_MESON_UARTAO @@ -1482,7 +1492,7 @@ config DEBUG_UART_8250_WORD depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250 depends on DEBUG_UART_8250_SHIFT >= 2 default y if DEBUG_PICOXCELL_UART || DEBUG_SOCFPGA_UART || \ - ARCH_KEYSTONE || \ + ARCH_KEYSTONE || DEBUG_ALPINE_UART0 || \ DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \ DEBUG_DAVINCI_DA8XX_UART2 || \ DEBUG_BCM_KONA_UART || DEBUG_RK32_UART2 || \