From patchwork Sun Jan 25 18:30:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 5703121 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 92F6E9F302 for ; Sun, 25 Jan 2015 18:33:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CD1DF20165 for ; Sun, 25 Jan 2015 18:33:24 +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 EF58F20125 for ; Sun, 25 Jan 2015 18:33:23 +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 1YFRy1-0004L4-B9; Sun, 25 Jan 2015 18:31:25 +0000 Received: from mail-we0-f178.google.com ([74.125.82.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YFRxv-0004De-7u for linux-arm-kernel@lists.infradead.org; Sun, 25 Jan 2015 18:31:20 +0000 Received: by mail-we0-f178.google.com with SMTP id k48so5628149wev.9 for ; Sun, 25 Jan 2015 10:30:57 -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:subject:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=2uAyY2AdWPl2vvFdWJjtygfQcj6IRQwlU6f6V8peKY4=; b=DJxuT5j92iMMePoZbS0p7THVr/lQSz3fhbC5B8qvRq51F9fipx0jveXC9lxvIKMqR/ 0Z4tOEDxttaHmcxBOFtmD0tvdUIBJVhyxcLl2qvSfN+dus+tuCiz5rJ3Ge92fxR0Zsj3 3YDHcFl0ZfroFnkDriBUQbKnKMNh4DzjSv3amVDsqc06riNbE9Ybt8AEcJqlPGrUcuZf b0pgTKkpw67iiMKa3BwNfcEGUEWAt94iqhLUtk73EUhDvaSbBGixe0INbeRFaAiOnBKo pyxajTD7XSRGqIb2EohJaFaLfX1nARDOR0a2YASlLq99I2A9msUsoLosc/IUco0tLHk0 xn2w== X-Gm-Message-State: ALoCoQlgBGys/oaWf7b0Sn+b+JSx0nWx5rNZ3/LpG5rgDOKeAfsYeHPWfVEIUmB/qYlZB69JoQkB X-Received: by 10.180.89.210 with SMTP id bq18mr24893625wib.45.1422210657064; Sun, 25 Jan 2015 10:30:57 -0800 (PST) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id g10sm10725964wic.7.2015.01.25.10.30.55 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 25 Jan 2015 10:30:56 -0800 (PST) Date: Sun, 25 Jan 2015 20:30:52 +0200 From: Tsahee Zidenberg To: Saeed Bishara , Barak Wasserstrom , linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/4] ARM: Alpine: early-debug print support Message-ID: <54c5365c.v0Ob21sdO6QYSZZM%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-20150125_103119_480733_F4CDD1BC X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) 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 --- 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 5ddd490..db6c389 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -1031,6 +1031,14 @@ choice This option selects UART0 on VIA/Wondermedia System-on-a-chip devices, including VT8500, WM8505, WM8650 and WM8850. + 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_LL_UART_NONE bool "No low-level debugging UART" depends on !ARCH_MULTIPLATFORM @@ -1312,6 +1320,7 @@ config DEBUG_UART_PHYS default 0xfff36000 if DEBUG_HIGHBANK_UART default 0xfffe8600 if DEBUG_UART_BCM63XX default 0xfffff700 if ARCH_IOP33X + default 0xfd883000 if DEBUG_ALPINE_UART0 depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \ DEBUG_LL_UART_EFM32 || \ DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \ @@ -1394,6 +1403,7 @@ config DEBUG_UART_VIRT default 0xfef36000 if DEBUG_HIGHBANK_UART default 0xfefff700 if ARCH_IOP33X default 0xff003000 if DEBUG_U300_UART + default 0xfd883000 if DEBUG_ALPINE_UART0 default DEBUG_UART_PHYS if !MMU depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \ DEBUG_UART_8250 || DEBUG_UART_PL01X || DEBUG_MESON_UARTAO || \ @@ -1411,7 +1421,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 || \