commit | 44e4bac0889834a5bd6e42a99e993d4f85fe886f | [log] [tgz] |
---|---|---|
author | Vignesh R <vigneshr@ti.com> | Sat Nov 05 16:05:16 2016 +0530 |
committer | Tom Rini <trini@konsulko.com> | Sun Nov 13 15:54:37 2016 -0500 |
tree | bb63e2efb3fd580df536632e9daa609862c91afe | |
parent | 31de60856dffbaf1db5f40aaa284f1cbdd8c1ef6 [diff] |
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: Vignesh R <vigneshr@ti.com> Reviewed-by: Jagan Teki <jagan@openedev.com>