@@ -479,6 +479,23 @@ config LANTIQ
479479
480480config MACH_LOONGSON32
481481 bool "Loongson 32-bit family of machines"
482+ select MACH_GENERIC_CORE
483+ select USE_OF
484+ select BUILTIN_DTB
485+ select BOOT_ELF32
486+ select CEVT_R4K
487+ select CSRC_R4K
488+ select COMMON_CLK
489+ select DMA_NONCOHERENT
490+ select GENERIC_IRQ_SHOW_LEVEL
491+ select IRQ_MIPS_CPU
492+ select LS1X_IRQ
493+ select SYS_HAS_CPU_LOONGSON32
494+ select SYS_HAS_EARLY_PRINTK
495+ select USE_GENERIC_EARLY_PRINTK_8250
496+ select SYS_SUPPORTS_32BIT_KERNEL
497+ select SYS_SUPPORTS_LITTLE_ENDIAN
498+ select SYS_SUPPORTS_HIGHMEM
482499 select SYS_SUPPORTS_ZBOOT
483500 help
484501 This enables support for the Loongson-1 family of machines.
@@ -1385,25 +1402,20 @@ config CPU_LOONGSON2F
13851402 have a similar programming interface with FPGA northbridge used in
13861403 Loongson2E.
13871404
1388- config CPU_LOONGSON1B
1389- bool "Loongson 1B"
1390- depends on SYS_HAS_CPU_LOONGSON1B
1391- select CPU_LOONGSON32
1392- select LEDS_GPIO_REGISTER
1393- help
1394- The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1395- Release 1 instruction set and part of the MIPS32 Release 2
1396- instruction set.
1397-
1398- config CPU_LOONGSON1C
1399- bool "Loongson 1C"
1400- depends on SYS_HAS_CPU_LOONGSON1C
1401- select CPU_LOONGSON32
1405+ config CPU_LOONGSON32
1406+ bool "Loongson 32-bit CPU"
1407+ depends on SYS_HAS_CPU_LOONGSON32
1408+ select CPU_MIPS32
1409+ select CPU_MIPSR2
1410+ select CPU_HAS_PREFETCH
1411+ select CPU_HAS_LOAD_STORE_LR
1412+ select CPU_SUPPORTS_32BIT_KERNEL
1413+ select CPU_SUPPORTS_HIGHMEM
1414+ select CPU_SUPPORTS_CPUFREQ
14021415 select LEDS_GPIO_REGISTER
14031416 help
1404- The Loongson 1C is a 32-bit SoC, which implements the MIPS32
1405- Release 1 instruction set and part of the MIPS32 Release 2
1406- instruction set.
1417+ The Loongson GS232 microarchitecture implements the MIPS32 Release 1
1418+ instruction set and part of the MIPS32 Release 2 instruction set.
14071419
14081420config CPU_MIPS32_R1
14091421 bool "MIPS32 Release 1"
@@ -1838,15 +1850,6 @@ config CPU_LOONGSON2EF
18381850 select CPU_SUPPORTS_HUGEPAGES
18391851 select RTC_MC146818_LIB
18401852
1841- config CPU_LOONGSON32
1842- bool
1843- select CPU_MIPS32
1844- select CPU_MIPSR2
1845- select CPU_HAS_PREFETCH
1846- select CPU_SUPPORTS_32BIT_KERNEL
1847- select CPU_SUPPORTS_HIGHMEM
1848- select CPU_SUPPORTS_CPUFREQ
1849-
18501853config CPU_BMIPS32_3300
18511854 select SMP_UP if SMP
18521855 bool
@@ -1884,10 +1887,7 @@ config SYS_HAS_CPU_LOONGSON2F
18841887 select CPU_SUPPORTS_CPUFREQ
18851888 select CPU_SUPPORTS_ADDRWINCFG if 64BIT
18861889
1887- config SYS_HAS_CPU_LOONGSON1B
1888- bool
1889-
1890- config SYS_HAS_CPU_LOONGSON1C
1890+ config SYS_HAS_CPU_LOONGSON32
18911891 bool
18921892
18931893config SYS_HAS_CPU_MIPS32_R1
@@ -2986,8 +2986,8 @@ choice
29862986 prompt "Kernel command line type"
29872987 depends on !CMDLINE_OVERRIDE
29882988 default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
2989- !MACH_LOONGSON64 && !MIPS_MALTA && \
2990- !CAVIUM_OCTEON_SOC
2989+ !MACH_LOONGSON64 && !MACH_LOONGSON32 && \
2990+ !MIPS_MALTA && ! CAVIUM_OCTEON_SOC
29912991 default MIPS_CMDLINE_FROM_BOOTLOADER
29922992
29932993 config MIPS_CMDLINE_FROM_DTB
0 commit comments