From patchwork Thu Jul 4 14:45:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Jensen X-Patchwork-Id: 2823843 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 776479F9D2 for ; Thu, 4 Jul 2013 14:47:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7956E20157 for ; Thu, 4 Jul 2013 14:47:57 +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 0059E20118 for ; Thu, 4 Jul 2013 14:47:55 +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 1Uukni-0003K0-B5; Thu, 04 Jul 2013 14:46:28 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UuknM-0002cw-8H; Thu, 04 Jul 2013 14:46:04 +0000 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UuknI-0002ae-NS for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2013 14:46:01 +0000 Received: by mail-la0-f44.google.com with SMTP id er20so1324785lab.17 for ; Thu, 04 Jul 2013 07:45:38 -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=679q2YDV7EViPAh0+HkiOpnOl9Tfa78A2QN0BQm5Hq8=; b=l+2VPf8YMUZ2MfSbTCobY+D+SUGdwg71eUkWgArGbwkxcxzxf1eLbJ/geRV02CNid0 c3ABAj2hf4OcMVANLdbEzp5HFOZyqDqbGosAja9SiF1RW7X4gIvNDnZ8lTHo/oUsi4Wo 0s2iEHLw0fQjFQ/qoC/3amuoJU/O16IQGF7qLpbJDiaW4/vk97KlG6Bn9YPz+MbtdEH8 RCTz0E08vhlgI1s5l8Oju3TMS7ZSjqXITFPNgXXCgi6xsLrGWtaadDI9pB0/S85zCJJq x2XW0DvAEEUxaOhFlE0760udhvYRpsRAwT/XM7B6l7BhfwV8S2+/yh9Rsxd0z7laItLX vpPQ== X-Received: by 10.112.235.104 with SMTP id ul8mr3683754lbc.36.1372949138400; Thu, 04 Jul 2013 07:45:38 -0700 (PDT) Received: from Ildjarn.ildjarn.botech.se (static-213-115-41-10.sme.bredbandsbolaget.se. [213.115.41.10]) by mx.google.com with ESMTPSA id u1sm1260284lag.5.2013.07.04.07.45.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 04 Jul 2013 07:45:37 -0700 (PDT) From: Jonas Jensen To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 3/4] ARM: mach-moxart: add MOXA ART UART debug files Date: Thu, 4 Jul 2013 16:45:31 +0200 Message-Id: <1372949131-8225-1-git-send-email-jonas.jensen@gmail.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1371040448-28742-4-git-send-email-jonas.jensen@gmail.com> References: <1371040448-28742-4-git-send-email-jonas.jensen@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130704_104600_919652_5A7DBD3C X-CRM114-Status: GOOD ( 12.52 ) X-Spam-Score: -2.0 (--) Cc: linux@arm.linux.org.uk, arnd@arndb.de, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Jonas Jensen , arm@kernel.org, olof@lixom.net 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 Add MOXA ART kernel low-level debugging port support. Signed-off-by: Jonas Jensen --- Notes: Applies to next-20130703 Changes since v2: 1. use alphabetic ordering in Kconfig arch/arm/Kconfig.debug | 8 ++++++++ arch/arm/include/debug/moxart.S | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 arch/arm/include/debug/moxart.S diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 5b7be8d..781018c 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -286,6 +286,13 @@ choice Say Y here if you want kernel low-level debugging support on MMP UART3. + 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. + config DEBUG_MSM_UART1 bool "Kernel low-level debugging messages via MSM UART1" depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50 @@ -777,6 +784,7 @@ config DEBUG_LL_INCLUDE DEBUG_IMX6SL_UART default "debug/keystone.S" if DEBUG_KEYSTONE_UART0 || \ DEBUG_KEYSTONE_UART1 + default "debug/moxart.S" if DEBUG_MOXART_UART0 default "debug/mvebu.S" if DEBUG_MVEBU_UART || \ DEBUG_MVEBU_UART_ALTERNATE default "debug/mxs.S" if DEBUG_IMX23_UART || DEBUG_IMX28_UART diff --git a/arch/arm/include/debug/moxart.S b/arch/arm/include/debug/moxart.S new file mode 100644 index 0000000..a228451 --- /dev/null +++ b/arch/arm/include/debug/moxart.S @@ -0,0 +1,20 @@ +/* + * Debugging macro include header + * + * 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 version 2 as + * published by the Free Software Foundation. + */ + +#define MOXART_UART_DEBUG_PHYS_BASE 0x98200000 +#define MOXART_UART_DEBUG_VIRT_BASE 0xf9820000 + + .macro addruart, rp, rv, tmp + ldr \rp, =MOXART_UART_DEBUG_PHYS_BASE + ldr \rv, =MOXART_UART_DEBUG_VIRT_BASE + .endm + +#define UART_SHIFT 2 +#include