forked from Minki/linux
26927f7649
If SERIAL_8250 is compiled as a module, the platform specific setup for Loongson will be a module too, and it will not work very well. At least on Loongson 3 it will trigger a build failure, since loongson_sysconf is not exported to modules. Fix by making the platform specific serial code always built-in. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reported-by: Ralf Baechle <ralf@linux-mips.org> Cc: stable@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: Huacai Chen <chenhc@lemote.com> Cc: Markos Chandras <Markos.Chandras@imgtec.com> Patchwork: https://patchwork.linux-mips.org/patch/8533/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
35 lines
732 B
Makefile
35 lines
732 B
Makefile
#
|
|
# Makefile for loongson based machines.
|
|
#
|
|
|
|
obj-y += setup.o init.o cmdline.o env.o time.o reset.o irq.o \
|
|
bonito-irq.o mem.o machtype.o platform.o
|
|
obj-$(CONFIG_GPIOLIB) += gpio.o
|
|
obj-$(CONFIG_PCI) += pci.o
|
|
|
|
#
|
|
# Serial port support
|
|
#
|
|
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
|
loongson-serial-$(CONFIG_SERIAL_8250) := serial.o
|
|
obj-y += $(loongson-serial-m) $(loongson-serial-y)
|
|
obj-$(CONFIG_LOONGSON_UART_BASE) += uart_base.o
|
|
obj-$(CONFIG_LOONGSON_MC146818) += rtc.o
|
|
|
|
#
|
|
# Enable CS5536 Virtual Support Module(VSM) to virtulize the PCI configure
|
|
# space
|
|
#
|
|
obj-$(CONFIG_CS5536) += cs5536/
|
|
|
|
#
|
|
# Suspend Support
|
|
#
|
|
|
|
obj-$(CONFIG_LOONGSON_SUSPEND) += pm.o
|
|
|
|
#
|
|
# Big Memory (SWIOTLB) Support
|
|
#
|
|
obj-$(CONFIG_SWIOTLB) += dma-swiotlb.o
|