LF-3401 spi: imx: remove CLK calculation and divider in slave mode
authorClark Wang <xiaoning.wang@nxp.com>
Tue, 27 Apr 2021 07:58:58 +0000 (15:58 +0800)
committerClark Wang <xiaoning.wang@nxp.com>
Wed, 28 Apr 2021 05:51:42 +0000 (13:51 +0800)
commita216dbe15a896447bf5effffa43d5635b3545619
tree75cd48b2c2ab1bffe047203d71aba0ed952e0c9b
parentec4de359d4a2bafa24b8078dce4c9979a477de39
LF-3401 spi: imx: remove CLK calculation and divider in slave mode

In the slave mode, the clock signal is controlled by the master.
The slave does not need to calculate and configure the clock
frequency division. The slave can directly use the root clock
to sample the SCL signal.
Therefore, remove the calculation and frequency division
function of the clock in the slave mode.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Jun Li <jun.li@nxp.com>
drivers/spi/spi-imx.c