]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: import bitrev library from the linux kernel
authorMike Dunn <mikedunn@newsguy.com>
Fri, 12 Apr 2013 18:59:17 +0000 (11:59 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 5 May 2013 21:47:04 +0000 (23:47 +0200)
commit0dd9c7a924f9a7b15fdb15d9005fd5506965f49f
tree710ead4a7e11dcf2e1ff2088c51170fa0589206f
parent5ed6f447af60aabd2669d913f673793c1ce48f47
lib: import bitrev library from the linux kernel

This patch adds the bitrev library from the linux kernel.  This is a simple
algorithm that uses an 8 bit look-up table to reverse the bits in data types of
8, 16, or 32 bit widths.  The docg4 nand flash driver uses it.

[port from linux kernel v3.9 commit 7ee32a6d30d1c8a3b7a07a6269da8f0a08662927]
[originally added: v2.6.20 by commit a5cfc1ec58a07074dacb6aa8c79eff864c966d12]

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
include/linux/bitrev.h [new file with mode: 0644]
lib/Makefile
lib/bitrev.c [new file with mode: 0644]