From patchwork Tue Feb 3 13:29:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 5768381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DC76A9F269 for ; Tue, 3 Feb 2015 13:31:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1461020218 for ; Tue, 3 Feb 2015 13:31:35 +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 38F572013D for ; Tue, 3 Feb 2015 13:31: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 1YIdY6-0007fx-Mm; Tue, 03 Feb 2015 13:29:50 +0000 Received: from mail-wg0-f47.google.com ([74.125.82.47]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YIdXr-0007Lq-Qx for linux-arm-kernel@lists.infradead.org; Tue, 03 Feb 2015 13:29:36 +0000 Received: by mail-wg0-f47.google.com with SMTP id n12so44626316wgh.6 for ; Tue, 03 Feb 2015 05:29:13 -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=aFGF1pW9VPAn43u3zpFhlCPQ5zeceJfNXrRnZDFlmwhOq+ZT2ssqZS+q4UZcXfbefh YjqYYp0t41vq+yOp7cpDqOBE2I3rTq7aMzNQ8SGBjRhCKhRpO7byYlTabCEFMr+/DYBa m1XWkhR0FvCh/1E1GSint4k5IMfTpOjsEq6NeoUaTtkJT83/9bQNDm4WdvnWgb51oaow Wbh3dGgz8btzk3Ph1jMCor0O2W1vDYyTGMHs5rUdbNluVBb7vxicEm3vI7soXYnchREU 0BXz2ZeHL5B4z4ilP0Npjb52FKZhie8L9WOxrSfj2HVlAq3V/pfOxvxkFUmIZc1qGd2e v5qw== X-Gm-Message-State: ALoCoQn/vEobdSI3qcw3KzGycwMchDjl6CLfaxTl+UxKD/AMLEmZ+g/2iuSijjDbygwWHFegcPS5 X-Received: by 10.194.57.43 with SMTP id f11mr52616361wjq.6.1422970153852; Tue, 03 Feb 2015 05:29:13 -0800 (PST) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id tc2sm24582062wic.21.2015.02.03.05.29.12 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Feb 2015 05:29:13 -0800 (PST) Date: Tue, 03 Feb 2015 15:29:10 +0200 From: Tsahee Zidenberg To: arm@kernel.org, linux-arm-kernel@lists.infradead.org, barak@annapurnalabs.com, saeed@annapurnalabs.com Subject: [PATCH v4 2/6] ARM: Alpine: early-debug print support Message-ID: <54d0cd26.IizQ8Xs0Kr9x2FTu%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-20150203_052936_036056_89FB0D88 X-CRM114-Status: UNSURE ( 9.82 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: olof@lixom.net, mark.rutland@arm.com, zeev@annapurnalabs.com, rshitrit@annapurnalabs.com, 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 || \