mpc8xxx_spi: implement real ->set_speed
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Tue, 11 Feb 2020 15:20:25 +0000 (15:20 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 31 Mar 2020 14:06:53 +0000 (10:06 -0400)
commit4856cc7a972a7679cdbb33532ad932a3e865b18e
tree05485b52c38cbe14bc8cd1f0debce17e1f53ea32
parent391c40048b01dacd50243a594f74775a3ec60104
mpc8xxx_spi: implement real ->set_speed

Not all boards have the same CSB frequency, nor do every SPI slave
necessarily support running at 16.7 MHz. So implement ->set_speed;
that also allows using a smaller PM (i.e., 0) for slaves that do
support a higher speed.

Based on work by Klaus H. Sørensen.

Cc: Klaus H. Sorensen <khso@prevas.dk>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
drivers/spi/mpc8xxx_spi.c