File tree Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Expand file tree Collapse file tree 4 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) 2025 Nordic Semiconductor ASA
2+ # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
3+ if (NOT DEFINED NRFX_DIR)
4+ set (NRFX_DIR ${ZEPHYR_CURRENT_MODULE_DIR} /nrfx/ CACHE PATH "nrfx Directory" )
5+ endif ()
6+
7+ zephyr_include_directories_ifdef(CONFIG_HAS_NRFX .)
8+ add_subdirectory (${ZEPHYR_BASE} /modules/hal_nordic ${CMAKE_CURRENT_BINARY_DIR} /modules/hal_nordic)
9+ add_subdirectory_ifdef(CONFIG_HAS_NRFX nrfx)
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2025 Nordic Semiconductor ASA
2+ # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
3+
4+ zephyr_library_amend(${ZEPHYR_NRF_MODULE_DIR} )
5+
6+ set (mdk_dir ${NRFX_DIR} /mdk)
7+
8+ # Add definitions for products which are yet to be upstreamed.
9+ zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF7120_ENGA NRF7120_ENGA_XXAA)
10+ zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF7120_ENGA_CPUAPP NRF_APPLICATION)
11+ zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF7120_ENGA_CPUFLPR NRF_FLPR)
12+ zephyr_compile_definitions_ifdef(CONFIG_SOC_COMPATIBLE_NRF7120_ENGA NRF7120_ENGA_XXAA)
13+ zephyr_compile_definitions_ifdef(CONFIG_SOC_COMPATIBLE_NRF7120_ENGA_CPUAPP NRF_APPLICATION)
14+
15+ zephyr_library_sources_ifdef(CONFIG_SOC_NRF7120_ENGA ${mdk_dir} /system_nrf7120_enga.c)
16+
17+ mdk_svd_ifdef(CONFIG_SOC_NRF7120_ENGA_CPUAPP nrf7120_enga_application.svd)
18+ mdk_svd_ifdef(CONFIG_SOC_NRF7120_ENGA_CPUFLPR nrf7120_enga_flpr.svd)
19+
20+ if (CONFIG_SOC_NRF7120_ENGA_CPUAPP)
21+ dt_prop(clock_frequency PATH "/cpus/cpu@0" PROPERTY "clock-frequency" )
22+ math (EXPR clock_frequency_mhz "${clock_frequency} / 1000000" )
23+ zephyr_compile_definitions("NRF_CONFIG_CPU_FREQ_MHZ=${clock_frequency_mhz} " )
24+ endif ()
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2025 Nordic Semiconductor ASA
3+ *
4+ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+ */
6+
7+ #ifndef NRFX_CONFIG_EXT_H__
8+ #define NRFX_CONFIG_EXT_H__
9+
10+ /* Include nrfx_config_nrf*.h for products which are yet to be upstreamed. */
11+
12+ #if (defined(NRF7120_ENGA_XXAA ) && defined(NRF_APPLICATION ))
13+ #include "templates/nrfx_config_nrf7120_enga_application.h"
14+ #elif (defined(NRF7120_ENGA_XXAA )) && defined(NRF_FLPR )
15+ #include "templates/nrfx_config_nrf7120_enga_flpr.h"
16+ #else
17+ #error "Unknown device."
18+ #endif
19+
20+ #endif /* NRFX_CONFIG_EXT_H__ */
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ set(ZEPHYR_AZURE_SDK_FOR_C_KCONFIG ${CMAKE_CURRENT_LIST_DIR}/azure-sdk-for-c/Kco
99set (ZEPHYR_AZURE_SDK_FOR_C_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR} /azure-sdk-for-c)
1010set (ZEPHYR_OPENTHREAD_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR} /openthread)
1111set (ZEPHYR_OPENTHREAD_KCONFIG ${CMAKE_CURRENT_LIST_DIR} /openthread/Kconfig)
12+ set (ZEPHYR_HAL_NORDIC_CMAKE_DIR ${CMAKE_CURRENT_LIST_DIR} /hal_nordic)
1213
1314# Those are modules with Kconfig tree's inside the module repo but where
1415# nRF Connect SDK extend those trees.
You can’t perform that action at this time.
0 commit comments