blob: 8e6e292675b24525f3b50e14e4214fe251914ae1 [file] [log] [blame]
Huacai Chen30ad29b2015-04-21 10:00:35 +08001if MACH_LOONGSON64
Yoichi Yuasaefe8dc52011-02-07 11:31:36 +09002
Wu Zhangjin85749d22009-07-02 23:26:45 +08003choice
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +08004 prompt "Machine Type"
Wu Zhangjin85749d22009-07-02 23:26:45 +08005
6config LEMOTE_FULOONG2E
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +08007 bool "Lemote Fuloong(2e) mini-PC"
8 select ARCH_SPARSEMEM_ENABLE
9 select CEVT_R4K
10 select CSRC_R4K
11 select SYS_HAS_CPU_LOONGSON2E
12 select DMA_NONCOHERENT
13 select BOOT_ELF32
14 select BOARD_SCACHE
15 select HW_HAS_PCI
16 select I8259
17 select ISA
Ralf Baechle67e38cf2015-05-26 18:20:06 +020018 select IRQ_MIPS_CPU
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080019 select SYS_SUPPORTS_32BIT_KERNEL
20 select SYS_SUPPORTS_64BIT_KERNEL
21 select SYS_SUPPORTS_LITTLE_ENDIAN
22 select SYS_SUPPORTS_HIGHMEM
23 select SYS_HAS_EARLY_PRINTK
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080024 select GENERIC_ISA_DMA_SUPPORT_BROKEN
25 select CPU_HAS_WB
Arnaud Patard5df74352010-06-02 00:39:54 +020026 select LOONGSON_MC146818
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080027 help
28 Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
29 an FPGA northbridge
Wu Zhangjin85749d22009-07-02 23:26:45 +080030
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080031 Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080032
33config LEMOTE_MACH2F
34 bool "Lemote Loongson 2F family machines"
35 select ARCH_SPARSEMEM_ENABLE
36 select BOARD_SCACHE
37 select BOOT_ELF32
Wu Zhangjinf8ede0f2009-11-17 01:32:59 +080038 select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080039 select CPU_HAS_WB
40 select CS5536
Wu Zhangjinf8ede0f2009-11-17 01:32:59 +080041 select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080042 select DMA_NONCOHERENT
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080043 select GENERIC_ISA_DMA_SUPPORT_BROKEN
Ralf Baechle95cf1462012-08-01 17:15:32 +020044 select HAVE_CLK
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080045 select HW_HAS_PCI
46 select I8259
Ralf Baechle67e38cf2015-05-26 18:20:06 +020047 select IRQ_MIPS_CPU
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080048 select ISA
49 select SYS_HAS_CPU_LOONGSON2F
50 select SYS_HAS_EARLY_PRINTK
51 select SYS_SUPPORTS_32BIT_KERNEL
52 select SYS_SUPPORTS_64BIT_KERNEL
53 select SYS_SUPPORTS_HIGHMEM
54 select SYS_SUPPORTS_LITTLE_ENDIAN
Arnaud Patard5df74352010-06-02 00:39:54 +020055 select LOONGSON_MC146818
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080056 help
57 Lemote Loongson 2F family machines utilize the 2F revision of
58 Loongson processor and the AMD CS5536 south bridge.
59
60 These family machines include fuloong2f mini PC, yeeloong2f notebook,
61 LingLoong allinone PC and so forth.
Huacai Chen0e476d92014-03-21 18:44:07 +080062
Huacai Chen5a21e0b2014-06-26 11:41:32 +080063config LOONGSON_MACH3X
64 bool "Generic Loongson 3 family machines"
Huacai Chen0e476d92014-03-21 18:44:07 +080065 select ARCH_SPARSEMEM_ENABLE
66 select GENERIC_ISA_DMA_SUPPORT_BROKEN
Huacai Chen0e476d92014-03-21 18:44:07 +080067 select BOOT_ELF32
68 select BOARD_SCACHE
69 select CSRC_R4K
70 select CEVT_R4K
71 select CPU_HAS_WB
72 select HW_HAS_PCI
73 select ISA
74 select HT_PCI
75 select I8259
Ralf Baechle67e38cf2015-05-26 18:20:06 +020076 select IRQ_MIPS_CPU
Huacai Chen0e476d92014-03-21 18:44:07 +080077 select NR_CPUS_DEFAULT_4
78 select SYS_HAS_CPU_LOONGSON3
79 select SYS_HAS_EARLY_PRINTK
80 select SYS_SUPPORTS_SMP
Huacai Chenc4a987d2014-03-21 18:44:09 +080081 select SYS_SUPPORTS_HOTPLUG_CPU
Huacai Chenc4617312014-06-26 11:41:28 +080082 select SYS_SUPPORTS_NUMA
Huacai Chen0e476d92014-03-21 18:44:07 +080083 select SYS_SUPPORTS_64BIT_KERNEL
84 select SYS_SUPPORTS_HIGHMEM
85 select SYS_SUPPORTS_LITTLE_ENDIAN
86 select LOONGSON_MC146818
87 select ZONE_DMA32
88 select LEFI_FIRMWARE_INTERFACE
Huacai Chenf4906822014-11-04 14:13:24 +080089 select PHYS48_TO_HT40
Huacai Chen0e476d92014-03-21 18:44:07 +080090 help
Huacai Chen5a21e0b2014-06-26 11:41:32 +080091 Generic Loongson 3 family machines utilize the 3A/3B revision
92 of Loongson processor and RS780/SBX00 chipset.
Wu Zhangjin85749d22009-07-02 23:26:45 +080093endchoice
Wu Zhangjin22c21002009-11-10 00:06:12 +080094
95config CS5536
96 bool
Wu Zhangjinf181bf62009-11-11 14:57:05 +080097
Wu Zhangjin916daba2009-11-17 01:32:57 +080098config CS5536_MFGPT
99 bool "CS5536 MFGPT Timer"
Sebastian Andrzej Siewior4fd4db42014-05-13 17:07:05 +0200100 depends on CS5536 && !HIGH_RES_TIMERS
Wu Zhangjinf8ede0f2009-11-17 01:32:59 +0800101 select MIPS_EXTERNAL_TIMER
Wu Zhangjin916daba2009-11-17 01:32:57 +0800102 help
Sebastian Andrzej Siewior4fd4db42014-05-13 17:07:05 +0200103 This option enables the mfgpt0 timer of AMD CS5536. With this timer
104 switched on you can not use high resolution timers.
Wu Zhangjin916daba2009-11-17 01:32:57 +0800105
106 If you want to enable the Loongson2 CPUFreq Driver, Please enable
107 this option at first, otherwise, You will get wrong system time.
108
109 If unsure, say Yes.
110
Huacai Chene292ccd2014-11-04 14:15:31 +0800111config RS780_HPET
112 bool "RS780/SBX00 HPET Timer"
113 depends on LOONGSON_MACH3X
114 select MIPS_EXTERNAL_TIMER
115 help
116 This option enables the hpet timer of AMD RS780/SBX00.
117
118 If you want to enable the Loongson3 CPUFreq Driver, Please enable
119 this option at first, otherwise, You will get wrong system time.
120
121 If unsure, say Yes.
122
Wu Zhangjinc3d8d852009-11-28 14:21:50 +0800123config LOONGSON_UART_BASE
124 bool
125 default y
126 depends on EARLY_PRINTK || SERIAL_8250
Arnaud Patard5df74352010-06-02 00:39:54 +0200127
Huacai Chen0e476d92014-03-21 18:44:07 +0800128config IOMMU_HELPER
129 bool
130
131config NEED_SG_DMA_LENGTH
132 bool
133
134config SWIOTLB
135 bool "Soft IOMMU Support for All-Memory DMA"
136 default y
137 depends on CPU_LOONGSON3
138 select IOMMU_HELPER
139 select NEED_SG_DMA_LENGTH
140 select NEED_DMA_MAP_STATE
141
Huacai Chenf4906822014-11-04 14:13:24 +0800142config PHYS48_TO_HT40
143 bool
144 default y if CPU_LOONGSON3
145
Arnaud Patard5df74352010-06-02 00:39:54 +0200146config LOONGSON_MC146818
147 bool
148 default n
Yoichi Yuasaefe8dc52011-02-07 11:31:36 +0900149
Huacai Chen0e476d92014-03-21 18:44:07 +0800150config LEFI_FIRMWARE_INTERFACE
151 bool
152
Huacai Chen30ad29b2015-04-21 10:00:35 +0800153endif # MACH_LOONGSON64