Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Huacai Chen | 30ad29b | 2015-04-21 10:00:35 +0800 | [diff] [blame] | 2 | if MACH_LOONGSON64 |
Yoichi Yuasa | efe8dc5 | 2011-02-07 11:31:36 +0900 | [diff] [blame] | 3 | |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 4 | choice |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 5 | prompt "Machine Type" |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 6 | |
| 7 | config LEMOTE_FULOONG2E |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 8 | bool "Lemote Fuloong(2e) mini-PC" |
| 9 | select ARCH_SPARSEMEM_ENABLE |
Huacai Chen | 6cfc70c | 2018-03-01 10:37:41 +0800 | [diff] [blame] | 10 | select ARCH_MIGHT_HAVE_PC_PARPORT |
Huacai Chen | ee2515d | 2018-03-01 10:37:42 +0800 | [diff] [blame] | 11 | select ARCH_MIGHT_HAVE_PC_SERIO |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 12 | 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 Hellwig | eb01d42 | 2018-11-15 20:05:32 +0100 | [diff] [blame] | 18 | select HAVE_PCI |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 19 | select I8259 |
| 20 | select ISA |
Ralf Baechle | 67e38cf | 2015-05-26 18:20:06 +0200 | [diff] [blame] | 21 | select IRQ_MIPS_CPU |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 22 | select SYS_SUPPORTS_64BIT_KERNEL |
| 23 | select SYS_SUPPORTS_LITTLE_ENDIAN |
| 24 | select SYS_SUPPORTS_HIGHMEM |
| 25 | select SYS_HAS_EARLY_PRINTK |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 26 | select GENERIC_ISA_DMA_SUPPORT_BROKEN |
| 27 | select CPU_HAS_WB |
Arnaud Patard | 5df7435 | 2010-06-02 00:39:54 +0200 | [diff] [blame] | 28 | select LOONGSON_MC146818 |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 29 | help |
| 30 | Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and |
| 31 | an FPGA northbridge |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 32 | |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 33 | Lemote Fuloong(2e) mini PC have a VIA686B south bridge. |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 34 | |
| 35 | config LEMOTE_MACH2F |
| 36 | bool "Lemote Loongson 2F family machines" |
| 37 | select ARCH_SPARSEMEM_ENABLE |
Huacai Chen | 6cfc70c | 2018-03-01 10:37:41 +0800 | [diff] [blame] | 38 | select ARCH_MIGHT_HAVE_PC_PARPORT |
Huacai Chen | ee2515d | 2018-03-01 10:37:42 +0800 | [diff] [blame] | 39 | select ARCH_MIGHT_HAVE_PC_SERIO |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 40 | select BOARD_SCACHE |
| 41 | select BOOT_ELF32 |
Wu Zhangjin | f8ede0f | 2009-11-17 01:32:59 +0800 | [diff] [blame] | 42 | select CEVT_R4K if ! MIPS_EXTERNAL_TIMER |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 43 | select CPU_HAS_WB |
| 44 | select CS5536 |
Wu Zhangjin | f8ede0f | 2009-11-17 01:32:59 +0800 | [diff] [blame] | 45 | select CSRC_R4K if ! MIPS_EXTERNAL_TIMER |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 46 | select DMA_NONCOHERENT |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 47 | select GENERIC_ISA_DMA_SUPPORT_BROKEN |
Ralf Baechle | 95cf146 | 2012-08-01 17:15:32 +0200 | [diff] [blame] | 48 | select HAVE_CLK |
Christoph Hellwig | eb01d42 | 2018-11-15 20:05:32 +0100 | [diff] [blame] | 49 | select HAVE_PCI |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 50 | select I8259 |
Ralf Baechle | 67e38cf | 2015-05-26 18:20:06 +0200 | [diff] [blame] | 51 | select IRQ_MIPS_CPU |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 52 | select ISA |
| 53 | select SYS_HAS_CPU_LOONGSON2F |
| 54 | select SYS_HAS_EARLY_PRINTK |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 55 | select SYS_SUPPORTS_64BIT_KERNEL |
| 56 | select SYS_SUPPORTS_HIGHMEM |
| 57 | select SYS_SUPPORTS_LITTLE_ENDIAN |
Arnaud Patard | 5df7435 | 2010-06-02 00:39:54 +0200 | [diff] [blame] | 58 | select LOONGSON_MC146818 |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 59 | 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 Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 65 | |
Huacai Chen | 5a21e0b | 2014-06-26 11:41:32 +0800 | [diff] [blame] | 66 | config LOONGSON_MACH3X |
| 67 | bool "Generic Loongson 3 family machines" |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 68 | select ARCH_SPARSEMEM_ENABLE |
Huacai Chen | 6cfc70c | 2018-03-01 10:37:41 +0800 | [diff] [blame] | 69 | select ARCH_MIGHT_HAVE_PC_PARPORT |
Huacai Chen | ee2515d | 2018-03-01 10:37:42 +0800 | [diff] [blame] | 70 | select ARCH_MIGHT_HAVE_PC_SERIO |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 71 | select GENERIC_ISA_DMA_SUPPORT_BROKEN |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 72 | select BOOT_ELF32 |
| 73 | select BOARD_SCACHE |
| 74 | select CSRC_R4K |
| 75 | select CEVT_R4K |
| 76 | select CPU_HAS_WB |
Christoph Hellwig | eb01d42 | 2018-11-15 20:05:32 +0100 | [diff] [blame] | 77 | select FORCE_PCI |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 78 | select ISA |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 79 | select I8259 |
Ralf Baechle | 67e38cf | 2015-05-26 18:20:06 +0200 | [diff] [blame] | 80 | select IRQ_MIPS_CPU |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 81 | select NR_CPUS_DEFAULT_4 |
| 82 | select SYS_HAS_CPU_LOONGSON3 |
| 83 | select SYS_HAS_EARLY_PRINTK |
| 84 | select SYS_SUPPORTS_SMP |
Huacai Chen | c4a987d | 2014-03-21 18:44:09 +0800 | [diff] [blame] | 85 | select SYS_SUPPORTS_HOTPLUG_CPU |
Huacai Chen | c461731 | 2014-06-26 11:41:28 +0800 | [diff] [blame] | 86 | select SYS_SUPPORTS_NUMA |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 87 | 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 Chen | 5a21e0b | 2014-06-26 11:41:32 +0800 | [diff] [blame] | 94 | Generic Loongson 3 family machines utilize the 3A/3B revision |
| 95 | of Loongson processor and RS780/SBX00 chipset. |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 96 | endchoice |
Wu Zhangjin | 22c2100 | 2009-11-10 00:06:12 +0800 | [diff] [blame] | 97 | |
| 98 | config CS5536 |
| 99 | bool |
Wu Zhangjin | f181bf6 | 2009-11-11 14:57:05 +0800 | [diff] [blame] | 100 | |
Wu Zhangjin | 916daba | 2009-11-17 01:32:57 +0800 | [diff] [blame] | 101 | config CS5536_MFGPT |
| 102 | bool "CS5536 MFGPT Timer" |
Sebastian Andrzej Siewior | 4fd4db4 | 2014-05-13 17:07:05 +0200 | [diff] [blame] | 103 | depends on CS5536 && !HIGH_RES_TIMERS |
Wu Zhangjin | f8ede0f | 2009-11-17 01:32:59 +0800 | [diff] [blame] | 104 | select MIPS_EXTERNAL_TIMER |
Wu Zhangjin | 916daba | 2009-11-17 01:32:57 +0800 | [diff] [blame] | 105 | help |
Sebastian Andrzej Siewior | 4fd4db4 | 2014-05-13 17:07:05 +0200 | [diff] [blame] | 106 | This option enables the mfgpt0 timer of AMD CS5536. With this timer |
| 107 | switched on you can not use high resolution timers. |
Wu Zhangjin | 916daba | 2009-11-17 01:32:57 +0800 | [diff] [blame] | 108 | |
| 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 Chen | e292ccd | 2014-11-04 14:15:31 +0800 | [diff] [blame] | 114 | config 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 Zhangjin | c3d8d85 | 2009-11-28 14:21:50 +0800 | [diff] [blame] | 126 | config LOONGSON_UART_BASE |
| 127 | bool |
| 128 | default y |
| 129 | depends on EARLY_PRINTK || SERIAL_8250 |
Arnaud Patard | 5df7435 | 2010-06-02 00:39:54 +0200 | [diff] [blame] | 130 | |
| 131 | config LOONGSON_MC146818 |
| 132 | bool |
| 133 | default n |
Yoichi Yuasa | efe8dc5 | 2011-02-07 11:31:36 +0900 | [diff] [blame] | 134 | |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 135 | config LEFI_FIRMWARE_INTERFACE |
| 136 | bool |
| 137 | |
Huacai Chen | 30ad29b | 2015-04-21 10:00:35 +0800 | [diff] [blame] | 138 | endif # MACH_LOONGSON64 |