Skip to content

Commit

Permalink
nrf54l15dk: added placement patches as for nrf54lpdk
Browse files Browse the repository at this point in the history
A few placement changes had been done for nRF54l15pdk, but
were not copied for the DK.
This commit add them for the board.

Signed-off-by: andrzej <[email protected]>
  • Loading branch information
nvlsianpu committed Sep 16, 2024
1 parent 2797c9d commit 8ced0cf
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Kconfig.nrf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ config GETOPT
default n

# Temporary hack to be able to build samples and tests on the nRF51L15 FLPR core
if SOC_NRF54L15_ENGA_CPUFLPR && PARTITION_MANAGER_ENABLED
if (SOC_NRF54L15_ENGA_CPUFLPR || SOC_NRF54L15_CPUFLPR) && PARTITION_MANAGER_ENABLED
config FLASH_BASE_ADDRESS
hex
default 0x0
Expand Down
4 changes: 2 additions & 2 deletions modules/trusted-firmware-m/Kconfig.tfm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ config PM_PARTITION_SIZE_TFM
default 0xFE00 if TFM_PROFILE_TYPE_MINIMAL && TFM_CMAKE_BUILD_TYPE_DEBUG && \
BOOTLOADER_MCUBOOT
default 0x10000 if TFM_PROFILE_TYPE_MINIMAL && TFM_CMAKE_BUILD_TYPE_DEBUG
default 0x6800 if TFM_PROFILE_TYPE_MINIMAL && BOOTLOADER_MCUBOOT && SOC_NRF54L15_ENGA_CPUAPP
default 0x6800 if TFM_PROFILE_TYPE_MINIMAL && BOOTLOADER_MCUBOOT && (SOC_NRF54L15_ENGA_CPUAPP || SOC_NRF54L15_ENGA_CPUAPP)
default 0x7E00 if TFM_PROFILE_TYPE_MINIMAL && BOOTLOADER_MCUBOOT
default 0x8000 if TFM_PROFILE_TYPE_MINIMAL
# NCSDK-13503: Temporarily bump size while regressions are being fixed
default 0x60000 if TFM_REGRESSION_S
default 0x4FE00 if TFM_CMAKE_BUILD_TYPE_DEBUG && BOOTLOADER_MCUBOOT
default 0x50000 if TFM_CMAKE_BUILD_TYPE_DEBUG
default 0x3F800 if BOOTLOADER_MCUBOOT && SOC_NRF54L15_ENGA_CPUAPP
default 0x3F800 if BOOTLOADER_MCUBOOT && (SOC_NRF54L15_ENGA_CPUAPP || SOC_NRF54L15_ENGA_CPUAPP)
default 0x3FE00 if BOOTLOADER_MCUBOOT
default 0x40000
help
Expand Down
2 changes: 1 addition & 1 deletion subsys/partition_manager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ if (CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_FLASH)
ncs_add_partition_manager_config(pm.yml.modem_trace)
endif()

if (CONFIG_SOC_NRF54L15_ENGA_CPUFLPR)
if (CONFIG_SOC_NRF54L15_ENGA_CPUFLPR OR SOC_NRF54L15_ENGA_CPUFLPR)
ncs_add_partition_manager_config(pm.yml.vpr_launcher)
endif()

Expand Down
4 changes: 3 additions & 1 deletion subsys/partition_manager/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ rsource "Kconfig.template.partition_config"
rsource "Kconfig.template.partition_region"
endif

if SOC_NRF54L15_ENGA_CPUFLPR
if SOC_NRF54L15_ENGA_CPUFLPR || SOC_NRF54L15_CPUFLPR
config PM_PARTITION_SIZE_VPR_LAUNCHER
hex
default $(dt_node_reg_addr_hex,/soc/rram-controller@5004b000/rram@165000)
Expand Down Expand Up @@ -235,12 +235,14 @@ config PM_SRAM_BASE
hex
default $(dt_node_reg_addr_hex,/soc/memory@21000000) if SOC_NRF5340_CPUNET
default 0x20000000 if SOC_NRF54L15_ENGA_CPUFLPR # Because the cpuapp_sram DT node is deleted in nrf54l15_cpuflpr.dtsi
default 0x20000000 if SOC_NRF54L15_CPUFLPR # Because the cpuapp_sram DT node is deleted in nrf54l15_cpuflpr.dtsi
default $(dt_node_reg_addr_hex,/soc/memory@20000000)

