1# Copyright (c) 2024 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4config BOARD_NRF52_BSIM
5	bool
6	select SOC_SERIES_BSIM_NRF52X
7	select SOC_COMPATIBLE_NRF52833
8	select NRF_RTC_TIMER
9	select CLOCK_CONTROL
10	help
11	  NRF52 simulation model
12	  Will produce a console Linux process which can be executed natively.
13	  It needs the BabbleSim simulator both in compile time and to execute
14
15config BOARD_NRF5340BSIM_NRF5340_CPUNET
16	bool
17	select SOC_SERIES_BSIM_NRF53X
18	select SOC_COMPATIBLE_NRF5340_CPUNET
19	select NRF_RTC_TIMER
20	select CLOCK_CONTROL
21	help
22	  Simulated NRF53 Network core
23	  Will produce a console Linux process which can be executed natively.
24	  It needs the BabbleSim simulator both in compile time and to execute
25
26config BOARD_NRF5340BSIM_NRF5340_CPUAPP
27	bool
28	select SOC_SERIES_BSIM_NRF53X
29	select SOC_COMPATIBLE_NRF5340_CPUAPP
30	select NRF_RTC_TIMER
31	select CLOCK_CONTROL
32	help
33	  Simulated NRF53 Application core
34	  Will produce a console Linux process which can be executed natively.
35	  It needs the BabbleSim simulator both in compile time and to execute
36
37config BOARD_NRF54L15BSIM_NRF54L15_CPUAPP
38	bool
39	select SOC_SERIES_BSIM_NRF54LX
40	select SOC_COMPATIBLE_NRF54L15
41	select SOC_COMPATIBLE_NRF54L15_CPUAPP
42	select CLOCK_CONTROL
43	help
44	  Simulated NRF54L15 Application core
45	  Will produce a console Linux process which can be executed natively.
46	  It needs the BabbleSim simulator both in compile time and to execute
47
48
49if SOC_SERIES_BSIM_NRFXX
50
51# The following file is normally parsed only for the ARM architecture, which is
52# used by Nordic SoCs, so to make the symbols defined in this file available for
53# the simulated nrf5x_bsim boards, which use the POSIX architecture, the file
54# must be read also from here.
55source "soc/nordic/common/Kconfig.peripherals"
56
57source "boards/native/common/extra_args/Kconfig"
58
59endif # SOC_SERIES_BSIM_NRFXX
60
61
62# This would eventually be shared by a possible family of simulated NRF boards
63# which use BabbleSim. When that happens, we can move this to a common
64# Kconfig file
65
66config SOC_SERIES_BSIM_NRFXX
67	bool
68	select NATIVE_LIBRARY
69	select SOC_COMPATIBLE_NRF
70	select HAS_NRFX
71	select HAS_NORDIC_DRIVERS
72	select PINCTRL_DYNAMIC if PINCTRL
73	help
74	  Any NRF simulated SOC with BabbleSim, based on the POSIX arch
75
76config SOC_SERIES_BSIM_NRF52X
77	bool
78	select SOC_SERIES_BSIM_NRFXX
79	select SOC_COMPATIBLE_NRF52X
80	help
81	  Any NRF52 simulated SOC with BabbleSim, based on the POSIX arch
82
83config SOC_SERIES_BSIM_NRF53X
84	bool
85	select SOC_SERIES_BSIM_NRFXX
86	select SOC_COMPATIBLE_NRF53X
87	help
88	  Any NRF53 simulated SOC with BabbleSim, based on the POSIX arch
89
90config SOC_SERIES_BSIM_NRF54LX
91	bool
92	select SOC_SERIES_BSIM_NRFXX
93	select SOC_COMPATIBLE_NRF54LX
94	help
95	  Any NRF54L simulated SOC with BabbleSim, based on the POSIX arch
96
97if SOC_SERIES_BSIM_NRF53X
98
99# Let's reuse the RTC sync options so applications which use it can be reused as is
100source "soc/nordic/nrf53/Kconfig.sync_rtc"
101
102endif # SOC_SERIES_BSIM_NRF53X
103