Skip to content

Commit a65f1e7

Browse files
committed
boards: Add nrf54lm20b where nrf54lm20a is used
nRF54LM20a and nRF54LM20b are functionally identical in most of the cases. Added nRF54LM20B support across build system and source files where nRF54LM20a is explicitly mentioned. Signed-off-by: Artur Hadasz <artur.hadasz@nordicsemi.no>
1 parent 97b2fe5 commit a65f1e7

14 files changed

Lines changed: 25 additions & 19 deletions

File tree

Kconfig.nrf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ configdefault BT_TX_PROCESSOR_STACK_SIZE
135135
default 624 if SOC_NRF54H20_CPUAPP
136136
# nRF54L15 (application core)
137137
default 900 if SOC_NRF54L15_CPUAPP
138-
# nRF54L V10A / LM20A (currently application core EngA variants are used)
138+
# nRF54L V10A / LM20 (A/B) (currently application core EngA variants are used)
139139
default 900 if SOC_NRF54LV10A_CPUAPP
140-
default 900 if SOC_NRF54LM20A_CPUAPP
140+
default 900 if SOC_NRF54LM20A_CPUAPP || SOC_NRF54LM20B_CPUAPP
141141

142142
if SOC_SERIES_BSIM_NRFXX && ENTROPY_GENERATOR
143143
config MBEDTLS_HEAP_SIZE

cmake/sysbuild/partition_manager.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ foreach(d APP ${PM_DOMAINS})
514514
sysbuild_get(${image_name}_CONFIG_SOC_NRF54L05_CPUAPP IMAGE ${image_name} VAR CONFIG_SOC_NRF54L05_CPUAPP KCONFIG)
515515
sysbuild_get(${image_name}_CONFIG_SOC_NRF54L10_CPUAPP IMAGE ${image_name} VAR CONFIG_SOC_NRF54L10_CPUAPP KCONFIG)
516516
sysbuild_get(${image_name}_CONFIG_SOC_NRF54LM20A_CPUAPP IMAGE ${image_name} VAR CONFIG_SOC_NRF54LM20A_CPUAPP KCONFIG)
517+
sysbuild_get(${image_name}_CONFIG_SOC_NRF54LM20B_CPUAPP IMAGE ${image_name} VAR CONFIG_SOC_NRF54LM20B_CPUAPP KCONFIG)
517518
sysbuild_get(${image_name}_CONFIG_SOC_NRF54LV10A_CPUAPP IMAGE ${image_name} VAR CONFIG_SOC_NRF54LV10A_CPUAPP KCONFIG)
518519

519520
if(${image_name}_CONFIG_SOC_SERIES_NRF91)

modules/trusted-firmware-m/Kconfig.tfm.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ config PM_PARTITION_SIZE_TFM_SRAM
2020
# has less RAM. The number was selected based on the observed memory
2121
# usage of TFM in crypto samples and it can be changed later if needed.
2222
default 0x10000 if SOC_NRF54L10_CPUAPP || SOC_NRF54LV10A_CPUAPP || \
23-
SOC_NRF54LM20A_CPUAPP
23+
SOC_NRF54LM20A_CPUAPP || SOC_NRF54LM20B_CPUAPP
2424
default 0x16000 if SOC_SERIES_NRF91
2525
default 0x30000
2626
help

modules/trusted-firmware-m/tfm_boards/board/device_cfg.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#if defined(NRF54L15_XXAA) || defined(NRF54L10_XXAA) || \
1717
defined(NRF54LV10A_XXAA) || defined(NRF54LM20A_XXAA) || \
18-
defined(NRF7120_ENGA_XXAA)
18+
defined(NRF54LM20B_XXAA) || defined(NRF7120_ENGA_XXAA)
1919
#if defined(CONFIG_TFM_SECURE_UART00) && DOMAIN_NS != 1U
2020
#define TFM_UART uart00
2121
#endif /* defined(CONFIG_TFM_SECURE_UART00) */
@@ -46,7 +46,7 @@
4646
#define TFM_UART uart1
4747
#endif /* defined(CONFIG_TFM_SECURE_UART1) */
4848

