1# Nordic Semiconductor nRF54L MCU line
2
3# Copyright (c) 2024 Nordic Semiconductor ASA
4# SPDX-License-Identifier: Apache-2.0
5
6if SOC_SERIES_NRF54LX
7
8rsource "Kconfig.defconfig.nrf54l*"
9
10if ARM
11
12config CORTEX_M_SYSTICK
13	default !NRF_GRTC_TIMER
14
15# Start SYSCOUNTER on driver init
16config NRF_GRTC_START_SYSCOUNTER
17	default NRF_GRTC_TIMER
18
19config CACHE_NRF_CACHE
20	default y if EXTERNAL_CACHE
21
22config CACHE_MANAGEMENT
23	default y
24
25choice CACHE_TYPE
26	default EXTERNAL_CACHE
27endchoice
28
29# MPU-based null-pointer dereferencing detection cannot
30# be applied as the (0x0 - 0x400) is unmapped for this target.
31choice NULL_POINTER_EXCEPTION_DETECTION
32	default NULL_POINTER_EXCEPTION_DETECTION_NONE
33endchoice
34
35endif # ARM
36
37if RISCV
38
39DT_CHOSEN_Z_SRAM = zephyr,sram
40DT_CHOSEN_Z_CODE = zephyr,code-partition
41
42config BUILD_OUTPUT_ADJUST_LMA
43	depends on !XIP
44	default "$(dt_chosen_partition_addr_hex,$(DT_CHOSEN_Z_CODE)) - \
45		 $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_SRAM))"
46
47endif # RISCV
48
49endif # SOC_SERIES_NRF54LX
50