xref: /linux/arch/mips/loongson2ef/common/Makefile (revision 762f99f4f3cb41a775b5157dd761217beba65873)
171e2f4ddSJiaxun Yang# SPDX-License-Identifier: GPL-2.0
271e2f4ddSJiaxun Yang#
371e2f4ddSJiaxun Yang# Makefile for loongson based machines.
471e2f4ddSJiaxun Yang#
571e2f4ddSJiaxun Yang
675cac781SJiaxun Yangobj-y += setup.o init.o env.o time.o reset.o irq.o \
7*ad548993SRandy Dunlap    bonito-irq.o mem.o machtype.o platform.o
871e2f4ddSJiaxun Yangobj-$(CONFIG_PCI) += pci.o
971e2f4ddSJiaxun Yang
1071e2f4ddSJiaxun Yang#
1171e2f4ddSJiaxun Yang# Serial port support
1271e2f4ddSJiaxun Yang#
13*ad548993SRandy Dunlapobj-$(CONFIG_LOONGSON_UART_BASE) += serial.o
14*ad548993SRandy Dunlapobj-$(CONFIG_EARLY_PRINTK) += serial.o
1571e2f4ddSJiaxun Yangobj-$(CONFIG_LOONGSON_UART_BASE) += uart_base.o
1671e2f4ddSJiaxun Yangobj-$(CONFIG_LOONGSON_MC146818) += rtc.o
1771e2f4ddSJiaxun Yang
1871e2f4ddSJiaxun Yang#
1971e2f4ddSJiaxun Yang# Enable CS5536 Virtual Support Module(VSM) to virtulize the PCI configure
2071e2f4ddSJiaxun Yang# space
2171e2f4ddSJiaxun Yang#
2271e2f4ddSJiaxun Yangobj-$(CONFIG_CS5536) += cs5536/
2371e2f4ddSJiaxun Yang
2471e2f4ddSJiaxun Yang#
2571e2f4ddSJiaxun Yang# Suspend Support
2671e2f4ddSJiaxun Yang#
2771e2f4ddSJiaxun Yang
2871e2f4ddSJiaxun Yangobj-$(CONFIG_SUSPEND) += pm.o
29