diff options
author | John Crispin <blogic@openwrt.org> | 2015-11-22 11:48:34 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-11-22 11:48:34 +0000 |
commit | ef03232ea53330d3312517e9a667674e55bc2a56 (patch) | |
tree | f896f6e276099d859df02d4acd33868e1bf314ff /target/linux/ramips/mt7688 | |
parent | f750d1674b8ad4ea5d7f700a800c6ed31e4def7e (diff) | |
download | master-187ad058-ef03232ea53330d3312517e9a667674e55bc2a56.tar.gz master-187ad058-ef03232ea53330d3312517e9a667674e55bc2a56.tar.bz2 master-187ad058-ef03232ea53330d3312517e9a667674e55bc2a56.zip |
ramips: improve rt2880 spi wait ready function
use loops_per_jiffy, spi clock speed and write bytes to get the
spi loop count. if loop to 0 than spi operation timeout.
remove usleep. we only write 1 byte to spi device. use busy loop
would be better.
Signed-off-by: Michael Lee <igvtee@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47575 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/mt7688')
0 files changed, 0 insertions, 0 deletions