drivers: flash: ospi for stm32 mcu
Fixes command configuration to have samples/drivers/spi_flash passed on stm32l562 and stm32u585 disco kits. In OctoSPI STR/DTR and SPI/STR modes, to determine the address_width, checking the jesd216_bfp_addrbytes on JESD216_SFDP_BFP_DW1_ADDRBYTES_VAL_3B4B or _VAL_4B. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
8f9305139d
commit
9fbe27bc32
1 changed files with 2 additions and 1 deletions
|
@ -1492,7 +1492,8 @@ static void spi_nor_process_bfp_addrbytes(const struct device *dev,
|
||||||
{
|
{
|
||||||
struct flash_stm32_ospi_data *data = dev->data;
|
struct flash_stm32_ospi_data *data = dev->data;
|
||||||
|
|
||||||
if (jesd216_bfp_addrbytes == JESD216_SFDP_BFP_DW1_ADDRBYTES_VAL_4B) {
|
if ((jesd216_bfp_addrbytes == JESD216_SFDP_BFP_DW1_ADDRBYTES_VAL_4B) ||
|
||||||
|
(jesd216_bfp_addrbytes == JESD216_SFDP_BFP_DW1_ADDRBYTES_VAL_3B4B)) {
|
||||||
data->address_width = 4U;
|
data->address_width = 4U;
|
||||||
} else {
|
} else {
|
||||||
data->address_width = 3U;
|
data->address_width = 3U;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue