From: Marek Vasut Date: Wed, 3 Feb 2021 16:53:57 +0000 (+0100) Subject: spi: imx: Implement set_speed X-Git-Url: http://git.dujemihanovic.xyz/repo?a=commitdiff_plain;h=c1d264e84e92a637b73a0db7be7e973fee816ccd;p=u-boot.git 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 --- 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; }