From patchwork Thu Mar 12 11:53:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 5992961 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 8D4E59F399 for ; Thu, 12 Mar 2015 11:56:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD7A72035E for ; Thu, 12 Mar 2015 11:56:43 +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 D44172037E for ; Thu, 12 Mar 2015 11:56:42 +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 1YW1h3-0004AN-7g; Thu, 12 Mar 2015 11:54:25 +0000 Received: from mail-we0-f175.google.com ([74.125.82.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YW1gB-0003XK-JU for linux-arm-kernel@lists.infradead.org; Thu, 12 Mar 2015 11:53:33 +0000 Received: by wesx3 with SMTP id x3so15811866wes.4 for ; Thu, 12 Mar 2015 04:53:09 -0700 (PDT) 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=5IB2MOmRee8jO+lhz42cfZWFinu9895J30pNJdtvwWU=; b=ZFlMcDuPq99h6HycGxzRXQUUBaaXAEapivp65X5+EivcDLv7LpKIJ15h4jHhGsj+zJ gwea2oX9m4V38EdLLQOK95iwyyNJSlSrxOK7x1BGFkJAEh40jMzf3DwA08XpuiKz0Lng Jx/KjP5XuZEpgQD0yhnXKs4H5sZWi1I2hudsNteJq+B+V9dkJX0d9QvWcvEnSj5Oj9I1 1C06Z2qBG72ENn7VmagXEEW52DJAEIZioCJuqH+OxI1jL0b//5+wszA0SrOq6Juj6pU4 BEWVbvwC5sOBHShb03LKOOxSn9AfkCGOPOSNgpa0Y27tBDoVJ/OQ3ewY2bUhBWGmqfEJ 14vA== X-Gm-Message-State: ALoCoQksViN/xNFfOnojlmH9EaJ5gFYt/Zi8GL7KjsT4W8yiHtiyMZgRf/CV7dePvWQaIqxMlSpN X-Received: by 10.180.74.170 with SMTP id u10mr12197761wiv.46.1426161189469; Thu, 12 Mar 2015 04:53:09 -0700 (PDT) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id m10sm10376016wij.5.2015.03.12.04.53.06 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 12 Mar 2015 04:53:08 -0700 (PDT) Date: Thu, 12 Mar 2015 13:53:04 +0200 From: Tsahee Zidenberg To: arm@kernel.org, linux-arm-kernel@lists.infradead.org, barak@annapurnalabs.com, saeed@annapurnalabs.com Subject: [PATCH v6 2/6] ARM: Alpine: early-debug print support Message-ID: <55017e20.cQfjmLVJ2LRqZ3eD%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-20150312_045331_854285_A48FE778 X-CRM114-Status: GOOD ( 10.28 ) X-Spam-Score: -0.7 (/) Cc: zeev@annapurnalabs.com, rshitrit@annapurnalabs.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 6e55ed9..0fcecbc 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 @@ -1416,6 +1424,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 @@ -1482,6 +1491,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 @@ -1542,7 +1552,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 || \