aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/platforms/85xx/mpc85xx_mds.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
index 8fe87fc61485..35ab2b42d698 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
@@ -202,6 +202,14 @@ static void __init mpc85xx_mds_setup_arch(void)
202 mpc85xx_smp_init(); 202 mpc85xx_smp_init();
203#endif 203#endif
204 204
205#ifdef CONFIG_SWIOTLB
206 if (lmb_end_of_DRAM() > max) {
207 ppc_swiotlb_enable = 1;
208 set_pci_dma_ops(&swiotlb_dma_ops);
209 ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_swiotlb;
210 }
211#endif
212
205#ifdef CONFIG_QUICC_ENGINE 213#ifdef CONFIG_QUICC_ENGINE
206 np = of_find_compatible_node(NULL, NULL, "fsl,qe"); 214 np = of_find_compatible_node(NULL, NULL, "fsl,qe");
207 if (!np) { 215 if (!np) {
@@ -323,14 +331,6 @@ static void __init mpc85xx_mds_setup_arch(void)
323 331
324 } 332 }
325#endif /* CONFIG_QUICC_ENGINE */ 333#endif /* CONFIG_QUICC_ENGINE */
326
327#ifdef CONFIG_SWIOTLB
328 if (lmb_end_of_DRAM() > max) {
329 ppc_swiotlb_enable = 1;
330 set_pci_dma_ops(&swiotlb_dma_ops);
331 ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_swiotlb;
332 }
333#endif
334} 334}
335 335
336 336