Skip to content

Commit

Permalink
[nrf noup] tests: drivers: flash: common: run on SDP MSPI
Browse files Browse the repository at this point in the history
Changing test parameters when running for SDP MSPI.

Signed-off-by: Jakub Zymelka <[email protected]>
  • Loading branch information
jaz1-nordic committed Feb 25, 2025
1 parent ccecc79 commit 9a9420e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/drivers/flash/common/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@
#elif defined(TEST_AREA_DEV_NODE)

#define TEST_AREA_DEVICE DEVICE_DT_GET(TEST_AREA_DEV_NODE)
#if defined(CONFIG_SOC_NRF54L15_CPUAPP) && defined(CONFIG_MSPI_NRFE)
#define TEST_AREA_OFFSET 0x00
#else
#define TEST_AREA_OFFSET 0xff000
#endif

#if DT_NODE_HAS_PROP(TEST_AREA_DEV_NODE, size_in_bytes)
#define TEST_AREA_MAX DT_PROP(TEST_AREA_DEV_NODE, size_in_bytes)
Expand All @@ -44,7 +48,11 @@
#error "Unsupported configuraiton"
#endif

#if defined(CONFIG_SOC_NRF54L15_CPUAPP) && defined(CONFIG_MSPI_NRFE)
#define EXPECTED_SIZE 64
#else
#define EXPECTED_SIZE 512
#endif

#if !defined(CONFIG_FLASH_HAS_EXPLICIT_ERASE) && \
!defined(CONFIG_FLASH_HAS_NO_EXPLICIT_ERASE)
Expand Down

0 comments on commit 9a9420e

Please sign in to comment.