1# Kinetis KWx series configuration options
2
3# Copyright 2024 NXP
4# SPDX-License-Identifier: Apache-2.0
5
6if SOC_SERIES_KINETIS_KWX
7
8config NUM_IRQS
9	default 65 if SOC_MKW22D5 || SOC_MKW24D5
10	default 32 if SOC_MKW40Z4 || SOC_MKW41Z4
11
12config SPI
13	default y if SOC_MKW22D5 || SOC_MKW24D5
14
15config NET_L2_IEEE802154
16	default y if !NET_L2_OPENTHREAD && SOC_MKW41Z4
17
18if SOC_MKW40Z4 || SOC_MKW41Z4
19
20choice CSPRNG_GENERATOR_CHOICE
21	default CTR_DRBG_CSPRNG_GENERATOR
22endchoice
23
24choice RNG_GENERATOR_CHOICE
25	default XOSHIRO_RANDOM_GENERATOR
26endchoice
27
28# The flash option register (FOPT) boot options
29# 1111 1011 - Set NMI pin/interrupts to disabled.
30config KINETIS_FLASH_CONFIG_FOPT
31	default 0xFB
32	depends on KINETIS_FLASH_CONFIG
33
34endif # SOC_MKW40Z4 || SOC_MKW41Z4
35
36if SOC_MKW22D5 || SOC_MKW24D5
37
38# The flash option register (FOPT) boot options
39# 1111 1001 - Set NMI pin/interrupts and EzPort reset default to disabled
40config KINETIS_FLASH_CONFIG_FOPT
41	default 0xF9
42	depends on KINETIS_FLASH_CONFIG
43
44endif # SOC_MKW22D5 || SOC_MKW24D5
45
46endif # SOC_SERIES_KINETIS_KWX
47