flash: dts: replace DT_FLASH_{ERASE,WRITE}_BLOCK_SIZE with new macros
Replace: DT_FLASH_ERASE_BLOCK_SIZE -> DT_PROP(DT_CHOSEN(zephyr_flash), erase_block_size) DT_FLASH_WRITE_BLOCK_SIZE -> DT_PROP(DT_CHOSEN(zephyr_flash), write_block_size) As this allows us to phase out the old generator. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
673b1da46d
commit
8101a0f661
4 changed files with 15 additions and 8 deletions
|
@ -69,7 +69,8 @@ struct mcuboot_v1_raw_header {
|
|||
#define BOOT_FLAG_IMAGE_OK 0
|
||||
#define BOOT_FLAG_COPY_DONE 1
|
||||
|
||||
#define FLASH_MIN_WRITE_SIZE DT_FLASH_WRITE_BLOCK_SIZE
|
||||
#define FLASH_MIN_WRITE_SIZE \
|
||||
DT_PROP(DT_CHOSEN(zephyr_flash), write_block_size)
|
||||
|
||||
/* DT_FLASH_AREA_IMAGE_XX_YY values used below are auto-generated by DT */
|
||||
#ifdef CONFIG_TRUSTED_EXECUTION_NONSECURE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue