boards: nrf9160: update secure image SRAM size to work with TF-M

Update the default Secure SRAM partition size for nRF9160,
so it aligns with the default TF-M secure partition size.
Also, change the DeviceTree node name from "bsd" to "modem",
to align with how the respective library component is named.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2021-04-06 19:16:29 +02:00
commit 5f2b0f9147
3 changed files with 11 additions and 9 deletions

View file

@ -6,7 +6,7 @@ toolchain:
- gnuarmemb
- xtools
- zephyr
ram: 64
ram: 88
flash: 256
supported:
- gpio

View file

@ -214,8 +214,8 @@
/* Secure image memory */
};
sram0_bsd: image_bsd@20010000 {
/* BSD (shared) memory */
sram0_modem: image_modem@20016000 {
/* Modem (shared) memory */
};
sram0_ns: image_ns@20020000 {

View file

@ -39,18 +39,20 @@
/* Default SRAM planning when building for nRF9160 with
* ARM TrustZone-M support
* - Lowest 64 kB SRAM allocated to Secure image (sram0_s).
* - 64 kB SRAM reserved for and used by the BSD socket
* library (sram0_bsd).
* - Lowest 88 kB SRAM allocated to Secure image (sram0_s).
* - 40 kB SRAM reserved for and used by the modem library
* (sram0_modem). This memory is Non-Secure.
* - Upper 128 kB allocated to Non-Secure image (sram0_ns).
* When building with TF-M, both sram0_modem and sram0_ns
* are allocated to the Non-Secure image.
*/
&sram0_s {
reg = <0x20000000 DT_SIZE_K(64)>;
reg = <0x20000000 DT_SIZE_K(88)>;
};
&sram0_bsd {
reg = <0x20010000 DT_SIZE_K(64)>;
&sram0_modem {
reg = <0x20016000 DT_SIZE_K(40)>;
};
&sram0_ns {