Commit 7a2ba69a authored by Andre Heinemans's avatar Andre Heinemans Committed by Fabio Baltieri
Browse files

drivers: flash_mcux_flexspi_nor: take write-block-size from dts



Some devices supported by this driver do not have a write-block-size
of 1 such as the mt35xu01gbba. This value is assigned in the dts and can
be used instead.

Signed-off-by: default avatarAndre Heinemans <andre.heinemans@nxp.com>
parent 28fcb4b3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1578,7 +1578,8 @@ static DEVICE_API(flash, flash_flexspi_nor_api) = {
			.pages_size = SPI_NOR_SECTOR_SIZE,		\
		},))							\
		.flash_parameters = {					\
			.write_block_size = NOR_WRITE_SIZE,		\
			.write_block_size = DT_INST_PROP_OR(n,		\
				write_block_size, NOR_WRITE_SIZE),	\
			.erase_value = NOR_ERASE_VALUE,			\
		},							\
	};								\