flash: Convert DT_FLASH_AREA to FLASH_AREA macros
Convert with a combo of scripts and by hand fixups: git grep -l DT_FLASH_AREA_.*_ID | \ xargs sed -i -r 's/DT_FLASH_AREA_(.*)_ID/FLASH_AREA_ID(\L\1)/' git grep -l DT_FLASH_AREA_.*_OFFSET | \ xargs sed -i -r 's/DT_FLASH_AREA_(.*)_OFFSET/FLASH_AREA_OFFSET(\L\1)/' git grep -l DT_FLASH_AREA_.*_SIZE | \ xargs sed -i -r 's/DT_FLASH_AREA_(.*)_SIZE/FLASH_AREA_SIZE(\L\1)/' Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
7310eb9e4a
commit
ff579a3af3
31 changed files with 77 additions and 73 deletions
|
@ -17,11 +17,11 @@
|
|||
#endif
|
||||
|
||||
#include <devicetree.h>
|
||||
/* DT_FLASH_AREA_IMAGE_XX_YY values used below are auto-generated by DT */
|
||||
/* FLASH_AREA_ID() values used below are auto-generated by DT */
|
||||
#ifdef CONFIG_TRUSTED_EXECUTION_NONSECURE
|
||||
#define FLASH_AREA_IMAGE_SECONDARY DT_FLASH_AREA_IMAGE_1_NONSECURE_ID
|
||||
#define FLASH_AREA_IMAGE_SECONDARY FLASH_AREA_ID(image_1_nonsecure)
|
||||
#else
|
||||
#define FLASH_AREA_IMAGE_SECONDARY DT_FLASH_AREA_IMAGE_1_ID
|
||||
#define FLASH_AREA_IMAGE_SECONDARY FLASH_AREA_ID(image_1)
|
||||
#endif /* CONFIG_TRUSTED_EXECUTION_NONSECURE */
|
||||
|
||||
#define FLASH_WRITE_BLOCK_SIZE \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue