forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/platforms/85xx/qemu_e500.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Paravirt target for a generic QEMU e500 machine
34 *
....@@ -8,20 +9,16 @@
89 * an interface contract with QEMU.
910 *
1011 * 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.
1612 */
1713
1814 #include <linux/kernel.h>
1915 #include <linux/of_fdt.h>
16
+#include <linux/pgtable.h>
2017 #include <asm/machdep.h>
21
-#include <asm/pgtable.h>
2218 #include <asm/time.h>
2319 #include <asm/udbg.h>
2420 #include <asm/mpic.h>
21
+#include <asm/swiotlb.h>
2522 #include <sysdev/fsl_soc.h>
2623 #include <sysdev/fsl_pci.h>
2724 #include "smp.h"
....@@ -45,15 +42,6 @@
4542
4643 fsl_pci_assign_primary();
4744 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
5745 mpc85xx_smp_init();
5846 }
5947