Skip to content

Commit cf0edf2

Browse files
tomi-fontendre-nordic
authored andcommitted
nrf_security: drivers: cracen: add CRACEN HW version Kconfig options
Introduce the CRACEN_HW_VERSION Kconfig choice to indicate what CRACEN IP is present. Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 59dbc78 commit cf0edf2

File tree

1 file changed

+8
-6
lines changed
  • subsys/nrf_security/src/drivers/cracen

1 file changed

+8
-6
lines changed

subsys/nrf_security/src/drivers/cracen/Kconfig

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,25 @@
77
config CRACEN_HW_PRESENT
88
def_bool SOC_SERIES_NRF54LX || SOC_SERIES_NRF92X
99

10+
config CRACEN_HW_VERSION_BASE
11+
def_bool SOC_SERIES_NRF54HX || SOC_NRF54L15 || SOC_NRF54L10 || SOC_NRF54L05
12+
13+
config CRACEN_HW_VERSION_LITE
14+
def_bool SOC_NRF54L20
15+
1016
# Configure CRACEN_LOG_LEVEL
1117
module = CRACEN
1218
module-str = CRACEN
1319
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
1420

1521
if PSA_CRYPTO_DRIVER_CRACEN
1622

17-
config SUPPORTS_CRACEN
18-
bool
19-
default y if (SOC_SERIES_NRF54LX && !SOC_NRF54L20) || SOC_SERIES_NRF54HX
20-
2123
config CRACEN_LOAD_MICROCODE
2224
bool "Load CRACEN microcode"
23-
depends on SUPPORTS_CRACEN
25+
depends on CRACEN_HW_VERSION_BASE
2426
default y
2527
help
26-
Prompt-less configuration to load the CRACEN microcode.
28+
Whether to load the CRACEN microcode on startup.
2729
This is required to use the PKE/IKG engine. Note that this is not
2830
required when a bootloader has already loaded the microcode.
2931

0 commit comments

Comments
 (0)