drivers: spi_nxp_s32: update StateIndex configuration
Set Spi StateIndex equal to index of DT Spi node. Because number of State array is set base on number of DT Spi node used. If StateIndex is set equal to Spi instance, StateIndex can be over array. Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
This commit is contained in:
parent
8dcd61e36e
commit
e59991abfe
|
@ -671,7 +671,7 @@ static const struct spi_driver_api spi_nxp_s32_driver_api = {
|
|||
SPI_MCR_PCSIS(BIT_MASK(SPI_NXP_S32_NUM_CS(n))) | \
|
||||
SPI_MCR_MDIS(0U) | SPI_MCR_XSPI(1U) | SPI_MCR_HALT(1U)), \
|
||||
.TransferMode = SPI_IP_POLLING, \
|
||||
.StateIndex = SPI_NXP_S32_HW_INSTANCE(n), \
|
||||
.StateIndex = n, \
|
||||
SPI_NXP_S32_SET_SLAVE(n) \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue