From c1d264e84e92a637b73a0db7be7e973fee816ccd Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 3 Feb 2021 17:53:57 +0100 Subject: [PATCH] spi: imx: Implement set_speed The set_speed() callback should configure the bus speed, make it so. Signed-off-by: Marek Vasut Cc: Stefano Babic Reviewed-by: Jagan Teki Reviewed-by: Bin Meng --- drivers/spi/mxc_spi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index bb68eb90e9..f3dddbdbd7 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -662,7 +662,10 @@ static int mxc_spi_release_bus(struct udevice *dev) static int mxc_spi_set_speed(struct udevice *bus, uint speed) { - /* Nothing to do */ + struct mxc_spi_slave *mxcs = dev_get_plat(bus); + + mxcs->max_hz = speed; + return 0; } -- 2.39.5