diff --git a/drivers/hwinfo/Kconfig b/drivers/hwinfo/Kconfig index 597636f0b8d..bc1d9f40d0f 100644 --- a/drivers/hwinfo/Kconfig +++ b/drivers/hwinfo/Kconfig @@ -32,6 +32,7 @@ config HWINFO_NRF bool "NRF device ID" default y depends on SOC_FAMILY_NRF + depends on NRF_SOC_SECURE_SUPPORTED help Enable Nordic NRF hwinfo driver. diff --git a/soc/arm/nordic_nrf/Kconfig b/soc/arm/nordic_nrf/Kconfig index 2030c98f12f..aefe8ea0061 100644 --- a/soc/arm/nordic_nrf/Kconfig +++ b/soc/arm/nordic_nrf/Kconfig @@ -16,6 +16,14 @@ config SOC_FAMILY source "soc/arm/nordic_nrf/Kconfig.peripherals" source "soc/arm/nordic_nrf/*/Kconfig.soc" +config NRF_SOC_SECURE_SUPPORTED + def_bool !TRUSTED_EXECUTION_NONSECURE || BUILD_WITH_TFM + help + Hidden function to indicate that that the soc_secure functions are + available. + The functions are always available when not in non-secure. + For non-secure the functions must redirect to secure services exposed + by the secure firmware. config NRF_MPU_FLASH_REGION_SIZE hex