| 1 |
/* SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 |
* |
| 3 |
* C preprocessor macros for t600x multi die support. |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef __DTS_APPLE_MULTI_DIE_CPP_H |
| 7 |
#define __DTS_APPLE_MULTI_DIE_CPP_H |
| 8 |
|
| 9 |
#ifndef __stringify |
| 10 |
#define __stringify_1(x...) #x |
| 11 |
#define __stringify(x...) __stringify_1(x) |
| 12 |
#endif |
| 13 |
|
| 14 |
#ifndef __concat |
| 15 |
#define __concat_1(x, y...) x ## y |
| 16 |
#define __concat(x, y...) __concat_1(x, y) |
| 17 |
#endif |
| 18 |
|
| 19 |
#define DIE_NODE(a) __concat(a, DIE) |
| 20 |
#define DIE_LABEL(a) __stringify(__concat(a, DIE)) |
| 21 |
|
| 22 |
#endif /* !__DTS_APPLE_MULTI_DIE_CPP_H */ |