Yoichi Yuasa | efe8dc5 | 2011-02-07 11:31:36 +0900 | [diff] [blame] | 1 | if MACH_LOONGSON |
| 2 | |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 3 | choice |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 4 | prompt "Machine Type" |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 5 | |
| 6 | config LEMOTE_FULOONG2E |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 7 | 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 |
| 18 | select IRQ_CPU |
| 19 | 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 Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 24 | select GENERIC_ISA_DMA_SUPPORT_BROKEN |
| 25 | select CPU_HAS_WB |
Arnaud Patard | 5df7435 | 2010-06-02 00:39:54 +0200 | [diff] [blame] | 26 | select LOONGSON_MC146818 |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 27 | help |
| 28 | Lemote Fuloong(2e) mini-PC board based on the Chinese Loongson-2E CPU and |
| 29 | an FPGA northbridge |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 30 | |
Wu Zhangjin | f6d4ff0 | 2009-10-16 14:17:14 +0800 | [diff] [blame] | 31 | Lemote Fuloong(2e) mini PC have a VIA686B south bridge. |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 32 | |
| 33 | config LEMOTE_MACH2F |
| 34 | bool "Lemote Loongson 2F family machines" |
| 35 | select ARCH_SPARSEMEM_ENABLE |
| 36 | select BOARD_SCACHE |
| 37 | select BOOT_ELF32 |
Wu Zhangjin | f8ede0f | 2009-11-17 01:32:59 +0800 | [diff] [blame] | 38 | select CEVT_R4K if ! MIPS_EXTERNAL_TIMER |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 39 | select CPU_HAS_WB |
| 40 | select CS5536 |
Wu Zhangjin | f8ede0f | 2009-11-17 01:32:59 +0800 | [diff] [blame] | 41 | select CSRC_R4K if ! MIPS_EXTERNAL_TIMER |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 42 | select DMA_NONCOHERENT |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 43 | select GENERIC_ISA_DMA_SUPPORT_BROKEN |
Ralf Baechle | 95cf1468 | 2012-08-01 17:15:32 +0200 | [diff] [blame] | 44 | select HAVE_CLK |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 45 | select HW_HAS_PCI |
| 46 | select I8259 |
| 47 | select IRQ_CPU |
| 48 | 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 Patard | 5df7435 | 2010-06-02 00:39:54 +0200 | [diff] [blame] | 55 | select LOONGSON_MC146818 |
Wu Zhangjin | 7d32c6d | 2009-11-10 00:06:10 +0800 | [diff] [blame] | 56 | 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 Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 62 | |
Huacai Chen | 5a21e0b | 2014-06-26 11:41:32 +0800 | [diff] [blame] | 63 | config LOONGSON_MACH3X |
| 64 | bool "Generic Loongson 3 family machines" |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 65 | select ARCH_SPARSEMEM_ENABLE |
| 66 | select GENERIC_ISA_DMA_SUPPORT_BROKEN |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 67 | 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 |
| 76 | select IRQ_CPU |
| 77 | select NR_CPUS_DEFAULT_4 |
| 78 | select SYS_HAS_CPU_LOONGSON3 |
| 79 | select SYS_HAS_EARLY_PRINTK |
| 80 | select SYS_SUPPORTS_SMP |
Huacai Chen | c4a987d | 2014-03-21 18:44:09 +0800 | [diff] [blame] | 81 | select SYS_SUPPORTS_HOTPLUG_CPU |
Huacai Chen | c461731 | 2014-06-26 11:41:28 +0800 | [diff] [blame] | 82 | select SYS_SUPPORTS_NUMA |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 83 | 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 |
| 89 | help |
Huacai Chen | 5a21e0b | 2014-06-26 11:41:32 +0800 | [diff] [blame] | 90 | Generic Loongson 3 family machines utilize the 3A/3B revision |
| 91 | of Loongson processor and RS780/SBX00 chipset. |
Wu Zhangjin | 85749d2 | 2009-07-02 23:26:45 +0800 | [diff] [blame] | 92 | endchoice |
Wu Zhangjin | 22c2100 | 2009-11-10 00:06:12 +0800 | [diff] [blame] | 93 | |
| 94 | config CS5536 |
| 95 | bool |
Wu Zhangjin | f181bf6 | 2009-11-11 14:57:05 +0800 | [diff] [blame] | 96 | |
Wu Zhangjin | 916daba | 2009-11-17 01:32:57 +0800 | [diff] [blame] | 97 | config CS5536_MFGPT |
| 98 | bool "CS5536 MFGPT Timer" |
Sebastian Andrzej Siewior | 4fd4db4 | 2014-05-13 17:07:05 +0200 | [diff] [blame] | 99 | depends on CS5536 && !HIGH_RES_TIMERS |
Wu Zhangjin | f8ede0f | 2009-11-17 01:32:59 +0800 | [diff] [blame] | 100 | select MIPS_EXTERNAL_TIMER |
Wu Zhangjin | 916daba | 2009-11-17 01:32:57 +0800 | [diff] [blame] | 101 | help |
Sebastian Andrzej Siewior | 4fd4db4 | 2014-05-13 17:07:05 +0200 | [diff] [blame] | 102 | This option enables the mfgpt0 timer of AMD CS5536. With this timer |
| 103 | switched on you can not use high resolution timers. |
Wu Zhangjin | 916daba | 2009-11-17 01:32:57 +0800 | [diff] [blame] | 104 | |
| 105 | If you want to enable the Loongson2 CPUFreq Driver, Please enable |
| 106 | this option at first, otherwise, You will get wrong system time. |
| 107 | |
| 108 | If unsure, say Yes. |
| 109 | |
Wu Zhangjin | f181bf6 | 2009-11-11 14:57:05 +0800 | [diff] [blame] | 110 | config LOONGSON_SUSPEND |
| 111 | bool |
| 112 | default y |
| 113 | depends on CPU_SUPPORTS_CPUFREQ && SUSPEND |
Wu Zhangjin | c3d8d85 | 2009-11-28 14:21:50 +0800 | [diff] [blame] | 114 | |
| 115 | config LOONGSON_UART_BASE |
| 116 | bool |
| 117 | default y |
| 118 | depends on EARLY_PRINTK || SERIAL_8250 |
Arnaud Patard | 5df7435 | 2010-06-02 00:39:54 +0200 | [diff] [blame] | 119 | |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 120 | config IOMMU_HELPER |
| 121 | bool |
| 122 | |
| 123 | config NEED_SG_DMA_LENGTH |
| 124 | bool |
| 125 | |
| 126 | config SWIOTLB |
| 127 | bool "Soft IOMMU Support for All-Memory DMA" |
| 128 | default y |
| 129 | depends on CPU_LOONGSON3 |
| 130 | select IOMMU_HELPER |
| 131 | select NEED_SG_DMA_LENGTH |
| 132 | select NEED_DMA_MAP_STATE |
| 133 | |
Arnaud Patard | 5df7435 | 2010-06-02 00:39:54 +0200 | [diff] [blame] | 134 | config LOONGSON_MC146818 |
| 135 | bool |
| 136 | default n |
Yoichi Yuasa | efe8dc5 | 2011-02-07 11:31:36 +0900 | [diff] [blame] | 137 | |
Huacai Chen | 0e476d9 | 2014-03-21 18:44:07 +0800 | [diff] [blame] | 138 | config LEFI_FIRMWARE_INTERFACE |
| 139 | bool |
| 140 | |
Yoichi Yuasa | efe8dc5 | 2011-02-07 11:31:36 +0900 | [diff] [blame] | 141 | endif # MACH_LOONGSON |