From patchwork Sun Oct 12 18:13:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 5071301 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 CBD6C9F295 for ; Sun, 12 Oct 2014 18:18:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1640D201F2 for ; Sun, 12 Oct 2014 18:18:24 +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 31737201EC for ; Sun, 12 Oct 2014 18:18:23 +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 1XdNfQ-0001bp-Na; Sun, 12 Oct 2014 18:14:52 +0000 Received: from mail.kmu-office.ch ([178.209.48.102]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XdNfD-0001Vl-20 for linux-arm-kernel@lists.infradead.org; Sun, 12 Oct 2014 18:14:40 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.kmu-office.ch (Postfix) with ESMTP id 10DC7A4978 for ; Sun, 12 Oct 2014 20:12:21 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kmu-office.ch X-Amavis-Alert: BAD HEADER, Duplicate header field: "In-Reply-To" Received: from mail.kmu-office.ch ([127.0.0.1]) by localhost (mail.kmu-office.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ik2unIe1J8wS for ; Sun, 12 Oct 2014 20:12:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.kmu-office.ch (Postfix) with ESMTP id CB792A497D for ; Sun, 12 Oct 2014 20:12:17 +0200 (CEST) Received: from trochilidae.localdomain (80-254-69-12.dynamic.monzoon.net [80.254.69.12]) (Authenticated sender: stefan@agner.ch) by mail.kmu-office.ch (Postfix) with ESMTPSA id 09FC8A495C; Sun, 12 Oct 2014 20:12:17 +0200 (CEST) From: Stefan Agner To: shawn.guo@linaro.org, kernel@pengutronix.de, u.kleine-koenig@pengutronix.de Subject: [RFC 1/7] ARM: vf610: add low level debug support for !MMU Date: Sun, 12 Oct 2014 20:13:55 +0200 Message-Id: <331b5f06d72890ac348adcd8cce616db576eb10e.1413136383.git.stefan@agner.ch> X-Mailer: git-send-email 2.1.2 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141012_111439_273612_ABAF1B5A X-CRM114-Status: UNSURE ( 8.23 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) Cc: devicetree@vger.kernel.org, linux@arm.linux.org.uk, arnd@arndb.de, Stefan Agner , marcel@ziswiler.com, olof@lixom.net, 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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 Add support for !MMU low level debug required for the secondary Cortex-M4 core in Vybrid. Signed-off-by: Stefan Agner --- arch/arm/include/debug/vf.S | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/include/debug/vf.S b/arch/arm/include/debug/vf.S index b889338..63c7ef7 100644 --- a/arch/arm/include/debug/vf.S +++ b/arch/arm/include/debug/vf.S @@ -17,12 +17,22 @@ #define VF_UART_VIRTUAL_BASE 0xfe000000 +#ifdef CONFIG_MMU + .macro addruart, rp, rv, tmp ldr \rp, =VF_UART_PHYSICAL_BASE @ physical and \rv, \rp, #0xffffff @ offset within 16MB section add \rv, \rv, #VF_UART_VIRTUAL_BASE .endm +#else /* !CONFIG_MMU */ + + .macro addruart, rx, tmp + ldr \rx, =(VF_UART_PHYSICAL_BASE) @ physical + .endm + +#endif /* CONFIG_MMU */ + .macro senduart, rd, rx strb \rd, [\rx, #0x7] @ Data Register .endm