On Wed, Jun 10, 2020 at 02:50:53 +0530, Wasim Khan wrote: > From: Wasim Khan <wasim.k...@nxp.com> > > Define macros to retrieve System Version Register(SVR) > related information > > Signed-off-by: Wasim Khan <wasim.k...@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? (The set is straightforward, I have no other comments on it.) / Leif > -- > 2.7.4 > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61419): https://edk2.groups.io/g/devel/message/61419 Mute This Topic: https://groups.io/mt/74793024/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-