public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Wasim Khan (OSS)" <wasim.khan@oss.nxp.com>
To: Leif Lindholm <leif@nuviainc.com>,
	"Wasim Khan (OSS)" <wasim.khan@oss.nxp.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>,
	Varun Sethi <V.Sethi@nxp.com>,
	"ard.biesheuvel@arm.com" <ard.biesheuvel@arm.com>
Subject: Re: [PATCH edk2-platforms 2/8] Silicon/NXP: Chassis2: define SVR macros
Date: Thu, 18 Jun 2020 09:59:28 +0000	[thread overview]
Message-ID: <VE1PR04MB67021FB9FE2790EA67F3287D909B0@VE1PR04MB6702.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <20200617145408.GQ6739@vanye>



> -----Original Message-----
> From: Leif Lindholm <leif@nuviainc.com>
> Sent: Wednesday, June 17, 2020 8:24 PM
> To: Wasim Khan (OSS) <wasim.khan@oss.nxp.com>
> Cc: devel@edk2.groups.io; Meenakshi Aggarwal
> <meenakshi.aggarwal@nxp.com>; Varun Sethi <V.Sethi@nxp.com>;
> ard.biesheuvel@arm.com; Wasim Khan <wasim.khan@nxp.com>
> Subject: Re: [PATCH edk2-platforms 2/8] Silicon/NXP: Chassis2: define SVR
> macros
> 
> On Wed, Jun 10, 2020 at 02:50:53 +0530, Wasim Khan wrote:
> > From: Wasim Khan <wasim.khan@nxp.com>
> >
> > Define macros to retrieve System Version Register(SVR) related
> > information
> >
> > Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
> > ---
> >  Silicon/NXP/Chassis2/Include/Chassis.h | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/Silicon/NXP/Chassis2/Include/Chassis.h
> > b/Silicon/NXP/Chassis2/Include/Chassis.h
> > index e5edd80134a4..7e8bf224884b 100644
> > --- a/Silicon/NXP/Chassis2/Include/Chassis.h
> > +++ b/Silicon/NXP/Chassis2/Include/Chassis.h
> > @@ -12,6 +12,10 @@
> >
> >  #define  NXP_LAYERSCAPE_CHASSIS2_DCFG_ADDRESS  0x1EE0000
> >
> > +#define SVR_SOC_VER(svr)            (((svr) >> 8) & 0xFFFFFE)
> > +#define SVR_MAJOR(svr)              (((svr) >> 4) & 0xf)
> > +#define SVR_MINOR(svr)              (((svr) >> 0) & 0xf)
> > +
> >  /* SMMU Defintions */
> >  #define SMMU_BASE_ADDR             0x09000000
> >  #define SMMU_REG_SCR0              (SMMU_BASE_ADDR + 0x0)
> 
> These macros are identical between Chassis2 and Chassis3V2, and they also look
> like exactly the sort of thing you want identical across different chassis. Is there
> a common header file they can use?

Thank you Leif for the review. 
These MACROS are chassic specific. Upper 24 bits representation is different in Chassis2 and Chassis3V2 (although not used currently and masked for SVR calculation but we may need it in future). 
SVR representation may further change for future SoC, so we would like to keep them in chassis specific header file.


> 
> (The set is straightforward, I have no other comments on it.)
> 
> /
>     Leif
> 
> > --
> > 2.7.4
> >

  reply	other threads:[~2020-06-18  9:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-09 21:20 [PATCH edk2-platforms 0/8] Silicon/NXP: Add SVR and DEVDISRn configuration Wasim Khan
2020-06-09 21:20 ` [PATCH edk2-platforms 1/8] Silicon/NXP: Chassis2: Add SVR and DEVDISRn device configuration Wasim Khan
2020-06-09 21:20 ` [PATCH edk2-platforms 2/8] Silicon/NXP: Chassis2: define SVR macros Wasim Khan
2020-06-17 14:54   ` Leif Lindholm
2020-06-18  9:59     ` Wasim Khan (OSS) [this message]
2020-06-18 15:28       ` Leif Lindholm
2020-06-09 21:20 ` [PATCH edk2-platforms 3/8] Silicon/NXP: LS1043A: Define SVR for LS1043A SoC Wasim Khan
2020-06-09 21:20 ` [PATCH edk2-platforms 4/8] Silicon/NXP: LS1043A: Add SocGetSvr API Wasim Khan
2020-06-09 21:20 ` [PATCH edk2-platforms 5/8] Silicon/NXP: Chassis3V2: Add SVR and DEVDISRn in device configuration Wasim Khan
2020-06-09 21:20 ` [PATCH edk2-platforms 6/8] Silicon/NXP: Chassis3V2: define SVR macros Wasim Khan
2020-06-09 21:20 ` [PATCH edk2-platforms 7/8] Silicon/NXP: LX2160A: Define SVR for LX2160A SoC Wasim Khan
2020-06-09 21:20 ` [PATCH edk2-platforms 8/8] Silicon/NXP: LX2160A: Add SocGetSvr API Wasim Khan

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-list 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=VE1PR04MB67021FB9FE2790EA67F3287D909B0@VE1PR04MB6702.eurprd04.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /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