spi: spi-fsl-lpspi: limit PRESCALE bit in TCR register
authorCarlos Song <carlos.song@nxp.com>
Tue, 20 Aug 2024 07:06:58 +0000 (15:06 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 20 Aug 2024 11:54:59 +0000 (12:54 +0100)
commit783bf5d09f86b9736605f3e01a3472e55ef98ff8
tree0f69c5bac1423c0902981a4d8e2cf111129c472a
parent57d5af2660e9443b081eeaf1c373b3ce48477828
spi: spi-fsl-lpspi: limit PRESCALE bit in TCR register

Referring to the errata ERR051608 of I.MX93, LPSPI TCR[PRESCALE]
can only be configured to be 0 or 1, other values are not valid
and will cause LPSPI to not work.

Add the prescale limitation for LPSPI in I.MX93. Other platforms
are not affected.

Signed-off-by: Carlos Song <carlos.song@nxp.com>
Link: https://patch.msgid.link/20240820070658.672127-1-carlos.song@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c