Skip to content

Commit a8d3be9

Browse files
partition_manager: Add support for nRF54L20 Enga cpuflpr
Introduced default values for symbol CONFIG_SOC_NRF54L20_ENGA_FPUFLPR. Signed-off-by: Michał Stasiak <[email protected]>
1 parent 2a24ce4 commit a8d3be9

File tree

3 files changed

+13
-22
lines changed

3 files changed

+13
-22
lines changed

Kconfig.nrf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,19 @@ config NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE
104104
config GETOPT
105105
default n
106106

107-
# Temporary hack to be able to build samples and tests on the nRF51L15/nRF7120 FLPR core
107+
# Temporary hack to be able to build samples and tests on the nRF51L15/nRF54L20 Eng A/nRF7120 FLPR core
108108
config FLASH_BASE_ADDRESS
109109
hex
110110
depends on PARTITION_MANAGER_ENABLED
111-
depends on SOC_NRF54L15_CPUFLPR || SOC_NRF7120_ENGA_CPUFLPR
112-
default 0x0 if SOC_NRF54L15_CPUFLPR
111+
depends on SOC_NRF54L15_CPUFLPR || SOC_NRF54L20_ENGA_CPUFLPR || SOC_NRF7120_ENGA_CPUFLPR
112+
default 0x0 if SOC_NRF54L15_CPUFLPR || SOC_NRF54L20_ENGA_CPUFLPR
113113
default 0x2C0000 if SOC_NRF7120_ENGA_CPUFLPR
114114

115115
config FLASH_SIZE
116116
int
117117
depends on PARTITION_MANAGER_ENABLED
118-
depends on SOC_NRF54L15_CPUFLPR || SOC_NRF7120_ENGA_CPUFLPR
119-
default 1524 if SOC_NRF54L15_CPUFLPR
118+
depends on SOC_NRF54L15_CPUFLPR || SOC_NRF54L20_ENGA_CPUFLPR || SOC_NRF7120_ENGA_CPUFLPR
119+
default 1524 if SOC_NRF54L15_CPUFLPR || SOC_NRF54L20_ENGA_CPUFLPR
120120
default 128 if SOC_NRF7120_ENGA_CPUFLPR
121121

122122
config NRF_SECURITY_ENABLER

subsys/partition_manager/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ if (CONFIG_NRF_MODEM_LIB_TRACE_BACKEND_FLASH)
127127
ncs_add_partition_manager_config(pm.yml.modem_trace)
128128
endif()
129129

130-
if (CONFIG_SOC_NRF54L15_CPUFLPR OR CONFIG_SOC_NRF7120_ENGA_CPUFLPR)
130+
if (CONFIG_SOC_NRF54L15_CPUFLPR OR CONFIG_SOC_NRF54L20_ENGA_CPUFLPR OR CONFIG_SOC_NRF7120_ENGA_CPUFLPR)
131131
ncs_add_partition_manager_config(pm.yml.vpr_launcher)
132132
endif()
133133

subsys/partition_manager/Kconfig

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -146,27 +146,16 @@ rsource "Kconfig.template.partition_config"
146146
rsource "Kconfig.template.partition_region"
147147
endif
148148

149-
if SOC_NRF54L15_CPUFLPR
150149
config PM_PARTITION_SIZE_VPR_LAUNCHER
151150
hex
152-
default $(dt_node_reg_addr_hex,/soc/rram-controller@5004b000/rram@165000)
151+
depends on SOC_NRF54L15_CPUFLPR || SOC_NRF54L20_ENGA_CPUFLPR || SOC_NRF7120_ENGA_CPUFLPR
152+
default $(dt_node_reg_addr_hex,/soc/rram-controller@5004b000/rram@165000) if SOC_NRF54L15_CPUFLPR
153+
default $(dt_node_reg_addr_hex,/soc/rram-controller@5004e000/rram@1ed000) if SOC_NRF54L20_ENGA_CPUFLPR
154+
default $(dt_node_reg_addr_hex,/soc/mram@3e1000) if SOC_NRF7120_ENGA_CPUFLPR
153155
help
154156
Memory set aside for the vpr_launcher partition.
155-
Must match the size of the cpuapp_rram partition which is deleted.
157+
Must match the size of the cpuapp_rram/cpuapp_mram partition which is deleted.
156158
This to place the flpr app's code at the address found in the devicetree.
157-
endif
158-
159-
if SOC_NRF7120_ENGA_CPUFLPR
160-
161-
config PM_PARTITION_SIZE_VPR_LAUNCHER
162-
hex
163-
default $(dt_node_reg_addr_hex,/soc/mram@3e1000)
164-
help
165-
Memory set aside for the vpr_launcher partition.
166-
Must match the size of the cpuapp_mram partition which is deleted.
167-
This to place the flpr app's code at the address found in the devicetree.
168-
169-
endif
170159

171160
if WIFI_NRF70 && NRF_WIFI_PATCHES_EXT_FLASH_STORE
172161

@@ -241,13 +230,15 @@ config PM_SRAM_BASE
241230
hex
242231
default $(dt_node_reg_addr_hex,/soc/memory@21000000) if SOC_NRF5340_CPUNET
243232
default 0x20000000 if SOC_NRF54L15_CPUFLPR # Because the cpuapp_sram DT node is deleted in nrf54l15_cpuflpr.dtsi
233+
default 0x20000000 if SOC_NRF54L20_ENGA_CPUFLPR # Because the cpuapp_sram DT node is deleted in nrf54l20_enga_cpuflpr.dtsi
244234
default 0x20000000 if SOC_NRF7120_ENGA_CPUFLPR # Because the cpuapp_sram DT node is deleted in nrf7120_enga_cpuflpr.dtsi
245235
default $(dt_node_reg_addr_hex,/soc/memory@20000000)
246236

247237
config PM_SRAM_SIZE
248238
hex
249239
default $(dt_node_reg_size_hex,/soc/memory@21000000) if SOC_NRF5340_CPUNET
250240
default 0x40000 if SOC_NRF54L15_CPUFLPR # Because the cpuapp_rram DT node is deleted in nrf54l15_cpuflpr.dtsi
241+
default 0x40000 if SOC_NRF54L20_ENGA_CPUFLPR # Because the cpuapp_rram DT node is deleted in nrf54l20_enga_cpuflpr.dtsi
251242
default 0x40000 if SOC_NRF7120_ENGA_CPUFLPR # Because the cpuapp_mram DT node is deleted in nrf7120_enga_cpuflpr.dtsi
252243
default $(dt_node_reg_size_hex,/soc/memory@20000000)
253244

0 commit comments

Comments
 (0)