Skip to content

Commit

Permalink
[nrf noup] sysflash: Add missing _FLASH_0_ID definitions
Browse files Browse the repository at this point in the history
MCUboot uses SOC_FLASH_0_ID and SPI_FLASH_0_ID to distinguish
between internal and external boot device. These IDs are provided
by sysflash.h, but the pm_sysflash.h overrides entire file,
and was lacking that definitions.

Signed-off-by: Dominik Ermel <[email protected]>
  • Loading branch information
de-nordic authored and anangl committed Jan 20, 2025
1 parent d2b1549 commit 4740e2d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boot/zephyr/include/sysflash/pm_sysflash.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,12 @@ static inline uint32_t __flash_area_ids_for_slot(int img, int slot)

#endif /* CONFIG_SINGLE_APPLICATION_SLOT */

#ifndef SOC_FLASH_0_ID
#define SOC_FLASH_0_ID 0
#endif

#ifndef SPI_FLASH_0_ID
#define SPI_FLASH_0_ID 1
#endif

#endif /* __PM_SYSFLASH_H__ */

0 comments on commit 4740e2d

Please sign in to comment.