Skip to content

Commit 855b39e

Browse files
pabigotnashif
authored andcommitted
samples: drivers: jesd216: add support for Nordic QSPI driver
Remove the overlay and set up to enable the QSPI variant. Signed-off-by: Peter Bigot <[email protected]>
1 parent 28447c8 commit 855b39e

File tree

3 files changed

+5
-58
lines changed

3 files changed

+5
-58
lines changed

samples/drivers/jesd216/boards/nrf52840dk_nrf52840.conf

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
# SPDX-License-Identifier: Apache-2.0
66
#
77

8-
# Need this when storage is on MX25R64
9-
#CONFIG_NORDIC_QSPI_NOR=y
10-
#CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
11-
CONFIG_SPI=y
12-
CONFIG_SPI_NOR=y
13-
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
14-
CONFIG_SPI_2=y
8+
CONFIG_SPI=n
9+
CONFIG_SPI_NOR=n
10+
CONFIG_NORDIC_QSPI_NOR=y

samples/drivers/jesd216/boards/nrf52840dk_nrf52840.overlay

Lines changed: 0 additions & 51 deletions
This file was deleted.

samples/drivers/jesd216/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#if DT_NODE_HAS_STATUS(DT_INST(0, jedec_spi_nor), okay)
1616
#define FLASH_DEVICE DT_LABEL(DT_INST(0, jedec_spi_nor))
17+
#elif DT_NODE_HAS_STATUS(DT_INST(0, nordic_qspi_nor), okay)
18+
#define FLASH_DEVICE DT_LABEL(DT_INST(0, nordic_qspi_nor))
1719
#else
1820
#error Unsupported flash driver
1921
#define FLASH_DEVICE ""

0 commit comments

Comments
 (0)