From patchwork Tue May 19 18:55:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Eastwood X-Patchwork-Id: 6440341 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 DED109F1CC for ; Tue, 19 May 2015 18:57:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F30CE20364 for ; Tue, 19 May 2015 18:57:55 +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 298E1203EB for ; Tue, 19 May 2015 18:57:55 +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 1Yumg1-0005DF-VM; Tue, 19 May 2015 18:55:42 +0000 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yumfx-00054g-2q for linux-arm-kernel@lists.infradead.org; Tue, 19 May 2015 18:55:37 +0000 Received: by lagr1 with SMTP id r1so38828156lag.0 for ; Tue, 19 May 2015 11:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=SxRZh6lndTvNTuZeIK8ciGVOaYvoLoO63xGe18JISdY=; b=ZSrzzbs2MPczJqVtHM9TRVxGSmgQ6+kriP6PJzIdQ3ZuN/YpolroXyAHHlBOlH2Zc1 XjhRFL6Z0zn2hxnxhbbMjsIOea6XIFR/p0GYNfi7YdLTGvhcFnv819pNYrFC9WyWxIgS 9zYWlmJhU13LFy10UkYk9kAQozv4J/Ww/uVI/2rn62g5WpI00SBRerPin8sYb5xuFJ6n Zyz5EFr/ro7EcNa5ZbGrk+aemnqyD2jqEtZUsCBodzn1mw39TjG3PwnOi/kKKawiO0Hk m/PaNBg6yV4ZUKK4t6dd/HgrPGfMmV2ElPBV8obHTW8fzd0r0wMRuHlUGzM2r2FcPh3c QYLw== X-Received: by 10.152.246.34 with SMTP id xt2mr19670692lac.110.1432061713561; Tue, 19 May 2015 11:55:13 -0700 (PDT) Received: from localhost.localdomain ([90.149.48.183]) by mx.google.com with ESMTPSA id z1sm3908527laz.48.2015.05.19.11.55.12 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 May 2015 11:55:13 -0700 (PDT) From: Joachim Eastwood To: arnd@arndb.de, arm@kernel.org Subject: [PATCH] ARM: lpc18xx: define low-level debug symbol for LPC18xx/43xx Date: Tue, 19 May 2015 20:55:03 +0200 Message-Id: <1432061703-29104-1-git-send-email-manabian@gmail.com> X-Mailer: git-send-email 1.8.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150519_115537_304785_8EE1103C X-CRM114-Status: GOOD ( 10.84 ) X-Spam-Score: -0.8 (/) Cc: Joachim Eastwood , geert@linux-m68k.org, linux-arm-kernel@lists.infradead.org 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: , MIME-Version: 1.0 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.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, 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 Using a dedicated symbol for low-level debugging instead of the arch symbol will make this platform play nice when enabled on a kernel that supports multiple platforms. Signed-off-by: Joachim Eastwood Acked-by: Geert Uytterhoeven --- Hi Arnd, As disscussed on the mailing list: http://marc.info/?l=linux-arm-kernel&m=143202771500659&w=2 Patch should apply nicely on top of next/soc. arch/arm/Kconfig.debug | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index b3b6469350c1..689b524f8428 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -433,6 +433,14 @@ choice Say Y here if you want kernel low-level debugging support on KS8695. + config DEBUG_LPC18XX_UART0 + bool "Kernel low-level debugging via LPC18xx/43xx UART0" + depends on ARCH_LPC18XX + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + on NXP LPC18xx/43xx UART0. + config DEBUG_MESON_UARTAO bool "Kernel low-level debugging via Meson6 UARTAO" depends on ARCH_MESON @@ -1359,7 +1367,7 @@ config DEBUG_UART_PHYS default 0x20201000 if DEBUG_BCM2835 default 0x3e000000 if DEBUG_BCM_KONA_UART default 0x4000e400 if DEBUG_LL_UART_EFM32 - default 0x40081000 if ARCH_LPC18XX + default 0x40081000 if DEBUG_LPC18XX_UART0 default 0x40090000 if ARCH_LPC32XX default 0x40100000 if DEBUG_PXA_UART1 default 0x42000000 if ARCH_GEMINI