tests: flash_simulator: Add native posix support

Added support for native posix boards to flash_simulator tests by
making sure that flash layout lines up with layout expected by
tests.

Resolves #25109

Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
Jan Van Winkel 2020-05-08 20:34:11 +02:00 committed by Anas Nashif
commit 57671d9716
3 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2020 Jan Van Winkel <jan.van_winkel@dxplore.eu>
*
* SPDX-License-Identifier: Apache-2.0
*/
&flash0 {
erase-block-size = <1024>;
write-block-size = <4>;
reg = <0x00000000 DT_SIZE_K(1024)>;
};

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2020 Jan Van Winkel <jan.van_winkel@dxplore.eu>
*
* SPDX-License-Identifier: Apache-2.0
*/
&flash0 {
erase-block-size = <1024>;
write-block-size = <4>;
reg = <0x00000000 DT_SIZE_K(1024)>;
};

View file

@ -1,4 +1,4 @@
tests: tests:
drivers.flash.flash_simulator: drivers.flash.flash_simulator:
platform_whitelist: qemu_x86 platform_whitelist: qemu_x86 native_posix native_posix_64
tags: driver tags: driver