spi: fsl-dspi: Set max_speed_hz for master
authorBhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Mon, 21 Mar 2016 20:11:52 +0000 (01:41 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 23 Mar 2016 13:54:42 +0000 (13:54 +0000)
commit9419b2006cf47c75985ea51d36ddc51346d29efd
tree5b30ca52f3bbc670d7d598d8c02df48a658ed8ca
parentc508709bcffb644afbf5e5016fc7c90bf80c30ff
spi: fsl-dspi: Set max_speed_hz for master

Calculate and update max speed from bus clock for SoCs
using DSPI IP.

The bus clock factor's are taken from the data sheets
of respective SoCs.

Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c