]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: dram: Add 'await_bits_clear'/'await_bits_set' helper functions
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Sun, 3 Aug 2014 02:32:45 +0000 (05:32 +0300)
committerHans de Goede <hdegoede@redhat.com>
Tue, 12 Aug 2014 06:42:33 +0000 (08:42 +0200)
commit94cd3019881523b7776138f93f9e6b9849adc4d4
tree1ea92eddeb6fe953a782363d1958e13f590311ef
parentcfc89b003bb2600eb330939da0f53b9caf3e17fa
sunxi: dram: Add 'await_bits_clear'/'await_bits_set' helper functions

The old 'await_completion' function is not sufficient, because
in some cases we want to wait for bits to be cleared, and in the
other cases we want to wait for bits to be set. So split the
'await_completion' into two new 'await_bits_clear' and
'await_bits_set' functions.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/dram.c