49-
#endif /* NRF54L15_XXAA || NRF54L10_XXAA || NRF54LM20A_XXAA ||
49+
#endif /* NRF54L15_XXAA || NRF54L10_XXAA || NRF54LM20A_XXAA || NRF54LM20B_XXAA ||
5050
* NRF54LV10A_XXAA || NRF7120_ENGA_XXAA
5151
*/
5252

scripts/reglock.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@
4242
"nrf54l10",
4343
"nrf54l15",
4444
"nrf54lm20a",
45+
"nrf54lm20b",
4546
"nrf54lv10a",
4647
"nrf54ls05b",
4748
]
4849

4950
def get_max_size_kb(soc):
5051
if soc in ["nrf54l05", "nrf54l10", "nrf54l15"]:
5152
return 31
52-
elif soc in ["nrf54lm20a", "nrf54lv10a"]:
53+
elif soc in ["nrf54lm20a", "nrf54lm20b", "nrf54lv10a"]:
5354
return 127
5455
elif soc in ["nrf54ls05b"]:
5556
return 1023

subsys/bootloader/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ config PM_PARTITION_SIZE_PROVISION
3030
default 0x280 if SOC_SERIES_NRF91 || SOC_NRF5340_CPUAPP # Stored in OTP region
3131
# Monotonic counter slot takes 4 bytes on nRF54L Series
3232
default 0x460 if SOC_NRF54L15_CPUAPP || SOC_NRF54L05_CPUAPP || SOC_NRF54L10_CPUAPP || \
33-
SOC_NRF54LV10A_CPUAPP || SOC_NRF54LM20A_CPUAPP
33+
SOC_NRF54LV10A_CPUAPP || SOC_NRF54LM20A_CPUAPP || SOC_NRF54LM20B_CPUAPP
3434
default 0x280 if SOC_NRF5340_CPUNET # Second instance stored in internal flash of NET
3535
default FPROTECT_BLOCK_SIZE
3636
prompt "Flash space reserved for PROVISION" if !(SOC_NRF9160 || SOC_NRF5340_CPUAPP || \
3737
SOC_NRF54L15_CPUAPP || SOC_NRF54L05_CPUAPP || \
3838
SOC_NRF54L10_CPUAPP || SOC_NRF54LV10A_CPUAPP || \
39-
SOC_NRF54LM20A_CPUAPP)
39+
SOC_NRF54LM20A_CPUAPP || SOC_NRF54LM20B_CPUAPP)
4040
help
4141
Flash space set aside for the PROVISION partition.
4242

@@ -50,7 +50,7 @@ config PM_PARTITION_SIZE_B0_IMAGE
5050
default FPROTECT_BLOCK_SIZE if SOC_SERIES_NRF91 || SOC_NRF5340_CPUAPP
5151
default 0x3800 if SOC_NRF5340_CPUNET
5252
default 0x7800 if SOC_NRF54L15_CPUAPP || SOC_NRF54L05_CPUAPP || SOC_NRF54L10_CPUAPP || \
53-
SOC_NRF54LV10A_CPUAPP || SOC_NRF54LM20A_CPUAPP
53+
SOC_NRF54LV10A_CPUAPP || SOC_NRF54LM20A_CPUAPP || SOC_NRF54LM20B_CPUAPP
5454
default 0x7000 if !B0_MIN_PARTITION_SIZE
5555
default 0x4000
5656
help
@@ -92,7 +92,7 @@ config SB_DISABLE_SELF_RWX_SUPPORTED
9292
bool
9393
default y if SOC_NRF54L15_CPUAPP || SOC_NRF54L05_CPUAPP || SOC_NRF54L10_CPUAPP
9494
default y if SOC_NRF54LV10A_CPUAPP
95-
default y if SOC_NRF54LM20A_CPUAPP
95+
default y if SOC_NRF54LM20A_CPUAPP || SOC_NRF54LM20B_CPUAPP
9696

