.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Paravirt target for a generic QEMU e500 machine |
---|
3 | 4 | * |
---|
.. | .. |
---|
8 | 9 | * an interface contract with QEMU. |
---|
9 | 10 | * |
---|
10 | 11 | * Copyright 2012 Freescale Semiconductor Inc. |
---|
11 | | - * |
---|
12 | | - * This program is free software; you can redistribute it and/or modify it |
---|
13 | | - * under the terms of the GNU General Public License as published by the |
---|
14 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
15 | | - * option) any later version. |
---|
16 | 12 | */ |
---|
17 | 13 | |
---|
18 | 14 | #include <linux/kernel.h> |
---|
19 | 15 | #include <linux/of_fdt.h> |
---|
| 16 | +#include <linux/pgtable.h> |
---|
20 | 17 | #include <asm/machdep.h> |
---|
21 | | -#include <asm/pgtable.h> |
---|
22 | 18 | #include <asm/time.h> |
---|
23 | 19 | #include <asm/udbg.h> |
---|
24 | 20 | #include <asm/mpic.h> |
---|
| 21 | +#include <asm/swiotlb.h> |
---|
25 | 22 | #include <sysdev/fsl_soc.h> |
---|
26 | 23 | #include <sysdev/fsl_pci.h> |
---|
27 | 24 | #include "smp.h" |
---|
.. | .. |
---|
45 | 42 | |
---|
46 | 43 | fsl_pci_assign_primary(); |
---|
47 | 44 | swiotlb_detect_4g(); |
---|
48 | | -#if defined(CONFIG_FSL_PCI) && defined(CONFIG_ZONE_DMA32) |
---|
49 | | - /* |
---|
50 | | - * Inbound windows don't cover the full lower 4 GiB |
---|
51 | | - * due to conflicts with PCICSRBAR and outbound windows, |
---|
52 | | - * so limit the DMA32 zone to 2 GiB, to allow consistent |
---|
53 | | - * allocations to succeed. |
---|
54 | | - */ |
---|
55 | | - limit_zone_pfn(ZONE_DMA32, 1UL << (31 - PAGE_SHIFT)); |
---|
56 | | -#endif |
---|
57 | 45 | mpc85xx_smp_init(); |
---|
58 | 46 | } |
---|
59 | 47 | |
---|