Skip to content

Commit

Permalink
subsys, nrf_security: add nrf92 devices to security and cracen config
Browse files Browse the repository at this point in the history
Ref: NRFX-6678

Signed-off-by: Aymen LAOUINI <[email protected]>
  • Loading branch information
ayla-nordicsemi committed Jan 9, 2025
1 parent 315b706 commit da33b03
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion subsys/nrf_security/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ config NRF_SECURITY
depends on SOC_FAMILY_NORDIC_NRF
default y if BUILD_WITH_TFM
# entropy is provided by PSA and NRF_SECURITY on NRF54LX
default y if ENTROPY_PSA_CRYPTO_RNG && SOC_SERIES_NRF54LX
default y if ENTROPY_PSA_CRYPTO_RNG && (SOC_SERIES_NRF54LX || SOC_SERIES_NRF92X)
select DISABLE_MBEDTLS_BUILTIN if MBEDTLS
# NCS does not use TF-M's BL2 bootloader, but uses it's own fork
# of MCUBoot instead (CONFIG_BOOTLOADER_MCUBOOT).
Expand All @@ -58,6 +58,7 @@ if NRF_SECURITY

config MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS
bool
default y if SOC_SERIES_NRF92X && (SOC_NRF9280_CPUSEC || SOC_NRF9230_CPUSEC)
default y if SOC_SERIES_NRF54LX && PSA_CRYPTO_DRIVER_CRACEN
default y if SOC_SERIES_NRF54HX && SOC_NRF54H20_CPUSEC
help
Expand Down
5 changes: 3 additions & 2 deletions subsys/nrf_security/src/drivers/cracen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

config CRACEN_HW_PRESENT
def_bool SOC_SERIES_NRF54LX
def_bool (SOC_SERIES_NRF54LX || SOC_SERIES_NRF92X)

# Configure CRACEN_LOG_LEVEL
module = CRACEN
Expand All @@ -16,7 +16,8 @@ if PSA_CRYPTO_DRIVER_CRACEN

config CRACEN_LOAD_MICROCODE
bool "Load CRACEN microcode"
depends on (SOC_SERIES_NRF54LX && !SOC_NRF54L20) || SOC_SERIES_NRF54HX
depends on (SOC_SERIES_NRF54LX && !SOC_NRF54L20) || SOC_SERIES_NRF54HX || \
(SOC_SERIES_NRF92X && (SOC_NRF9280_CPUSEC || SOC_NRF9230_CPUSEC))
default y
help
Prompt-less configuration to load the CRACEN microcode.
Expand Down
4 changes: 3 additions & 1 deletion subsys/nrf_security/src/drivers/cracen/psa_driver.Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1857,7 +1857,9 @@ config PSA_NEED_CRACEN_PLATFORM_KEYS
default y
depends on PSA_WANT_ALG_GCM
depends on PSA_WANT_AES_KEY_SIZE_256
depends on SOC_NRF54H20_CPUSEC
depends on SOC_NRF54H20_CPUSEC || \
SOC_NRF9280_CPUSEC || \
SOC_NRF9230_CPUSEC


endmenu
2 changes: 1 addition & 1 deletion subsys/sdfw_services/services/psa_crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

service_name = PSA_CRYPTO
service_default_enabled = n
service_default_enabled = y
service_id = 0x71
service_version = 1
service_buffer_size = 128
Expand Down

0 comments on commit da33b03

Please sign in to comment.