2019-05-19 20:07:45 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2009-07-02 23:26:45 +08:00
|
|
|
#
|
2019-10-20 23:01:36 +08:00
|
|
|
# Makefile for Loongson-3 family machines
|
2009-07-02 23:26:45 +08:00
|
|
|
#
|
2021-03-04 19:00:56 +08:00
|
|
|
obj-$(CONFIG_MACH_LOONGSON64) += cop2-ex.o dma.o \
|
2019-11-07 12:01:15 +08:00
|
|
|
setup.o init.o env.o time.o reset.o \
|
2009-07-02 23:26:45 +08:00
|
|
|
|
2019-10-20 23:01:36 +08:00
|
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
|
|
obj-$(CONFIG_NUMA) += numa.o
|
|
|
|
obj-$(CONFIG_RS780_HPET) += hpet.o
|
|
|
|
obj-$(CONFIG_SUSPEND) += pm.o
|
2020-05-26 17:21:16 +08:00
|
|
|
obj-$(CONFIG_PCI_QUIRKS) += vbios_quirk.o
|
MIPS: emulate CPUCFG instruction on older Loongson64 cores
CPUCFG is the instruction for querying processor characteristics on
newer Loongson processors, much like CPUID of x86. Since the instruction
is supposedly designed to provide a unified way to do feature detection
(without having to, for example, parse /proc/cpuinfo which is too
heavyweight), it is important to provide compatibility for older cores
without native support. Fortunately, most of the fields can be
synthesized without changes to semantics. Performance is not really big
a concern, because feature detection logic is not expected to be
invoked very often in typical userland applications.
The instruction can't be emulated on LOONGSON_2EF cores, according to
FlyGoat's experiments. Because the LWC2 opcode is assigned to other
valid instructions on 2E and 2F, no RI exception is raised for us to
intercept. So compatibility is only extended back furthest to
Loongson-3A1000. Loongson-2K is covered too, as it is basically a remix
of various blocks from the 3A/3B models from a kernel perspective.
This is lightly based on Loongson's work on their Linux 3.10 fork, for
being the authority on the right feature flags to fill in, where things
aren't otherwise discoverable.
Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2020-05-23 21:37:01 +08:00
|
|
|
obj-$(CONFIG_CPU_LOONGSON3_CPUCFG_EMULATION) += cpucfg-emul.o
|
2020-10-13 13:55:01 +08:00
|
|
|
obj-$(CONFIG_SYSFS) += boardinfo.o
|