config PM_SRAM_SIZE
hex
default $(dt_node_reg_size_hex,/soc/memory@21000000) if SOC_NRF5340_CPUNET
default 0x40000 if SOC_NRF54L15_ENGA_CPUFLPR # Because the cpuapp_rram DT node is deleted in nrf54l15_cpuflpr.dtsi
default 0x40000 if SOC_NRF54L15_CPUFLPR # Because the cpuapp_rram DT node is deleted in nrf54l15_cpuflpr.dtsi
default $(dt_node_reg_size_hex,/soc/memory@20000000)

endmenu # Partition Manager
4 changes: 2 additions & 2 deletions subsys/partition_manager/pm.yml.nvs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# In nRF54L15 we place the TF-M non-secure storage partitions after the
# TF-M non-secure application to avoid splitting the secure/non-secure
# partitions more than necessary.
#ifdef CONFIG_SOC_NRF54L15_ENGA_CPUAPP
#ifdef (CONFIG_SOC_NRF54L15_ENGA_CPUAPP || CONFIG_SOC_NRF54L15_CPUAPP)
nvs_storage:
placement:
after: [app]
Expand All @@ -30,4 +30,4 @@ nvs_storage:
#endif
size: CONFIG_PM_PARTITION_SIZE_NVS_STORAGE

#endif /* CONFIG_SOC_NRF54L15_ENGA_CPUAPP */
#endif /* (CONFIG_SOC_NRF54L15_ENGA_CPUAPP || CONFIG_SOC_NRF54L15_CPUAPP) */
4 changes: 2 additions & 2 deletions subsys/partition_manager/pm.yml.settings
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# In nRF54L15 we place the TF-M non-secure storage partitions after the
# TF-M non-secure application to avoid splitting the secure/non-secure
# partitions more than necessary.
#ifdef CONFIG_SOC_NRF54L15_ENGA_CPUAPP
#ifdef (CONFIG_SOC_NRF54L15_ENGA_CPUAPP || CONFIG_SOC_NRF54L15_CPUAPP)
settings_storage:
placement:
after: [app]
Expand All @@ -27,4 +27,4 @@ settings_storage:
#endif
size: CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE

#endif /* CONFIG_SOC_NRF54L15_ENGA_CPUAPP */
#endif /* (CONFIG_SOC_NRF54L15_ENGA_CPUAPP || CONFIG_SOC_NRF54L15_CPUAPP)) */
4 changes: 2 additions & 2 deletions subsys/partition_manager/pm.yml.tfm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tfm_storage:
# In nRF54L15 we place the tfm_storage partitions before the
# TF-M non-secure application to avoid splitting the secure/non-secure
# partitions more than necessary.
#ifdef CONFIG_SOC_NRF54L15_ENGA_CPUAPP
#ifdef (CONFIG_SOC_NRF54L15_ENGA_CPUAPP || CONFIG_SOC_NRF54L15_CPUAPP)

tfm_ps:
placement:
Expand Down Expand Up @@ -81,7 +81,7 @@ tfm_otp_nv_counters:
inside: tfm_storage
size: CONFIG_PM_PARTITION_SIZE_TFM_OTP_NV_COUNTERS

#endif /* CONFIG_SOC_NRF54L15_ENGA_CPUAPP */
#endif /* (CONFIG_SOC_NRF54L15_ENGA_CPUAPP || CONFIG_SOC_NRF54L15_CPUAPP)*/

#endif /* CONFIG_PM_PARTITION_TFM_STORAGE */

Expand Down
2 changes: 1 addition & 1 deletion sysbuild/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if PARTITION_MANAGER

config PM_MCUBOOT_PAD
hex "Memory reserved for MCUBOOT_PAD"
default 0x800 if BOARD_NRF54L15PDK_NRF54L15_CPUAPP
default 0x800 if SOC_SERIES_NRF54LX
default 0x200
depends on BOOTLOADER_MCUBOOT
help
Expand Down

0 comments on commit 8ced0cf

Please sign in to comment.