9797
config SB_DISABLE_SELF_RWX
9898
bool "Disable read and execution on self NVM"
@@ -107,7 +107,7 @@ config SB_DISABLE_NEXT_W
107107
help
108108
NSIB disables writes on next stage in bootloading chain.
109109
It uses RRAMC's region 4 and is limited to 31KB for nRF54L15, nRF54L10 and nRF54L05
110-
and to 127KB for nRF54LV10a and nRF54LM20a.
110+
and to 127KB for nRF54LV10a and nRF54LM20 (A/B).
111111

112112
config SB_MONOTONIC_COUNTER_ROLLBACK_PROTECTION
113113
bool "HW monotonic version counter rollback protection (informative only, do not change)"

subsys/bootloader/bl_boot/bl_boot.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
#if defined(CONFIG_SOC_NRF54L15_CPUAPP) || defined(CONFIG_SOC_NRF54L05_CPUAPP) || \
3333
defined(CONFIG_SOC_NRF54L10_CPUAPP)
3434
#define MAX_NEXT_W_SIZE (31 * 1024)
35-
#elif defined(CONFIG_SOC_NRF54LV10A_CPUAPP) || defined(CONFIG_SOC_NRF54LM20A_CPUAPP)
35+
#elif defined(CONFIG_SOC_NRF54LV10A_CPUAPP) || defined(CONFIG_SOC_NRF54LM20A_CPUAPP) || \
36+
defined(CONFIG_SOC_NRF54LM20B_CPUAPP)
3637
#define MAX_NEXT_W_SIZE (127 * 1024)
3738
#elif defined(CONFIG_SOC_NRF54LS05B_CPUAPP)
3839
#define MAX_NEXT_W_SIZE (1023 * 1024)

subsys/partition_manager/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ if(CONFIG_NRF_MODEM_LIB)
7676
endif()
7777

7878
if(CONFIG_SOC_NRF54L15_CPUAPP OR CONFIG_SOC_NRF54L05_CPUAPP OR
79-
CONFIG_SOC_NRF54L10_CPUAPP OR CONFIG_SOC_NRF54LM20A_CPUAPP)
79+
CONFIG_SOC_NRF54L10_CPUAPP OR CONFIG_SOC_NRF54LM20A_CPUAPP OR
80+
CONFIG_SOC_NRF54LM20B_CPUAPP)
8081
ncs_add_partition_manager_config(pm.yml.bootconf)
8182
endif()
8283

subsys/partition_manager/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
menu "Partition Manager"
88
depends on SOC_SERIES_NRF52 || SOC_SERIES_NRF53 || SOC_SERIES_NRF91 || \
99
SOC_NRF54L05 || SOC_NRF54L10 || SOC_NRF54L15 || SOC_NRF54LM20A || \
10-
SOC_NRF54LM20B || SOC_NRF54LV10A || SOC_NRF54LS05B
10+
SOC_NRF54LM20B_CPUAPP || SOC_NRF54LV10A || SOC_NRF54LS05B
1111

1212
config PARTITION_MANAGER_ENABLED
1313
bool "Partition manager is enabled (read-only option)"

subsys/partition_manager/pm.yml.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# TF-M non-secure application to avoid splitting the secure/non-secure
55
# partitions more than necessary.
66
#if defined(CONFIG_SOC_NRF54L15_CPUAPP) || defined(CONFIG_SOC_NRF54LV10A_CPUAPP) || \
7-
defined(CONFIG_SOC_NRF54LM20A_CPUAPP)
7+
defined(CONFIG_SOC_NRF54LM20A_CPUAPP) || defined(CONFIG_SOC_NRF54LM20B_CPUAPP)
88
settings_storage:
99
placement:
1010
after: [app]

0 commit comments

Comments
 (0)