Lines Matching +full:dma +full:- +full:coherent
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Based on linux/arch/arm/mm/dma-mapping.c
5 * Copyright (C) 2000-2004 Russell King
8 #include <linux/dma-map-ops.h>
14 #include "dma.h"
36 void arch_setup_dma_ops(struct device *dev, bool coherent)
41 * coherent if no cache has been detected. Note that it is not
45 dev->dma_coherent = cacheid ? coherent : true;
48 * Assume coherent DMA in case MMU/MPU has not been set up.
50 dev->dma_coherent = (get_cr() & CR_M) ? coherent : true;