1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 /**
7  * This file validates definitions found in dt-bindings headers against their
8  * expected values from MDK, which may be provided in the form of C types.
9  *
10  * Note: all dt-bindings headers which have been included by DTS in this build
11  * are automagically included in this file as well. See CMakeLists.txt.
12  */
13 
14 #include <zephyr/sys/util_macro.h>
15 #include <zephyr/toolchain.h>
16 
17 #include <nrf.h>
18 
19 /**
20  * Domain IDs. See:
21  *   - dt-bindings/misc/nordic-domain-id-nrf54h20.h
22  */
23 #if defined(NRF_DOMAIN_ID_APPLICATION)
24 BUILD_ASSERT(NRF_DOMAIN_ID_APPLICATION == NRF_DOMAIN_APPLICATION);
25 #endif
26 #if defined(NRF_DOMAIN_ID_RADIOCORE)
27 BUILD_ASSERT(NRF_DOMAIN_ID_RADIOCORE == NRF_DOMAIN_RADIOCORE);
28 #endif
29 #if defined(NRF_DOMAIN_ID_GLOBALFAST)
30 BUILD_ASSERT(NRF_DOMAIN_ID_GLOBALFAST == NRF_DOMAIN_GLOBALFAST);
31 #endif
32 #if defined(NRF_DOMAIN_ID_GLOBALSLOW)
33 BUILD_ASSERT(NRF_DOMAIN_ID_GLOBALSLOW == NRF_DOMAIN_GLOBALSLOW);
34 #endif
35 
36 /**
37  * Owner IDs. See:
38  *   - dt-bindings/misc/nordic-owner-id-nrf54h20.h
39  */
40 #if defined(NRF_OWNER_ID_NONE)
41 BUILD_ASSERT(NRF_OWNER_ID_NONE == NRF_OWNER_NONE);
42 #endif
43 #if defined(NRF_OWNER_ID_APPLICATION)
44 BUILD_ASSERT(NRF_OWNER_ID_APPLICATION == NRF_OWNER_APPLICATION);
45 #endif
46 #if defined(NRF_OWNER_ID_RADIOCORE)
47 BUILD_ASSERT(NRF_OWNER_ID_RADIOCORE == NRF_OWNER_RADIOCORE);
48 #endif
49