blob: 4c14a11525f414a282b4dbadeaea66e7b583fd77 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Huacai Chen30ad29b2015-04-21 10:00:35 +08002if MACH_LOONGSON64
Yoichi Yuasaefe8dc52011-02-07 11:31:36 +09003
Wu Zhangjin85749d22009-07-02 23:26:45 +08004choice
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +08005 prompt "Machine Type"
Wu Zhangjin85749d22009-07-02 23:26:45 +08006
7config LEMOTE_FULOONG2E
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +08008 bool "Lemote Fuloong(2e) mini-PC"
9 select ARCH_SPARSEMEM_ENABLE
Huacai Chen6cfc70c2018-03-01 10:37:41 +080010 select ARCH_MIGHT_HAVE_PC_PARPORT
Huacai Chenee2515d2018-03-01 10:37:42 +080011 select ARCH_MIGHT_HAVE_PC_SERIO
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080012 select CEVT_R4K
13 select CSRC_R4K
14 select SYS_HAS_CPU_LOONGSON2E
15 select DMA_NONCOHERENT
16 select BOOT_ELF32
17 select BOARD_SCACHE
Christoph Hellwigeb01d422018-11-15 20:05:32 +010018 select HAVE_PCI
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080019 select I8259
20 select ISA
Ralf Baechle67e38cf2015-05-26 18:20:06 +020021 select IRQ_MIPS_CPU
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080022 select SYS_SUPPORTS_64BIT_KERNEL
23 select SYS_SUPPORTS_LITTLE_ENDIAN
24 select SYS_SUPPORTS_HIGHMEM
25 select SYS_HAS_EARLY_PRINTK
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080026 select GENERIC_ISA_DMA_SUPPORT_BROKEN
27 select CPU_HAS_WB
Arnaud Patard5df74352010-06-02 00:39:54 +020028 select LOONGSON_MC146818
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080029 help
30 Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and
31 an FPGA northbridge
Wu Zhangjin85749d22009-07-02 23:26:45 +080032
Wu Zhangjinf6d4ff02009-10-16 14:17:14 +080033 Lemote Fuloong(2e) mini PC have a VIA686B south bridge.
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080034
35config LEMOTE_MACH2F
36 bool "Lemote Loongson 2F family machines"
37 select ARCH_SPARSEMEM_ENABLE
Huacai Chen6cfc70c2018-03-01 10:37:41 +080038 select ARCH_MIGHT_HAVE_PC_PARPORT
Huacai Chenee2515d2018-03-01 10:37:42 +080039 select ARCH_MIGHT_HAVE_PC_SERIO
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080040 select BOARD_SCACHE
41 select BOOT_ELF32
Wu Zhangjinf8ede0f2009-11-17 01:32:59 +080042 select CEVT_R4K if ! MIPS_EXTERNAL_TIMER
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080043 select CPU_HAS_WB
44 select CS5536
Wu Zhangjinf8ede0f2009-11-17 01:32:59 +080045 select CSRC_R4K if ! MIPS_EXTERNAL_TIMER
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080046 select DMA_NONCOHERENT
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080047 select GENERIC_ISA_DMA_SUPPORT_BROKEN
Ralf Baechle95cf1462012-08-01 17:15:32 +020048 select HAVE_CLK
Christoph Hellwigeb01d422018-11-15 20:05:32 +010049 select HAVE_PCI
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080050 select I8259
Ralf Baechle67e38cf2015-05-26 18:20:06 +020051 select IRQ_MIPS_CPU
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080052 select ISA
53 select SYS_HAS_CPU_LOONGSON2F
54 select SYS_HAS_EARLY_PRINTK
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080055 select SYS_SUPPORTS_64BIT_KERNEL
56 select SYS_SUPPORTS_HIGHMEM
57 select SYS_SUPPORTS_LITTLE_ENDIAN
Arnaud Patard5df74352010-06-02 00:39:54 +020058 select LOONGSON_MC146818
Wu Zhangjin7d32c6d2009-11-10 00:06:10 +080059 help
60 Lemote Loongson 2F family machines utilize the 2F revision of
61 Loongson processor and the AMD CS5536 south bridge.
62
63 These family machines include fuloong2f mini PC, yeeloong2f notebook,
64 LingLoong allinone PC and so forth.
Huacai Chen0e476d92014-03-21 18:44:07 +080065
Huacai Chen5a21e0b2014-06-26 11:41:32 +080066config LOONGSON_MACH3X
67 bool "Generic Loongson 3 family machines"
Huacai Chen0e476d92014-03-21 18:44:07 +080068 select ARCH_SPARSEMEM_ENABLE
Huacai Chen6cfc70c2018-03-01 10:37:41 +080069 select ARCH_MIGHT_HAVE_PC_PARPORT
Huacai Chenee2515d2018-03-01 10:37:42 +080070 select ARCH_MIGHT_HAVE_PC_SERIO
Huacai Chen0e476d92014-03-21 18:44:07 +080071 select GENERIC_ISA_DMA_SUPPORT_BROKEN
Huacai Chen0e476d92014-03-21 18:44:07 +080072 select BOOT_ELF32
73 select BOARD_SCACHE
74 select CSRC_R4K
75 select CEVT_R4K
76 select CPU_HAS_WB
Christoph Hellwigeb01d422018-11-15 20:05:32 +010077 select FORCE_PCI
Huacai Chen0e476d92014-03-21 18:44:07 +080078 select ISA
Huacai Chen0e476d92014-03-21 18:44:07 +080079 select I8259
Ralf Baechle67e38cf2015-05-26 18:20:06 +020080 select IRQ_MIPS_CPU
Huacai Chen0e476d92014-03-21 18:44:07 +080081 select NR_CPUS_DEFAULT_4
82 select SYS_HAS_CPU_LOONGSON3
83 select SYS_HAS_EARLY_PRINTK
84 select SYS_SUPPORTS_SMP
Huacai Chenc4a987d2014-03-21 18:44:09 +080085 select SYS_SUPPORTS_HOTPLUG_CPU
Huacai Chenc4617312014-06-26 11:41:28 +080086 select SYS_SUPPORTS_NUMA
Huacai Chen0e476d92014-03-21 18:44:07 +080087 select SYS_SUPPORTS_64BIT_KERNEL
88 select SYS_SUPPORTS_HIGHMEM
89 select SYS_SUPPORTS_LITTLE_ENDIAN
90 select LOONGSON_MC146818
91 select ZONE_DMA32
92 select LEFI_FIRMWARE_INTERFACE
93 help
Huacai Chen5a21e0b2014-06-26 11:41:32 +080094 Generic Loongson 3 family machines utilize the 3A/3B revision
95 of Loongson processor and RS780/SBX00 chipset.
Wu Zhangjin85749d22009-07-02 23:26:45 +080096endchoice
Wu Zhangjin22c21002009-11-10 00:06:12 +080097
98config CS5536
99 bool
Wu Zhangjinf181bf62009-11-11 14:57:05 +0800100
Wu Zhangjin916daba2009-11-17 01:32:57 +0800101config CS5536_MFGPT
102 bool "CS5536 MFGPT Timer"
Sebastian Andrzej Siewior4fd4db42014-05-13 17:07:05 +0200103 depends on CS5536 && !HIGH_RES_TIMERS
Wu Zhangjinf8ede0f2009-11-17 01:32:59 +0800104 select MIPS_EXTERNAL_TIMER
Wu Zhangjin916daba2009-11-17 01:32:57 +0800105 help
Sebastian Andrzej Siewior4fd4db42014-05-13 17:07:05 +0200106 This option enables the mfgpt0 timer of AMD CS5536. With this timer
107 switched on you can not use high resolution timers.
Wu Zhangjin916daba2009-11-17 01:32:57 +0800108
109 If you want to enable the Loongson2 CPUFreq Driver, Please enable
110 this option at first, otherwise, You will get wrong system time.
111
112 If unsure, say Yes.
113
Huacai Chene292ccd2014-11-04 14:15:31 +0800114config RS780_HPET
115 bool "RS780/SBX00 HPET Timer"
116 depends on LOONGSON_MACH3X
117 select MIPS_EXTERNAL_TIMER
118 help
119 This option enables the hpet timer of AMD RS780/SBX00.
120
121 If you want to enable the Loongson3 CPUFreq Driver, Please enable
122 this option at first, otherwise, You will get wrong system time.
123
124 If unsure, say Yes.
125
Wu Zhangjinc3d8d852009-11-28 14:21:50 +0800126config LOONGSON_UART_BASE
127 bool
128 default y
129 depends on EARLY_PRINTK || SERIAL_8250
Arnaud Patard5df74352010-06-02 00:39:54 +0200130
131config LOONGSON_MC146818
132 bool
133 default n
Yoichi Yuasaefe8dc52011-02-07 11:31:36 +0900134
Huacai Chen0e476d92014-03-21 18:44:07 +0800135config LEFI_FIRMWARE_INTERFACE
136 bool
137
Huacai Chen30ad29b2015-04-21 10:00:35 +0800138endif # MACH_LOONGSON64