Skip to content

Commit c1dd79c

Browse files
danieldegrasseanangl
authored andcommitted
[nrf fromtree] drivers: mspi: mspi_dw: make sure controller is disabled at entry
Some systems (IE cores with bootloaders) may not disable the DW SPI peripheral at boot time. Make sure the peripheral is disabled before we try to configure it. Signed-off-by: Daniel DeGrasse <[email protected]> (cherry picked from commit a294653)
1 parent 9d9d507 commit c1dd79c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/mspi/mspi_dw.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,9 @@ static int dev_init(const struct device *dev)
14371437
}
14381438
}
14391439

1440+
/* Make sure controller is disabled. */
1441+
write_ssienr(dev, 0);
1442+
14401443
#if defined(CONFIG_PINCTRL)
14411444
if (IS_ENABLED(CONFIG_PM_DEVICE_RUNTIME)) {
14421445
rc = pinctrl_apply_state(dev_config->pcfg, PINCTRL_STATE_SLEEP);

0 commit comments

Comments
 (0)