dts: common: add DT_SIZE_G macro

add DT_SIZE_G macro

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß
2025-09-22 15:24:31 +02:00
committed by Chris Friedt
parent 01ecd1ade5
commit 6838e0cb5e

View File

@@ -9,6 +9,7 @@
#define DT_SIZE_K(x) ((x) * 1024)
#define DT_SIZE_M(x) (DT_SIZE_K(x) * 1024)
#define DT_SIZE_G(x) (DT_SIZE_M(x) * 1024)
/* concatenate the values of the arguments into one */
#define _DT_DO_CONCAT(x, y) x ## y