1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library_sources(soc.c)
4zephyr_include_directories(.)
5
6zephyr_library_sources_ifdef(CONFIG_SOC_NRF53_CPUNET_MGMT nrf53_cpunet_mgmt.c)
7zephyr_library_sources_ifdef(CONFIG_NRF53_SYNC_RTC sync_rtc.c)
8
9if (CONFIG_SOC_NRF53_ANOMALY_160_WORKAROUND_NEEDED AND
10    NOT CONFIG_SYS_CLOCK_EXISTS)
11  message(WARNING "
12    Your application may be affected by the anomaly 160 that concerns the
13    nRF5340 SoC. The related workaround cannot be applied, because your
14    application has the system clock disabled (CONFIG_SYS_CLOCK_EXISTS=n).
15    Consider enabling the system clock to apply the workaround.
16    " "
17    At your own risk, you can suppress this warning by setting
18    CONFIG_SOC_NRF53_ANOMALY_160_WORKAROUND_NEEDED=n.")
19endif()
20