Skip to content

Commit 24321c3

Browse files
rgundid3zd3z
authored andcommitted
Replace DT_SPI_NOR_DRV_NAME with DT_JEDEC_SPI_NOR_0_LABEL
Zephyr mainline now generates DT_JEDEC_SPI_NOR_0_LABEL instead of DT_SPI_NOR_DRV_NAME. Signed-off-by: Rajavardhan Gundi <[email protected]> Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent 4df602a commit 24321c3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

boot/zephyr/flash_map_extended.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

boot/zephyr/include/target.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
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) || \

boot/zephyr/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)