waitbit: Add the generic wait_for_bit macros for 16 and 32 bits. 14/224414/1
authorKursad Oney <kursad.oney@broadcom.com>
Wed, 14 Aug 2019 13:18:33 +0000 (15:18 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 10 Feb 2020 10:56:05 +0000 (11:56 +0100)
commit5eb368ac9abeb9082f3ead3d7c8d0523394b7915
treea8111c14f4e418bc6bf1660ac6c9112a0f754895
parent5bea5a9e2010db1d79a76acf81e720337625af7e
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>
[backport of mainline commit c50d670c56109c001875cd72930810b2ddfb29e6]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I4a808d9a343ce1fc259cc973ef222668fe3ff0fd
include/wait_bit.h