]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
xilinx: zynqmp: Reuse shift macros to define masks
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Mon, 20 Jun 2022 16:36:40 +0000 (18:36 +0200)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:37:27 +0000 (14:37 +0200)
Reuse the shift macros to define the masks.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Link: https://lore.kernel.org/r/20220620163650.18756-5-stefan.herbrechtsmeier-oss@weidmueller.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
board/xilinx/zynqmp/zynqmp.c

index 1a7383d02302992f58a184c5db562c64a2e9fed9..56bb01335d6a9ee09700e6514ddc2a128a38f55f 100644 (file)
 #include "pm_cfg_obj.h"
 
 #define ZYNQMP_VERSION_SIZE    7
-#define EFUSE_VCU_DIS_MASK     0x100
 #define EFUSE_VCU_DIS_SHIFT    8
-#define EFUSE_GPU_DIS_MASK     0x20
+#define EFUSE_VCU_DIS_MASK     BIT(EFUSE_VCU_DIS_SHIFT)
 #define EFUSE_GPU_DIS_SHIFT    5
+#define EFUSE_GPU_DIS_MASK     BIT(EFUSE_GPU_DIS_SHIFT)
 #define IDCODE_DEV_TYPE_MASK   GENMASK(27, 0)
-#define IDCODE2_PL_INIT_MASK   0x200
 #define IDCODE2_PL_INIT_SHIFT  9
+#define IDCODE2_PL_INIT_MASK   BIT(IDCODE2_PL_INIT_SHIFT)
 
 DECLARE_GLOBAL_DATA_PTR;