Commit 7f266801 authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown

ASoC: intel: use __iowrite32_copy for 32 bit copy

The sst-firmware was also using own method to do 32bit copy, turns out we have a
kernel API so use that instead

[For BYT]
Tested-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 33c1256f
...@@ -32,13 +32,10 @@ ...@@ -32,13 +32,10 @@
static void block_module_remove(struct sst_module *module); static void block_module_remove(struct sst_module *module);
static void sst_memcpy32(volatile void __iomem *dest, void *src, u32 bytes) static inline void sst_memcpy32(volatile void __iomem *dest, void *src, u32 bytes)
{ {
u32 i; /* __iowrite32_copy use 32bit size values so divide by 4 */
__iowrite32_copy((void *)dest, src, bytes/4);
/* copy one 32 bit word at a time as 64 bit access is not supported */
for (i = 0; i < bytes; i += 4)
memcpy_toio(dest + i, src + i, 4);
} }
/* create new generic firmware object */ /* create new generic firmware object */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment