Skip to content

Commit 6838e0c

Browse files
maass-hamburgcfriedt
authored andcommitted
dts: common: add DT_SIZE_G macro
add DT_SIZE_G macro Signed-off-by: Fin Maaß <[email protected]>
1 parent 01ecd1a commit 6838e0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dts/common/mem.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#define DT_SIZE_K(x) ((x) * 1024)
1111
#define DT_SIZE_M(x) (DT_SIZE_K(x) * 1024)
12+
#define DT_SIZE_G(x) (DT_SIZE_M(x) * 1024)
1213

1314
/* concatenate the values of the arguments into one */
1415
#define _DT_DO_CONCAT(x, y) x ## y

0 commit comments

Comments
 (0)