Skip to content
Snippets Groups Projects
Commit 948b8bbd authored by Vignesh R's avatar Vignesh R Committed by Tom Rini
Browse files

spi: ti_qspi: Fix baudrate divider calculation


Fix the divider calculation logic to choose a value so that the
resulting baudrate is either equal to or closest possible baudrate less
than the requested value. While at that, cleanup ti_spi_set_speed().

Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent 84295f2a
Loading
Loading
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