[PATCH] spi: imx: Implement set_speed
Bin Meng
bmeng.cn at gmail.com
Fri Feb 26 00:41:44 CET 2021
Hi Marek,
On Fri, Feb 26, 2021 at 4:52 AM Marek Vasut <marex at denx.de> wrote:
>
> The set_speed() callback should configure the bus speed, make it so.
>
This patch is not flagged as v3 since previously there were 2 versions
already on the ML. Did you mistakenly send this?
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Jagan Teki <jagan at amarulasolutions.com>
> Cc: Stefano Babic <sbabic at denx.de>
> ---
> 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 bb68eb90e91..bce5356b294 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_platdata(bus);
This patch is the same as the previous v1 patch here:
https://lists.denx.de/pipermail/u-boot/2021-February/439840.html
And you already sent a v2 that was reviewed.
https://lists.denx.de/pipermail/u-boot/2021-February/439863.html
> +
> + mxcs->max_hz = speed;
> +
> return 0;
> }
Regards,
Bin
More information about the U-Boot
mailing list