arm64: Add memcpy_{from, to}io() and memset_io() helpers
authorVignesh Raghavendra <vigneshr@ti.com>
Sat, 12 Oct 2019 10:59:34 +0000 (16:29 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 7 Nov 2019 23:01:12 +0000 (18:01 -0500)
commit37e66ba916cf2b911ca03479f3cdcccc9f7932a1
tree3f41ee0ffb3d5e2b3be1e3469a030a9e1a4e3e15
parent036218a67130343a71ea34aeae1231bc11f040c2
arm64: Add memcpy_{from, to}io() and memset_io() helpers

Provide optimized memcpy_{from,to}io() and memset_io(). This is required
when moving large amount of data to and from IO regions such as IP
registers or accessing memory mapped flashes.

Code is borrowed from Linux Kernel v5.4.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/include/asm/io.h