2009-07-02 23:26:45 +08:00
|
|
|
#
|
|
|
|
# Makefile for loongson based machines.
|
|
|
|
#
|
|
|
|
|
|
|
|
obj-y += setup.o init.o cmdline.o env.o time.o reset.o irq.o \
|
2015-06-09 15:35:34 +08:00
|
|
|
bonito-irq.o mem.o machtype.o platform.o serial.o
|
2013-07-04 16:38:29 +08:00
|
|
|
obj-$(CONFIG_PCI) += pci.o
|
2009-07-02 23:26:45 +08:00
|
|
|
|
|
|
|
#
|
2009-11-28 14:21:50 +08:00
|
|
|
# Serial port support
|
2009-07-02 23:26:45 +08:00
|
|
|
#
|
|
|
|
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
|
2009-11-28 14:21:50 +08:00
|
|
|
obj-$(CONFIG_LOONGSON_UART_BASE) += uart_base.o
|
2010-06-02 06:39:54 +08:00
|
|
|
obj-$(CONFIG_LOONGSON_MC146818) += rtc.o
|
2009-11-10 00:06:12 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Enable CS5536 Virtual Support Module(VSM) to virtulize the PCI configure
|
|
|
|
# space
|
|
|
|
#
|
|
|
|
obj-$(CONFIG_CS5536) += cs5536/
|
MIPS: Loongson 2F: Add suspend support framework
This patch add basic suspend support for loongson2f family machines,
loongson2f have a specific feature: when we set it's frequency to ZERO,
it will go into a wait mode, and then can be waked up by the external
interrupt. so, if we setup suitable interrupts before putting it into
wait mode, we will be able wake it up whenever we want via sending the
relative interrupts to it.
These interrupts are board-specific, Yeeloong2F use the keyboard
interrupt and SCI interrupt, but LingLoong and Fuloong2F use the
interrupts connected to the processors directly. and BTW: some old
LingLoong and FuLoong2F have no such interrupts connected, so, there is
no way to wake them up from suspend mode. and therefore, please do not
enable the kernel support for them.
The board-specific support will be added in the coming patches.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: yanh@lemote.com
Cc: huhb@lemote.com
Cc: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: Len Brown <len.brown@intel.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: linux-pm@lists.linux-foundation.org
Patchwork: http://patchwork.linux-mips.org/patch/629/
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2009-11-11 14:57:05 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Suspend Support
|
|
|
|
#
|
|
|
|
|
2015-10-07 14:07:59 +08:00
|
|
|
obj-$(CONFIG_SUSPEND) += pm.o
|
MIPS: Loongson: Add swiotlb to support All-Memory DMA
Loongson doesn't support DMA address above 4GB traditionally. If memory
is more than 4GB, CONFIG_SWIOTLB and ZONE_DMA32 should be selected. In
this way, DMA pages are allocated below 4GB preferably. However, if low
memory is not enough, high pages are allocated and swiotlb is used for
bouncing.
Moreover, we provide a platform-specific dma_map_ops::set_dma_mask() to
set a device's dma_mask and coherent_dma_mask. We use these masks to
distinguishes an allocated page can be used for DMA directly, or need
swiotlb to bounce.
Recently, we found that 32-bit DMA isn't a hardware bug, but a hardware
configuration issue. So, latest firmware has enable the DMA support as
high as 40-bit. To support all-memory DMA for all devices (besides the
Loongson platform limit, there are still some devices have their own
DMA32 limit), and also to be compatible with old firmware, we keep use
swiotlb.
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Hongliang Tao <taohl@lemote.com>
Signed-off-by: Hua Yan <yanh@lemote.com>
Tested-by: Alex Smith <alex.smith@imgtec.com>
Reviewed-by: Alex Smith <alex.smith@imgtec.com>
Cc: John Crispin <john@phrozen.org>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/6636
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2014-03-21 18:44:06 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# Big Memory (SWIOTLB) Support
|
|
|
|
#
|
|
|
|
obj-$(CONFIG_SWIOTLB) += dma-swiotlb.o
|