Skip to content

Commit 82f9734

Browse files
khoa-nguyen-18henrikbrixandersen
authored andcommitted
samples: drivers: spi_flash: add support for qspi Renesas RA
Add support for qspi Renesas RA to run the sample spi_flash Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 9e9f972 commit 82f9734

File tree

1 file changed

+4
-2
lines changed
  • samples/drivers/spi_flash/src

1 file changed

+4
-2
lines changed

samples/drivers/spi_flash/src/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
#endif
3838

3939
#if defined(CONFIG_FLASH_STM32_OSPI) || defined(CONFIG_FLASH_STM32_QSPI) || \
40-
defined(CONFIG_FLASH_STM32_XSPI) || defined(CONFIG_FLASH_RENESAS_RA_OSPI_B)
41-
40+
defined(CONFIG_FLASH_STM32_XSPI) || defined(CONFIG_FLASH_RENESAS_RA_OSPI_B) || \
41+
defined(CONFIG_FLASH_RENESAS_RA_QSPI)
4242
#define SPI_FLASH_MULTI_SECTOR_TEST
4343
#endif
4444

@@ -56,6 +56,8 @@
5656
#define SPI_FLASH_COMPAT nordic_qspi_nor
5757
#elif DT_HAS_COMPAT_STATUS_OKAY(renesas_ra_ospi_b_nor)
5858
#define SPI_FLASH_COMPAT renesas_ra_ospi_b_nor
59+
#elif DT_HAS_COMPAT_STATUS_OKAY(renesas_ra_qspi_nor)
60+
#define SPI_FLASH_COMPAT renesas_ra_qspi_nor
5961
#else
6062
#define SPI_FLASH_COMPAT invalid
6163
#endif

0 commit comments

Comments
 (0)