All of lore.kernel.org
 help / color / mirror / Atom feed
From: york sun <york.sun@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5][v2] armv8: fsl-layerscape : Check SVR for initializing TZASC
Date: Mon, 24 Oct 2016 17:27:50 +0000	[thread overview]
Message-ID: <AM4PR0401MB1732679CDEB9C979CB4CDCB49AA90@AM4PR0401MB1732.eurprd04.prod.outlook.com> (raw)
In-Reply-To: 1477297710-7581-4-git-send-email-priyanka.jain@nxp.com

On 10/24/2016 01:33 AM, Priyanka Jain wrote:
> LS2080 SoC and its personalities does not support TZASC
> But other new SoCs like LS2088A, LS1088A supports TASC
>
> Hence, skip initializing TZASC for Ls2080A based on SVR
>
> Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
> ---
>  arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S       |   19 ++++++++++++++++++-
>  .../include/asm/arch-fsl-layerscape/immap_lsch3.h  |    4 ++++
>  arch/arm/include/asm/arch-fsl-layerscape/soc.h     |    6 ++++++
>  3 files changed, 28 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S b/arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S
> index 3274cad..82b7696 100644
> --- a/arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S
> +++ b/arch/arm/cpu/armv8/fsl-layerscape/lowlevel.S
> @@ -10,6 +10,8 @@
>  #include <linux/linkage.h>
>  #include <asm/gic.h>
>  #include <asm/macro.h>
> +#include <asm/arch-fsl-layerscape/immap_lsch3.h>
> +#include <asm/arch-fsl-layerscape/soc.h>
>  #ifdef CONFIG_MP
>  #include <asm/arch/mp.h>
>  #endif
> @@ -137,6 +139,15 @@ ENTRY(lowlevel_init)
>  #endif
>
>  #ifdef CONFIG_FSL_TZASC_400
> +	bl	svr_dev_id		/* get high 16 bits of SVR */
> +	/*
> +	 * LS2080 and its personalities does not support TZASC
> +	 * So skip TZASC related operations
> +	 */
> +	ldr	x1, =SVR_DEV_LS2080A
> +	cmp	x0, x1

It will be better to consolidate the get_svr() function to implemente in 
assembly code.

> +	b.eq	1f
> +

Please clarify, before this patch the code runs through this section for 
LS2080A but actually it has no effect, correct?

York

  reply	other threads:[~2016-10-24 17:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-24  8:28 [U-Boot] [PATCH 0/5][v2] Update LS2080A SoC code to support LS2088A SoC Priyanka Jain
2016-10-24  8:28 ` [U-Boot] [PATCH 1/5][v2] armv8: lsch3: Use SVR based timer base address detection Priyanka Jain
2016-10-24  8:28 ` [U-Boot] [PATCH 2/5][v2] armv8: fsl-layerscape: Update TZASC registers type Priyanka Jain
2016-10-24  8:28 ` [U-Boot] [PATCH 3/5][v2] armv8: fsl-layerscape : Check SVR for initializing TZASC Priyanka Jain
2016-10-24 17:27   ` york sun [this message]
     [not found]   ` <0271f0b3-27f4-76a0-01f2-aad2bab038a8@nxp.com>
2016-10-24 17:30     ` york sun
2016-10-24  8:28 ` [U-Boot] [PATCH 4/5][v2] armv8: fsl-layerscape: Add NXP LS2088A SoC support Priyanka Jain
2016-10-24 17:35   ` york sun
2016-10-24  8:28 ` [U-Boot] [PATCH 5/5][v2] armv8/fsl-lsch3: Update code to release secondary cores Priyanka Jain
2016-10-24 15:33   ` york sun
2016-10-24 15:49   ` york sun
     [not found]   ` <8dd867f8-beea-1a14-0b3d-8cfd3f489a67@nxp.com>
2016-10-24 19:07     ` york sun
2016-10-25 10:33       ` Priyanka Jain
2016-10-24 19:02 ` [U-Boot] [PATCH 0/5][v2] Update LS2080A SoC code to support LS2088A SoC york sun
2016-10-25 10:36   ` Priyanka Jain
2017-01-25 19:03     ` york sun

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=AM4PR0401MB1732679CDEB9C979CB4CDCB49AA90@AM4PR0401MB1732.eurprd04.prod.outlook.com \
    --to=york.sun@nxp.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.