1 /*
2  * Copyright (c) 2018 Linaro Limited
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_DTS_COMMON_MEM_H_
8 #define ZEPHYR_DTS_COMMON_MEM_H_
9 
10 #define DT_SIZE_K(x) ((x) * 1024)
11 #define DT_SIZE_M(x) (DT_SIZE_K(x) * 1024)
12 
13 /* concatenate the values of the arguments into one */
14 #define _DT_DO_CONCAT(x, y) x ## y
15 
16 #define DT_ADDR(a) _DT_DO_CONCAT(0x, a)
17 
18 #endif /* ZEPHYR_DTS_COMMON_MEM_H_ */
19