Skip to content

Commit 6fbde6b

Browse files
FlyGoatpaulburton
authored andcommitted
MIPS: Loongson64: Move files to the top-level directory
Current Loongson-3 code can share among all Loongson64 processors. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Paul Burton <paulburton@kernel.org> Cc: linux-mips@vger.kernel.org Cc: chenhc@lemote.com Cc: paul.burton@mips.com
1 parent 1bdb7b7 commit 6fbde6b

27 files changed

Lines changed: 39 additions & 77 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,33 @@ config MACH_LOONGSON2EF
461461

462462
config MACH_LOONGSON64
463463
bool "Loongson-2/3 GSx64 family of machines"
464+
select ARCH_SPARSEMEM_ENABLE
465+
select ARCH_MIGHT_HAVE_PC_PARPORT
466+
select ARCH_MIGHT_HAVE_PC_SERIO
467+
select GENERIC_ISA_DMA_SUPPORT_BROKEN
468+
select BOOT_ELF32
469+
select BOARD_SCACHE
470+
select CSRC_R4K
471+
select CEVT_R4K
472+
select CPU_HAS_WB
473+
select FORCE_PCI
474+
select ISA
475+
select I8259
476+
select IRQ_MIPS_CPU
477+
select NR_CPUS_DEFAULT_4
478+
select USE_GENERIC_EARLY_PRINTK_8250
479+
select SYS_HAS_CPU_LOONGSON64
480+
select SYS_HAS_EARLY_PRINTK
481+
select SYS_SUPPORTS_SMP
482+
select SYS_SUPPORTS_HOTPLUG_CPU
483+
select SYS_SUPPORTS_NUMA
484+
select SYS_SUPPORTS_64BIT_KERNEL
485+
select SYS_SUPPORTS_HIGHMEM
486+
select SYS_SUPPORTS_LITTLE_ENDIAN
464487
select SYS_SUPPORTS_ZBOOT
488+
select LOONGSON_MC146818
489+
select ZONE_DMA32
490+
select NUMA
465491
help
466492
This enables the support of Loongson-2/3 family of processors with
467493
GSx64 microarchitecture.

‎arch/mips/configs/loongson3_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ CONFIG_BLK_DEV_INITRD=y
2424
CONFIG_SYSCTL_SYSCALL=y
2525
CONFIG_EMBEDDED=y
2626
CONFIG_MACH_LOONGSON64=y
27-
CONFIG_LOONGSON_MACH3X=y
2827
CONFIG_SMP=y
2928
CONFIG_HZ_256=y
3029
CONFIG_KEXEC=y

‎arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#define cpu_has_vint 0
4444
#define cpu_has_vtag_icache 0
4545
#define cpu_has_watch 1
46-
4746
#define cpu_has_wsbh 1
4847
#define cpu_has_ic_fills_f_dc 1
4948
#define cpu_hwrena_impl_bits 0xc0000000

‎arch/mips/loongson64/Kconfig‎

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,9 @@
11
# SPDX-License-Identifier: GPL-2.0
22
if MACH_LOONGSON64
33

4-
choice
5-
prompt "Machine Type"
6-
7-
config LOONGSON_MACH3X
8-
bool "Generic Loongson 3 family machines"
9-
select ARCH_SPARSEMEM_ENABLE
10-
select ARCH_MIGHT_HAVE_PC_PARPORT
11-
select ARCH_MIGHT_HAVE_PC_SERIO
12-
select GENERIC_ISA_DMA_SUPPORT_BROKEN
13-
select BOOT_ELF32
14-
select BOARD_SCACHE
15-
select CSRC_R4K
16-
select CEVT_R4K
17-
select CPU_HAS_WB
18-
select FORCE_PCI
19-
select ISA
20-
select I8259
21-
select IRQ_MIPS_CPU
22-
select NR_CPUS_DEFAULT_4
23-
select USE_GENERIC_EARLY_PRINTK_8250
24-
select SYS_HAS_CPU_LOONGSON64
25-
select SYS_HAS_EARLY_PRINTK
26-
select SYS_SUPPORTS_SMP
27-
select SYS_SUPPORTS_HOTPLUG_CPU
28-
select SYS_SUPPORTS_NUMA
29-
select SYS_SUPPORTS_64BIT_KERNEL
30-
select SYS_SUPPORTS_HIGHMEM
31-
select SYS_SUPPORTS_LITTLE_ENDIAN
32-
select LOONGSON_MC146818
33-
select ZONE_DMA32
34-
select NUMA
35-
help
36-
Generic Loongson 3 family machines utilize the 3A/3B revision
37-
of Loongson processor and RS780/SBX00 chipset.
38-
endchoice
39-
404
config RS780_HPET
415
bool "RS780/SBX00 HPET Timer"
42-
depends on LOONGSON_MACH3X
6+
depends on CONFIG_MACH_LOONGSON64
437
select MIPS_EXTERNAL_TIMER
448
help
459
This option enables the hpet timer of AMD RS780/SBX00.

‎arch/mips/loongson64/Makefile‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
#
3-
# Common code for all Loongson based systems
3+
# Makefile for Loongson-3 family machines
44
#
5+
obj-$(CONFIG_MACH_LOONGSON64) += irq.o cop2-ex.o platform.o acpi_init.o dma.o \
6+
setup.o init.o cmdline.o env.o time.o reset.o \
57

6-
obj-$(CONFIG_MACH_LOONGSON64) += common/
7-
8-
#
9-
# All Loongson-3 family machines
10-
#
11-
12-
obj-$(CONFIG_CPU_LOONGSON64) += loongson-3/
8+
obj-$(CONFIG_SMP) += smp.o
9+
obj-$(CONFIG_NUMA) += numa.o
10+
obj-$(CONFIG_RS780_HPET) += hpet.o
11+
obj-$(CONFIG_PCI) += pci.o
12+
obj-$(CONFIG_LOONGSON_MC146818) += rtc.o
13+
obj-$(CONFIG_SUSPEND) += pm.o
File renamed without changes.

‎arch/mips/loongson64/common/Makefile‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)