From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932188AbbCEJ6a (ORCPT ); Thu, 5 Mar 2015 04:58:30 -0500 Received: from eusmtp01.atmel.com ([212.144.249.242]:23706 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932108AbbCEJ62 (ORCPT ); Thu, 5 Mar 2015 04:58:28 -0500 Message-ID: <54F828C3.6090901@atmel.com> Date: Thu, 5 Mar 2015 10:58:27 +0100 From: Nicolas Ferre Organization: atmel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Alexandre Belloni CC: Jean-Christophe Plagniol-Villard , , , "Boris Brezillon" Subject: Re: [PATCH] ARM: at91: debug: fix non MMU debug References: <1425480087-31097-1-git-send-email-alexandre.belloni@free-electrons.com> In-Reply-To: <1425480087-31097-1-git-send-email-alexandre.belloni@free-electrons.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.161.30.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 04/03/2015 15:41, Alexandre Belloni a écrit : > Linux may be used without MMU on atmel SoCs, fix debug in this configuration. > > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre and stacked on top of at91-4.0-fixes. Thanks! > --- > arch/arm/include/debug/at91.S | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/include/debug/at91.S b/arch/arm/include/debug/at91.S > index 80a6501b4d50..c3c45e628e33 100644 > --- a/arch/arm/include/debug/at91.S > +++ b/arch/arm/include/debug/at91.S > @@ -18,8 +18,11 @@ > #define AT91_DBGU 0xfc00c000 /* SAMA5D4_BASE_USART3 */ > #endif > > -/* Keep in sync with mach-at91/include/mach/hardware.h */ > +#ifdef CONFIG_MMU > #define AT91_IO_P2V(x) ((x) - 0x01000000) > +#else > +#define AT91_IO_P2V(x) (x) > +#endif > > #define AT91_DBGU_SR (0x14) /* Status Register */ > #define AT91_DBGU_THR (0x1c) /* Transmitter Holding Register */ > -- Nicolas Ferre