]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: gpmi: add gpmi_copy_bits function
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Sun, 30 Nov 2014 18:10:28 +0000 (19:10 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 1 Dec 2014 08:41:49 +0000 (00:41 -0800)
commit66de54a761831f2e9f31941fa49c94bfcde5f586
tree8bb2900334d145e0cd02ded11e34296a4867fd75
parent05241aead9b98c28476f74e7e1c5ce480ef40ac1
mtd: nand: gpmi: add gpmi_copy_bits function

Add a new function to copy bits (not bytes) from a memory region to
another one.
This function is similar to memcpy except it acts at bit level.
It is needed to implement GPMI raw access functions and adapt to the
hardware ECC engine which does not pad ECC bits to the next byte boundary.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/gpmi-nand/gpmi-lib.c
drivers/mtd/nand/gpmi-nand/gpmi-nand.h