MIPS: Loongson64: Move loongson_system_configuration to loongson.h
authorQing Zhang <zhangqing@loongson.cn>
Thu, 4 Mar 2021 11:00:57 +0000 (19:00 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 12 Mar 2021 10:09:58 +0000 (11:09 +0100)
The purpose of separating loongson_system_configuration from boot_param.h
is to keep the other structure consistent with the firmware.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
Acked-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mach-loongson64/boot_param.h
arch/mips/include/asm/mach-loongson64/loongson.h
drivers/irqchip/irq-loongson-liointc.c

index 1c1cdf57137ea0428f99b9cf1129fe7aa5198650..035b1a69e2d00dca84bc2a9978978da575dfc991 100644 (file)
@@ -198,24 +198,6 @@ enum loongson_bridge_type {
        VIRTUAL = 3
 };
 
-struct loongson_system_configuration {
-       u32 nr_cpus;
-       u32 nr_nodes;
-       int cores_per_node;
-       int cores_per_package;
-       u16 boot_cpu_id;
-       u16 reserved_cpus_mask;
-       enum loongson_cpu_type cputype;
-       enum loongson_bridge_type bridgetype;
-       u64 restart_addr;
-       u64 poweroff_addr;
-       u64 suspend_addr;
-       u64 vgabios_addr;
-       u32 dma_mask_bits;
-       u64 workarounds;
-       void (*early_config)(void);
-};
-
 extern struct efi_memory_map_loongson *loongson_memmap;
 extern struct loongson_system_configuration loongson_sysconf;
 
index ac1c20e172a2b0762fa2ccb2af47a50b7d093a12..6189deb188cfd28edcc4cf02edf4f03fa7c91c4e 100644 (file)
 #include <linux/irq.h>
 #include <boot_param.h>
 
+/* machine-specific boot configuration */
+struct loongson_system_configuration {
+       u32 nr_cpus;
+       u32 nr_nodes;
+       int cores_per_node;
+       int cores_per_package;
+       u16 boot_cpu_id;
+       u16 reserved_cpus_mask;
+       enum loongson_cpu_type cputype;
+       enum loongson_bridge_type bridgetype;
+       u64 restart_addr;
+       u64 poweroff_addr;
+       u64 suspend_addr;
+       u64 vgabios_addr;
+       u32 dma_mask_bits;
+       u64 workarounds;
+       void (*early_config)(void);
+};
 
 /* machine-specific reboot/halt operation */
 extern void mach_prepare_reboot(void);
index 09b91b81851cca97df7c3a7784b0e683152c2e42..249566a23cc46435e865f8b94c6331a5add4e029 100644 (file)
@@ -16,7 +16,7 @@
 #include <linux/smp.h>
 #include <linux/irqchip/chained_irq.h>
 
-#include <boot_param.h>
+#include <loongson.h>
 
 #define LIOINTC_CHIP_IRQ       32
 #define LIOINTC_NUM_PARENT 4