diff options
author | Huacai Chen <chenhc@lemote.com> | 2015-04-21 10:00:35 +0800 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-21 21:53:59 +0200 |
commit | 30ad29bb48881ee11f5daf30c6fc50292ae08c57 (patch) | |
tree | d899b18a17e6269123ff2795f2e6d832523f1fb9 /arch | |
parent | abcc82b19fa9b4f41e02f28715005851b580163d (diff) | |
download | linux-30ad29bb48881ee11f5daf30c6fc50292ae08c57.tar.gz linux-30ad29bb48881ee11f5daf30c6fc50292ae08c57.tar.bz2 linux-30ad29bb48881ee11f5daf30c6fc50292ae08c57.zip |
MIPS: Loongson: Naming style cleanup and rework
Currently, code of Loongson-2/3 is under loongson directory and code of
Loongson-1 is under loongson1 directory. Besides, there are Kconfig
options such as MACH_LOONGSON and MACH_LOONGSON1. This naming style is
very ugly and confusing. Since Loongson-2/3 are both 64-bit general-
purpose CPU while Loongson-1 is 32-bit SoC, we rename both file names
and Kconfig symbols from loongson/loongson1 to loongson64/loongson32.
[ralf@linux-mips.org: Resolve a number of simple conflicts.]
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Cc: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: Kelvin Cheung <keguang.zhang@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/9790/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/Kbuild.platforms | 4 | ||||
-rw-r--r-- | arch/mips/Kconfig | 34 | ||||
-rw-r--r-- | arch/mips/boot/compressed/uart-16550.c | 2 | ||||
-rw-r--r-- | arch/mips/configs/fuloong2e_defconfig | 2 | ||||
-rw-r--r-- | arch/mips/configs/lemote2f_defconfig | 2 | ||||
-rw-r--r-- | arch/mips/configs/loongson3_defconfig | 2 | ||||
-rw-r--r-- | arch/mips/configs/ls1b_defconfig | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson/workarounds.h | 7 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson32/cpufreq.h (renamed from arch/mips/include/asm/mach-loongson1/cpufreq.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson32/irq.h (renamed from arch/mips/include/asm/mach-loongson1/irq.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson32/loongson1.h (renamed from arch/mips/include/asm/mach-loongson1/loongson1.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson32/platform.h (renamed from arch/mips/include/asm/mach-loongson1/platform.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson32/prom.h (renamed from arch/mips/include/asm/mach-loongson1/prom.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson32/regs-clk.h (renamed from arch/mips/include/asm/mach-loongson1/regs-clk.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson32/regs-mux.h (renamed from arch/mips/include/asm/mach-loongson1/regs-mux.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson32/regs-pwm.h (renamed from arch/mips/include/asm/mach-loongson1/regs-pwm.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson32/regs-wdt.h (renamed from arch/mips/include/asm/mach-loongson1/regs-wdt.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/boot_param.h (renamed from arch/mips/include/asm/mach-loongson/boot_param.h) | 4 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h (renamed from arch/mips/include/asm/mach-loongson/cpu-feature-overrides.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/cs5536/cs5536.h (renamed from arch/mips/include/asm/mach-loongson/cs5536/cs5536.h) | 0 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/cs5536/cs5536_mfgpt.h (renamed from arch/mips/include/asm/mach-loongson/cs5536/cs5536_mfgpt.h) | 0 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/cs5536/cs5536_pci.h (renamed from arch/mips/include/asm/mach-loongson/cs5536/cs5536_pci.h) | 0 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/cs5536/cs5536_vsm.h (renamed from arch/mips/include/asm/mach-loongson/cs5536/cs5536_vsm.h) | 0 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/dma-coherence.h (renamed from arch/mips/include/asm/mach-loongson/dma-coherence.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/gpio.h (renamed from arch/mips/include/asm/mach-loongson/gpio.h) | 0 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/irq.h (renamed from arch/mips/include/asm/mach-loongson/irq.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/kernel-entry-init.h (renamed from arch/mips/include/asm/mach-loongson/kernel-entry-init.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/loongson.h (renamed from arch/mips/include/asm/mach-loongson/loongson.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/loongson_hwmon.h (renamed from arch/mips/include/asm/mach-loongson/loongson_hwmon.h) | 0 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/machine.h (renamed from arch/mips/include/asm/mach-loongson/machine.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/mc146818rtc.h (renamed from arch/mips/include/asm/mach-loongson/mc146818rtc.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/mem.h (renamed from arch/mips/include/asm/mach-loongson/mem.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/mmzone.h (renamed from arch/mips/include/asm/mach-loongson/mmzone.h) | 0 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/pci.h (renamed from arch/mips/include/asm/mach-loongson/pci.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/spaces.h (renamed from arch/mips/include/asm/mach-loongson/spaces.h) | 4 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/topology.h (renamed from arch/mips/include/asm/mach-loongson/topology.h) | 0 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson64/workarounds.h | 7 | ||||
-rw-r--r-- | arch/mips/loongson32/Kconfig (renamed from arch/mips/loongson1/Kconfig) | 4 | ||||
-rw-r--r-- | arch/mips/loongson32/Makefile (renamed from arch/mips/loongson1/Makefile) | 2 | ||||
-rw-r--r-- | arch/mips/loongson32/Platform (renamed from arch/mips/loongson1/Platform) | 4 | ||||
-rw-r--r-- | arch/mips/loongson32/common/Makefile (renamed from arch/mips/loongson1/common/Makefile) | 0 | ||||
-rw-r--r-- | arch/mips/loongson32/common/irq.c (renamed from arch/mips/loongson1/common/irq.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson32/common/platform.c (renamed from arch/mips/loongson1/common/platform.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson32/common/prom.c (renamed from arch/mips/loongson1/common/prom.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson32/common/reset.c (renamed from arch/mips/loongson1/common/reset.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson32/common/setup.c (renamed from arch/mips/loongson1/common/setup.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson32/common/time.c (renamed from arch/mips/loongson1/common/time.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson32/ls1b/Makefile (renamed from arch/mips/loongson1/ls1b/Makefile) | 0 | ||||
-rw-r--r-- | arch/mips/loongson32/ls1b/board.c (renamed from arch/mips/loongson1/ls1b/board.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/Kconfig (renamed from arch/mips/loongson/Kconfig) | 4 | ||||
-rw-r--r-- | arch/mips/loongson64/Makefile (renamed from arch/mips/loongson/Makefile) | 2 | ||||
-rw-r--r-- | arch/mips/loongson64/Platform (renamed from arch/mips/loongson/Platform) | 4 | ||||
-rw-r--r-- | arch/mips/loongson64/common/Makefile (renamed from arch/mips/loongson/common/Makefile) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/bonito-irq.c (renamed from arch/mips/loongson/common/bonito-irq.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/cmdline.c (renamed from arch/mips/loongson/common/cmdline.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/cs5536/Makefile (renamed from arch/mips/loongson/common/cs5536/Makefile) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/cs5536/cs5536_acc.c (renamed from arch/mips/loongson/common/cs5536/cs5536_acc.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/cs5536/cs5536_ehci.c (renamed from arch/mips/loongson/common/cs5536/cs5536_ehci.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/cs5536/cs5536_ide.c (renamed from arch/mips/loongson/common/cs5536/cs5536_ide.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/cs5536/cs5536_isa.c (renamed from arch/mips/loongson/common/cs5536/cs5536_isa.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c (renamed from arch/mips/loongson/common/cs5536/cs5536_mfgpt.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/cs5536/cs5536_ohci.c (renamed from arch/mips/loongson/common/cs5536/cs5536_ohci.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/cs5536/cs5536_pci.c (renamed from arch/mips/loongson/common/cs5536/cs5536_pci.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/dma-swiotlb.c (renamed from arch/mips/loongson/common/dma-swiotlb.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/early_printk.c (renamed from arch/mips/loongson/common/early_printk.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/env.c (renamed from arch/mips/loongson/common/env.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/init.c (renamed from arch/mips/loongson/common/init.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/irq.c (renamed from arch/mips/loongson/common/irq.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/machtype.c (renamed from arch/mips/loongson/common/machtype.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/mem.c (renamed from arch/mips/loongson/common/mem.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/pci.c (renamed from arch/mips/loongson/common/pci.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/platform.c (renamed from arch/mips/loongson/common/platform.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/pm.c (renamed from arch/mips/loongson/common/pm.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/reset.c (renamed from arch/mips/loongson/common/reset.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/rtc.c (renamed from arch/mips/loongson/common/rtc.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/serial.c (renamed from arch/mips/loongson/common/serial.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/setup.c (renamed from arch/mips/loongson/common/setup.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/time.c (renamed from arch/mips/loongson/common/time.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/common/uart_base.c (renamed from arch/mips/loongson/common/uart_base.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/fuloong-2e/Makefile (renamed from arch/mips/loongson/fuloong-2e/Makefile) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/fuloong-2e/irq.c (renamed from arch/mips/loongson/fuloong-2e/irq.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/fuloong-2e/reset.c (renamed from arch/mips/loongson/fuloong-2e/reset.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/lemote-2f/Makefile (renamed from arch/mips/loongson/lemote-2f/Makefile) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/lemote-2f/clock.c (renamed from arch/mips/loongson/lemote-2f/clock.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/lemote-2f/ec_kb3310b.c (renamed from arch/mips/loongson/lemote-2f/ec_kb3310b.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/lemote-2f/ec_kb3310b.h (renamed from arch/mips/loongson/lemote-2f/ec_kb3310b.h) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/lemote-2f/irq.c (renamed from arch/mips/loongson/lemote-2f/irq.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/lemote-2f/machtype.c (renamed from arch/mips/loongson/lemote-2f/machtype.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/lemote-2f/pm.c (renamed from arch/mips/loongson/lemote-2f/pm.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/lemote-2f/reset.c (renamed from arch/mips/loongson/lemote-2f/reset.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/loongson-3/Makefile (renamed from arch/mips/loongson/loongson-3/Makefile) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/loongson-3/cop2-ex.c (renamed from arch/mips/loongson/loongson-3/cop2-ex.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/loongson-3/hpet.c (renamed from arch/mips/loongson/loongson-3/hpet.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/loongson-3/irq.c (renamed from arch/mips/loongson/loongson-3/irq.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/loongson-3/numa.c (renamed from arch/mips/loongson/loongson-3/numa.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/loongson-3/platform.c (renamed from arch/mips/loongson/loongson-3/platform.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/loongson-3/smp.c (renamed from arch/mips/loongson/loongson-3/smp.c) | 0 | ||||
-rw-r--r-- | arch/mips/loongson64/loongson-3/smp.h (renamed from arch/mips/loongson/loongson-3/smp.h) | 0 |
98 files changed, 100 insertions, 98 deletions
diff --git a/arch/mips/Kbuild.platforms b/arch/mips/Kbuild.platforms index 39cf40da5f14..a424e46b50af 100644 --- a/arch/mips/Kbuild.platforms +++ b/arch/mips/Kbuild.platforms @@ -15,8 +15,8 @@ platforms += jazz platforms += jz4740 platforms += lantiq platforms += lasat -platforms += loongson -platforms += loongson1 +platforms += loongson32 +platforms += loongson64 platforms += mti-malta platforms += mti-sead3 platforms += netlogic diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 0ee59e8cdb57..733f6ac97f28 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -26,7 +26,7 @@ config MIPS select HAVE_SYSCALL_TRACEPOINTS select ARCH_HAS_ELF_RANDOMIZE select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES && 64BIT - select RTC_LIB if !MACH_LOONGSON + select RTC_LIB if !MACH_LOONGSON64 select GENERIC_ATOMIC64 if !64BIT select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE select HAVE_DMA_ATTRS @@ -346,26 +346,28 @@ config LASAT select SYS_SUPPORTS_64BIT_KERNEL if BROKEN select SYS_SUPPORTS_LITTLE_ENDIAN -config MACH_LOONGSON - bool "Loongson family of machines" +config MACH_LOONGSON32 + bool "Loongson-1 family of machines" select SYS_SUPPORTS_ZBOOT help - This enables the support of Loongson family of machines. + This enables support for the Loongson-1 family of machines. - Loongson is a family of general-purpose MIPS-compatible CPUs. - developed at Institute of Computing Technology (ICT), - Chinese Academy of Sciences (CAS) in the People's Republic - of China. The chief architect is Professor Weiwu Hu. + Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by + the Institute of Computing Technology (ICT), Chinese Academy of + Sciences (CAS). -config MACH_LOONGSON1 - bool "Loongson 1 family of machines" +config MACH_LOONGSON64 + bool "Loongson-2/3 family of machines" select SYS_SUPPORTS_ZBOOT help - This enables support for the Loongson 1 based machines. + This enables the support of Loongson-2/3 family of machines. - Loongson 1 is a family of 32-bit MIPS-compatible SoCs developed by - the ICT (Institute of Computing Technology) and the Chinese Academy - of Sciences. + Loongson-2 is a family of single-core CPUs and Loongson-3 is a + family of multi-core CPUs. They are both 64-bit general-purpose + MIPS-compatible CPUs. Loongson-2/3 are developed by the Institute + of Computing Technology (ICT), Chinese Academy of Sciences (CAS) + in the People's Republic of China. The chief architect is Professor + Weiwu Hu. config MACH_PISTACHIO bool "IMG Pistachio SoC based boards" @@ -948,8 +950,8 @@ source "arch/mips/sibyte/Kconfig" source "arch/mips/txx9/Kconfig" source "arch/mips/vr41xx/Kconfig" source "arch/mips/cavium-octeon/Kconfig" -source "arch/mips/loongson/Kconfig" -source "arch/mips/loongson1/Kconfig" +source "arch/mips/loongson32/Kconfig" +source "arch/mips/loongson64/Kconfig" source "arch/mips/netlogic/Kconfig" source "arch/mips/paravirt/Kconfig" diff --git a/arch/mips/boot/compressed/uart-16550.c b/arch/mips/boot/compressed/uart-16550.c index 237494b7a21a..408799a839b4 100644 --- a/arch/mips/boot/compressed/uart-16550.c +++ b/arch/mips/boot/compressed/uart-16550.c @@ -7,7 +7,7 @@ #include <asm/addrspac |