public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>,
	"Boris Brezillon" <boris.brezillon@free-electrons.com>
Subject: Re: [PATCH] ARM: at91: debug: fix non MMU debug
Date: Thu, 5 Mar 2015 10:58:27 +0100	[thread overview]
Message-ID: <54F828C3.6090901@atmel.com> (raw)
In-Reply-To: <1425480087-31097-1-git-send-email-alexandre.belloni@free-electrons.com>

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 <alexandre.belloni@free-electrons.com>

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
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

      reply	other threads:[~2015-03-05  9:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-04 14:41 [PATCH] ARM: at91: debug: fix non MMU debug Alexandre Belloni
2015-03-05  9:58 ` Nicolas Ferre [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54F828C3.6090901@atmel.com \
    --to=nicolas.ferre@atmel.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=plagnioj@jcrosoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox