32 bit System Version Register (SVR) in NXP SOCs contains information about SOC such as: 1. SOC type (bits 8 - 31) 2. SOC Major Revision (bits 4 - 7) 3. SOC Minor Revision (bits 0 - 3)
This Macro (SVR_DEV) strips the Major and Minor revision info, so that SOC can be correctly identified. This Macro is borrowed from Macro defined in arch/arm/include/asm/arch-fsl-layerscape/soc.h Additinally this file doesn't contain any valid license. Therefore, add GPLv2+ license in the file. same as arch/arm/include/asm/arch-fsl-layerscape/soc.h Signed-off-by: Pankaj Bansal <[email protected]> --- arch/arm/include/asm/arch-ls102xa/soc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/include/asm/arch-ls102xa/soc.h b/arch/arm/include/asm/arch-ls102xa/soc.h index e69de29bb2..672f126bba 100644 --- a/arch/arm/include/asm/arch-ls102xa/soc.h +++ b/arch/arm/include/asm/arch-ls102xa/soc.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2019 NXP + */ +#define SVR_DEV(svr) ((svr) >> 8) + -- 2.17.1 _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

