MIPS/alchemy: factor out the DMA coherent setup
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Feb 2021 09:56:37 +0000 (10:56 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 13 Feb 2021 08:51:45 +0000 (09:51 +0100)
commit3440caf5f28c4e4a585dd5a7cead1b7c414973da
tree706e3fd7cf657bca6e64d9095f75dd23d1ae09f9
parent04e4783fccf4268249bff2c1be9f63013d12153a
MIPS/alchemy: factor out the DMA coherent setup

Factor out a alchemy_dma_coherent helper that determines if the platform
is DMA coherent.  Also stop initializing the hw_coherentio variable, given
that is only ever set to a non-zero value by the malta setup code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/alchemy/common/setup.c