]> git.baikalelectronics.ru Git - uboot.git/commit
waitbit: Add the generic wait_for_bit macros for 16 and 32 bits.
authorKursad Oney <kursad.oney@broadcom.com>
Wed, 14 Aug 2019 13:18:33 +0000 (15:18 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 14:09:16 +0000 (10:09 -0400)
commitd71c4526cf0d162d8a83ac235ef9d2f2b79ad115
tree687f9faa74e100c9d46284626b7d62ba4e2f5d6d
parentf08bd9ddc668f2de9b7b5ddd56b196d5420c5361
waitbit: Add the generic wait_for_bit macros for 16 and 32 bits.

wait_for_bit_le32 and wait_for_bit_le16 use the raw I/O functions
which would default to big-endian on BE systems. Create the generic
equivalents to use the native endianness.

Signed-off-by: Kursad Oney <kursad.oney@broadcom.com>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
include/wait_bit.h