public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm: dcc: Add uart dcc support for armv8
Date: Thu, 2 Jul 2015 23:24:45 +0200	[thread overview]
Message-ID: <20150702232445.5ca107c6@lilith> (raw)
In-Reply-To: <87530b419c82cc2fad1b51b74bb35971a66108e3.1432886072.git.michal.simek@xilinx.com>

Hello Michal,

On Fri, 29 May 2015 09:54:37 +0200, Michal Simek <michal.simek@xilinx.com> wrote:
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
> 
> Added UART DCC support for armv8
> 
> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
> 
> Not sure if CONFIG_CPU_ARMV8 is the right symbol but we are following
> pattern above. Maybe CONFIG_ARM64?
> 
> ---
>  drivers/serial/arm_dcc.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c
> index e77773740fb0..df7eb05e8246 100644
> --- a/drivers/serial/arm_dcc.c
> +++ b/drivers/serial/arm_dcc.c
> @@ -61,6 +61,22 @@
>  #define status_dcc(x)	\
>  		__asm__ volatile ("mrc p14, 0, %0, c14, c0, 0\n" : "=r" (x))
>  
> +#elif defined(CONFIG_CPU_ARMV8)
> +/*
> + * ARMV8
> + */
> +#define DCC_RBIT	(1 << 30)
> +#define DCC_WBIT	(1 << 29)
> +
> +#define write_dcc(x)   \
> +		__asm__ volatile ("msr dbgdtrtx_el0, %0\n" : : "r" (x))
> +
> +#define read_dcc(x)    \
> +		__asm__ volatile ("mrs %0, dbgdtrrx_el0\n" : "=r" (x))
> +
> +#define status_dcc(x)  \
> +		__asm__ volatile ("mrs %0, mdccsr_el0\n" : "=r" (x))
> +
>  #else
>  #define DCC_RBIT	(1 << 0)
>  #define DCC_WBIT	(1 << 1)
> -- 
> 2.3.5
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

Applied to u-boot-arm/master, thanks!

Amicalement,
-- 
Albert.

      parent reply	other threads:[~2015-07-02 21:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-29  7:54 [U-Boot] [PATCH] arm: dcc: Add uart dcc support for armv8 Michal Simek
2015-06-02 16:02 ` Tom Rini
2015-07-02 21:24 ` Albert ARIBAUD [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=20150702232445.5ca107c6@lilith \
    --to=albert.u.boot@aribaud.net \
    --cc=u-boot@lists.denx.de \
    /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