Skip to content
Snippets Groups Projects
Commit b1d2b529 authored by Hannes Schmelzer's avatar Hannes Schmelzer Committed by Jagan Teki
Browse files

spi: omap3: pre-initialize bus-speed with max. slave-speed


Otherwise the frequency is zero and the clock divider cannot be setup by
'omap3_spi_set_speed' function.

Signed-off-by: default avatarHannes Schmelzer <oe5hpm@oevsv.at>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent 34ad7491
No related branches found
No related tags found
No related merge requests found
......@@ -590,6 +590,8 @@ static int omap3_spi_claim_bus(struct udevice *dev)
struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev);
priv->cs = slave_plat->cs;
priv->freq = slave_plat->max_hz;
_omap3_spi_claim_bus(priv);
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment