From patchwork Wed Jun 12 12:34:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Jensen X-Patchwork-Id: 2709911 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BB99B9F1E2 for ; Wed, 12 Jun 2013 12:37:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A2B2220226 for ; Wed, 12 Jun 2013 12:37:26 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7C29720209 for ; Wed, 12 Jun 2013 12:37:25 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UmkHI-0006lS-U2; Wed, 12 Jun 2013 12:35:54 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UmkGw-0005lT-NW; Wed, 12 Jun 2013 12:35:30 +0000 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UmkGh-0005hz-N9 for linux-arm-kernel@lists.infradead.org; Wed, 12 Jun 2013 12:35:17 +0000 Received: by mail-la0-f49.google.com with SMTP id ea20so4224908lab.22 for ; Wed, 12 Jun 2013 05:34:53 -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:x-mailer:in-reply-to:references; bh=a08WcKcAEl5d0oDZ8tesY1toV7Z+JFQEdYE38P6Skyk=; b=iFZzotCaY7VXXkW552tfsGojxQ7huHUnR8jjtnnSzbKUxa3s+J/Xb3QuJH4wgPYzJC 1RBmkZjsKVOSTwfo0NVBITVPY4j6V6h6ys3wmEKnP6UTEKKG87b5+/2hVGiv/Ry0uomu gZdYMJL7xjiTBrAVUm+bWW4oiNwu8hDdJHrt7k5SsNe8EPd6Bf2xCAApkC2sqhQqAD4G K2eECafAhn7ky+VukPcCeMbkYkC9H/lmqpmsCbq3lXpNE4Gpj8QsNuOAfCUSJaRru7Kx WEYfsLtGDcCtfphYwbEsQp6SNXywdlPIWI8Yf65ngFdr/V+sY6kKf+tVjAJwu0RDjNlY I+fg== X-Received: by 10.152.4.65 with SMTP id i1mr1957313lai.21.1371040493344; Wed, 12 Jun 2013 05:34:53 -0700 (PDT) Received: from localhost.localdomain (static-213-115-41-10.sme.bredbandsbolaget.se. [213.115.41.10]) by mx.google.com with ESMTPSA id c5sm9051542lbe.1.2013.06.12.05.34.51 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 12 Jun 2013 05:34:52 -0700 (PDT) From: Jonas Jensen To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] ARM: mach-moxart: add MOXA ART UART debug files Date: Wed, 12 Jun 2013 14:34:08 +0200 Message-Id: <1371040448-28742-4-git-send-email-jonas.jensen@gmail.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1371040448-28742-1-git-send-email-jonas.jensen@gmail.com> References: <1371040448-28742-1-git-send-email-jonas.jensen@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130612_083515_968332_3DCA55DC X-CRM114-Status: GOOD ( 14.58 ) X-Spam-Score: -2.0 (--) Cc: linux@arm.linux.org.uk, linux-kernel@vger.kernel.org, Jonas Jensen X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Signed-off-by: Jonas Jensen --- arch/arm/Kconfig.debug | 10 ++++++++++ arch/arm/include/debug/moxart.S | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 arch/arm/include/debug/moxart.S diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 1d41908..a0e4a32 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -422,6 +422,15 @@ choice Say Y here if you want kernel low-level debugging support on Allwinner A1X based platforms on the UART1. + config DEBUG_MOXART_UART0 + bool "Kernel low-level debugging messages via MOXART UART0" + depends on ARCH_MOXART + help + Say Y here if you want kernel low-level debugging support + on MOXART based platforms on the UART0. + select this to make sure "putc" in arch/arm/boot/compressed/debug.S + uses arch/arm/include/debug/moxart.S:s "addruart" macro + config DEBUG_TEGRA_UART depends on ARCH_TEGRA bool "Use Tegra UART for low-level debug" @@ -642,6 +651,7 @@ config DEBUG_LL_INCLUDE default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1 default "debug/socfpga.S" if DEBUG_SOCFPGA_UART default "debug/sunxi.S" if DEBUG_SUNXI_UART0 || DEBUG_SUNXI_UART1 + default "debug/moxart.S" if DEBUG_MOXART_UART0 default "debug/tegra.S" if DEBUG_TEGRA_UART default "debug/ux500.S" if DEBUG_UX500_UART default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT || \ diff --git a/arch/arm/include/debug/moxart.S b/arch/arm/include/debug/moxart.S new file mode 100644 index 0000000..01e2aee --- /dev/null +++ b/arch/arm/include/debug/moxart.S @@ -0,0 +1,14 @@ +/* Copyright (C) 2013 Jonas Jensen + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, + * or (at your option) any later version. */ + +#define MOXART_UART_DEBUG_PHYS_BASE 0x98200000 + +.macro addruart, rp, rv, tmp + ldr \rp, =MOXART_UART_DEBUG_PHYS_BASE @ physical +.endm + +#define UART_SHIFT 2 +#include