lib: Add wait_for_bit
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Sat, 23 Jan 2016 10:54:29 +0000 (11:54 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 25 Jan 2016 15:39:47 +0000 (10:39 -0500)
commit9afdf4021abf3d2c21f525ed690adfa17bbe2b49
tree1adfcabd70bfe4e1f331d57a2ccfe3acfb3ca3df
parent3da52409250a48423a9297a7afbf1f09d0a855fe
lib: Add wait_for_bit

Add function to poll register waiting for specific bit(s).
Similar functions are implemented in few drivers - they are almost
identical and can be generalized.
Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/wait_bit.h [new file with mode: 0644]