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:
Cong Nguyen Huu 2023-11-09 14:10:31 +07:00 committed by Carles Cufí
parent 8dcd61e36e
commit e59991abfe
2 changed files with 2 additions and 2 deletions

View file

@ -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) \
}

View file

@ -193,7 +193,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: 03bd989de4d2de151470e8b6068bc5686f3fc84c
revision: 69046233b7a7fac3138ae4dd5bcf6158e82529bb
path: modules/hal/nxp
groups:
- hal