From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756759Ab3FLMe4 (ORCPT ); Wed, 12 Jun 2013 08:34:56 -0400 Received: from mail-lb0-f181.google.com ([209.85.217.181]:42729 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756708Ab3FLMey (ORCPT ); Wed, 12 Jun 2013 08:34:54 -0400 From: Jonas Jensen To: linux-arm-kernel@lists.infradead.org Cc: linux@arm.linux.org.uk, linux-kernel@vger.kernel.org, Jonas Jensen 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 1.7.2.5