tests: drivers: flash common testing in non SPI-NOR
Set an overlay to build tests/drivers/flash/common/ drivers.flash.common.disable_spi_nor when the SPI NOR exists but test does not use it Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
6e34acc4e2
commit
97855afc23
20
tests/drivers/flash/common/boards/fk7b0m1_vbt6.overlay
Normal file
20
tests/drivers/flash/common/boards/fk7b0m1_vbt6.overlay
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2025 STMicroelectronics
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/delete-node/ &storage_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
/* Set last blocks of the code flash as storage partition */
|
||||
storage_partition: partition@1e0000 {
|
||||
label = "storage";
|
||||
reg = <0x1e000 DT_SIZE_K(8)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
20
tests/drivers/flash/common/boards/mini_stm32h7b0.overlay
Normal file
20
tests/drivers/flash/common/boards/mini_stm32h7b0.overlay
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2025 STMicroelectronics
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/delete-node/ &storage_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
/* Set 2 last blocks of the code flash as storage partition */
|
||||
storage_partition: partition@1e000 {
|
||||
label = "storage";
|
||||
reg = <0x1e000 DT_SIZE_K(8)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user