blob: 9e84d3bc09f72d841812d787acb2e7f9d83a8fb5 [file] [log] [blame]
# Nordic Semiconductor nRF54L MCU line
# Copyright (c) 2024 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_NRF54LX
rsource "Kconfig.defconfig.nrf54l*"
if ARM
config CORTEX_M_SYSTICK
default !NRF_GRTC_TIMER
# Start SYSCOUNTER on driver init
config NRF_GRTC_START_SYSCOUNTER
default NRF_GRTC_TIMER
config CACHE_NRF_CACHE
default y if EXTERNAL_CACHE
config CACHE_MANAGEMENT
default y
choice CACHE_TYPE
default EXTERNAL_CACHE
endchoice
# MPU-based null-pointer dereferencing detection cannot
# be applied as the (0x0 - 0x400) is unmapped for this target.
choice NULL_POINTER_EXCEPTION_DETECTION
default NULL_POINTER_EXCEPTION_DETECTION_NONE
endchoice
endif # ARM
if RISCV
DT_CHOSEN_Z_SRAM = zephyr,sram
DT_CHOSEN_Z_CODE = zephyr,code-partition
config BUILD_OUTPUT_ADJUST_LMA
depends on !XIP
default "$(dt_chosen_partition_addr_hex,$(DT_CHOSEN_Z_CODE)) - \
$(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_SRAM))"
endif # RISCV
config SYS_CLOCK_HW_CYCLES_PER_SEC
default $(dt_nodelabel_int_prop,grtc,clock-frequency) if NRF_GRTC_TIMER
endif # SOC_SERIES_NRF54LX