File tree Expand file tree Collapse file tree
include/asm/mach-loongson64 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -461,7 +461,33 @@ config MACH_LOONGSON2EF
461461
462462config 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.
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ CONFIG_BLK_DEV_INITRD=y
2424CONFIG_SYSCTL_SYSCALL=y
2525CONFIG_EMBEDDED=y
2626CONFIG_MACH_LOONGSON64=y
27- CONFIG_LOONGSON_MACH3X=y
2827CONFIG_SMP=y
2928CONFIG_HZ_256=y
3029CONFIG_KEXEC=y
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: GPL-2.0
22if 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-
404config 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.
Original file line number Diff line number Diff line change 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.
File renamed without changes.
Load diff This file was deleted.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments