From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Schwierzeck Date: Thu, 11 Jan 2018 02:50:51 +0100 Subject: [U-Boot] [PATCH v7 01/13] wait_bit: add 8/16/32 BE/LE versions of wait_for_bit In-Reply-To: <20180110202647.13106-2-noltari@gmail.com> References: <1495135788-9152-1-git-send-email-noltari@gmail.com> <20180110202647.13106-1-noltari@gmail.com> <20180110202647.13106-2-noltari@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 10.01.2018 21:26, Álvaro Fernández Rojas wrote: > Add 8/16/32 bits and BE/LE versions of wait_for_bit. > This is needed for reading registers that are not aligned to 32 bits, and for > Big Endian platforms. > > Signed-off-by: Álvaro Fernández Rojas > --- > v7: Introduce changes suggested by Daniel Schwierzeck: > - Use const void* reg for compatibility with 64 bit systems. > - Remove prefix and use __func__ instead. > v6: Introduce changes suggested by Jagan Teki: > - Switch to wait_for_bit instead of infinite loop. > > include/wait_bit.h | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 61 insertions(+) > Reviewed-by: Daniel Schwierzeck -- - Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: