File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ MCUBOOT_LOG_MODULE_DECLARE(mcuboot);
2020#if (!defined(CONFIG_XTENSA ) && defined(DT_FLASH_DEV_NAME ))
2121#define FLASH_DEVICE_ID SOC_FLASH_0_ID
2222#define FLASH_DEVICE_BASE CONFIG_FLASH_BASE_ADDRESS
23- #elif (defined(CONFIG_XTENSA ) && defined(DT_SPI_NOR_DRV_NAME ))
23+ #elif (defined(CONFIG_XTENSA ) && defined(DT_JEDEC_SPI_NOR_0_LABEL ))
2424#define FLASH_DEVICE_ID SPI_FLASH_0_ID
2525#define FLASH_DEVICE_BASE 0
2626#else
Original file line number Diff line number Diff line change 3434 * Sanity check the target support.
3535 */
3636#if (!defined(CONFIG_XTENSA ) && !defined(DT_FLASH_DEV_NAME )) || \
37- (defined(CONFIG_XTENSA ) && !defined(DT_SPI_NOR_DRV_NAME )) || \
37+ (defined(CONFIG_XTENSA ) && !defined(DT_JEDEC_SPI_NOR_0_LABEL )) || \
3838 !defined(FLASH_ALIGN ) || \
3939 !defined(FLASH_AREA_IMAGE_0_OFFSET ) || \
4040 !defined(FLASH_AREA_IMAGE_0_SIZE ) || \
Original file line number Diff line number Diff line change @@ -164,9 +164,9 @@ void main(void)
164164 while (1 )
165165 ;
166166 }
167- #elif (defined(CONFIG_XTENSA ) && defined(DT_SPI_NOR_DRV_NAME ))
168- if (!flash_device_get_binding (DT_SPI_NOR_DRV_NAME )) {
169- BOOT_LOG_ERR ("Flash device %s not found" , DT_SPI_NOR_DRV_NAME );
167+ #elif (defined(CONFIG_XTENSA ) && defined(DT_JEDEC_SPI_NOR_0_LABEL ))
168+ if (!flash_device_get_binding (DT_JEDEC_SPI_NOR_0_LABEL )) {
169+ BOOT_LOG_ERR ("Flash device %s not found" , DT_JEDEC_SPI_NOR_0_LABEL );
170170 while (1 )
171171 ;
172172 }
You can’t perform that action at this time.
0 commit comments