From patchwork Mon Feb 2 11:20:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsahee Zidenberg X-Patchwork-Id: 5760631 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 17FD39F691 for ; Mon, 2 Feb 2015 11:24:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E60520218 for ; Mon, 2 Feb 2015 11:24:15 +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 53A06200ED for ; Mon, 2 Feb 2015 11:24:14 +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 1YIF48-0001WD-E5; Mon, 02 Feb 2015 11:21:16 +0000 Received: from mail-we0-f176.google.com ([74.125.82.176]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YIF3q-0001Ls-QS for linux-arm-kernel@lists.infradead.org; Mon, 02 Feb 2015 11:20:59 +0000 Received: by mail-we0-f176.google.com with SMTP id w62so38343802wes.7 for ; Mon, 02 Feb 2015 03:20:37 -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=2Ru8Yp9BlG/mdjNpsvVNKkfbF3vKg6F3/CEoXBa5Aag=; b=EEGbvmoenkGxI7ebCO7P8ZmlXAOy9EZB0ZorDERIbGCFq8bO+H7ByMTw3tNvHqb9xr tH82G0akp7yxrK4tb8NUFXSo3TLPhwIak9gN0L8GbmOMqMlnBac/+dv1bVF/pwknHjTa emQ6TUi8yuaGqkP6MlKiRnf06OTKlSO2ejPifV2u2l5inTBKaUKpil07cQaf1gRw9COl D4b0rrxMDJF/ChX3vusWSSGLcNDOU2XzogNMEAQHjcLBxKqW+EPzQsjBNRkO6RvJU2oQ vr68xiyZ6K0MZUewxiZhkRUsrvTmhlXmAm1wULZhQDCPgLkN6bhMOO3YNVp1Yd2V6Uab ePYg== X-Gm-Message-State: ALoCoQkaZ03Cwqqyw4GIQ4liR0I2aMi4kozhx4FkVmWACnq1DrcrGzLVitq9f3BhBCH7fhtUmsj3 X-Received: by 10.180.103.170 with SMTP id fx10mr22996086wib.24.1422876036922; Mon, 02 Feb 2015 03:20:36 -0800 (PST) Received: from localhost ([82.166.183.244]) by mx.google.com with ESMTPSA id n6sm27404083wjy.8.2015.02.02.03.20.35 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 03:20:36 -0800 (PST) Date: Mon, 02 Feb 2015 13:20:33 +0200 From: Tsahee Zidenberg To: linux-arm-kernel@lists.infradead.org, barak@annapurnalabs.com, saeed@annapurnalabs.com Subject: [PATCH v3 2/5] ARM: Alpine: early-debug print support Message-ID: <54cf5d81.NBLSQow5T5PKmx9Z%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-20150202_032059_024275_903E3EB9 X-CRM114-Status: GOOD ( 10.05 ) X-Spam-Score: -0.7 (/) Cc: linux@arm.linux.org.uk, 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 --- 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 || \