drivers: intel_dmic: replace cache operation macros

Replace local macros for cache invalidation and flush operations
macros from soc.h

Signed-off-by: Sathish Kuttan <sathish.k.kuttan@intel.com>
This commit is contained in:
Sathish Kuttan 2019-02-16 17:57:12 -08:00 committed by Anas Nashif
commit 3aa58c9b28

View file

@ -115,9 +115,6 @@ struct dmic_configuration {
#define DMIC_REG_UPD(reg, mask, val) \
DMIC_REG_WR((reg), (DMIC_REG_RD((reg)) & ~(mask)) | ((val) & (mask)))
#define DCACHE_INVALIDATE(addr, size) \
xthal_dcache_region_invalidate(addr, size)
struct _stream_data {
struct k_msgq in_queue;
struct k_msgq out_queue;
@ -1346,7 +1343,7 @@ static int dmic_read_device(struct device *dev, u8_t stream,
LOG_ERR("No buffers in stream %u out_queue", stream);
} else {
*size = dmic_private.streams[stream].block_size;
DCACHE_INVALIDATE(*buffer, *size);
SOC_DCACHE_INVALIDATE(*buffer, *size);
}
return ret;