Skip to content

Commit

Permalink
nrf_security: drivers: cracen: add CRACEN HW version Kconfig options
Browse files Browse the repository at this point in the history
Introduce the CRACEN_HW_VERSION Kconfig choice to indicate what CRACEN
IP is present.

Signed-off-by: Tomi Fontanilles <[email protected]>
  • Loading branch information
tomi-font committed Feb 26, 2025
1 parent d0db717 commit 39e941b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions subsys/nrf_security/src/drivers/cracen/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,25 @@
config CRACEN_HW_PRESENT
def_bool SOC_SERIES_NRF54LX || SOC_SERIES_NRF92X

config CRACEN_HW_VERSION_BASE
def_bool SOC_SERIES_NRF54HX || SOC_NRF54L15 || SOC_NRF54L10 || SOC_NRF54L05

config CRACEN_HW_VERSION_LITE
def_bool SOC_NRF54L20

# Configure CRACEN_LOG_LEVEL
module = CRACEN
module-str = CRACEN
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"

if PSA_CRYPTO_DRIVER_CRACEN

config SUPPORTS_CRACEN
bool
default y if (SOC_SERIES_NRF54LX && !SOC_NRF54L20) || SOC_SERIES_NRF54HX

config CRACEN_LOAD_MICROCODE
bool "Load CRACEN microcode"
depends on SUPPORTS_CRACEN
depends on CRACEN_HW_VERSION_BASE
default y
help
Prompt-less configuration to load the CRACEN microcode.
Whether to load the CRACEN microcode on startup.
This is required to use the PKE/IKG engine. Note that this is not
required when a bootloader has already loaded the microcode.

Expand Down

0 comments on commit 39e941b

Please sign in to comment.