Skip to content

Commit 4b33deb

Browse files
committed
[nrf noup] zephyr: sysflash: Add missing NETCORE partition support
Add missing definitions for NETCORE partition used by nRF5340. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent b709feb commit 4b33deb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

boot/zephyr/include/sysflash/sysflash.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@
4343
#define SPI_FLASH_0_ID 1
4444
#endif
4545

46+
/* Support for NETCPU application image updates */
47+
#if CONFIG_MCUBOOT_NETWORK_CORE_IMAGE_NUMBER != -1
48+
#define NETCPU_APP_SLOT_OFFSET PARTITION_OFFSET(s0_partition)
49+
#define NETCPU_APP_SLOT_SIZE PARTITION_SIZE(s0_partition)
50+
#define NETCPU_APP_SLOT_END (NETCPU_APP_SLOT_OFFSET + NETCPU_APP_SLOT_SIZE)
51+
#endif
52+
4653
/* This is workaround because of bootutil public interface also requiring this
4754
* file. In reality application is supposed to maintain flash area access,
4855
* but bootutil uses own definitions, taken directly from DTS, which includes

0 commit comments

Comments
 (0)