test: flash: add rt685 support for flash driver test

enable flash test for rt685

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
This commit is contained in:
Hake Huang 2022-03-04 15:15:16 +08:00 committed by Maureen Helm
commit f5864b50ff
3 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,6 @@
#
# Copyright (c) 2022 NXP.
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_FLASH_MCUX_FLEXSPI_NOR_WRITE_BUFFER=y

View file

@ -20,6 +20,11 @@
#define FLASH_DEVICE DT_LABEL(DT_INST(0, nxp_imx_flexspi_nor))
#define FLASH_TEST_REGION_OFFSET FLASH_AREA_OFFSET(storage)
#define TEST_AREA_MAX ((FLASH_AREA_SIZE(storage)) + (FLASH_TEST_REGION_OFFSET))
#elif defined(CONFIG_FLASH_MCUX_FLEXSPI_MX25UM51345G)
#define FLASH_DEVICE DT_LABEL(DT_INST(0, nxp_imx_flexspi_mx25um51345g))
#define FLASH_TEST_REGION_OFFSET FLASH_AREA_OFFSET(storage)
#define TEST_AREA_MAX ((FLASH_AREA_SIZE(storage)) + (FLASH_TEST_REGION_OFFSET))
#else
/* SoC emebded NVM */

View file

@ -12,7 +12,7 @@ tests:
integration_platforms:
- nrf52840dk_nrf52840
drivers.flash.default:
platform_allow: mimxrt1060_evk it8xxx2_evb
platform_allow: mimxrt1060_evk it8xxx2_evb mimxrt685_evk_cm33
tags: mcux
integration_platforms:
- mimxrt1060_evk