spi: bcm2835: Set controller max_speed_hz

Set the struct spi_controller max_speed_hz. This is based on the
reported source clock frequency during probe. The maximum bus clock
is half the source clock (as per the code in bcm2835_spi_transfer_one).

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210107164825.21919-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Richard Fitzgerald 2021-01-07 16:48:25 +00:00 • committed by Mark Brown
commit c6892892a9
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0