diff options
author | Huacai Chen <chenhc@lemote.com> | 2015-04-20 22:00:35 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-21 15:53:59 -0400 |
commit | 30ad29bb48881ee11f5daf30c6fc50292ae08c57 (patch) | |
tree | d899b18a17e6269123ff2795f2e6d832523f1fb9 | |
parent | abcc82b19fa9b4f41e02f28715005851b580163d (diff) |
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>
-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 | ||||
-rw-r--r-- | drivers/clk/Makefile | 2 | ||||
-rw-r--r-- | drivers/cpufreq/ls1x-cpufreq.c | 4 | ||||
-rw-r--r-- | drivers/rtc/Kconfig | 2 | ||||
-rw-r--r-- | drivers/rtc/rtc-ls1x.c | 2 |
102 files changed, 105 insertions, 103 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 | |||
15 | platforms += jz4740 | 15 | platforms += jz4740 |
16 | platforms += lantiq | 16 | platforms += lantiq |
17 | platforms += lasat | 17 | platforms += lasat |
18 | platforms += loongson | 18 | platforms += loongson32 |
19 | platforms += loongson1 | 19 | platforms += loongson64 |
20 | platforms += mti-malta | 20 | platforms += mti-malta |
21 | platforms += mti-sead3 | 21 | platforms += mti-sead3 |
22 | platforms += netlogic | 22 | 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 | |||
26 | select HAVE_SYSCALL_TRACEPOINTS | 26 | select HAVE_SYSCALL_TRACEPOINTS |
27 | select ARCH_HAS_ELF_RANDOMIZE | 27 | select ARCH_HAS_ELF_RANDOMIZE |
28 | select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES && 64BIT | 28 | select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES && 64BIT |
29 | select RTC_LIB if !MACH_LOONGSON | 29 | select RTC_LIB if !MACH_LOONGSON64 |
30 | select GENERIC_ATOMIC64 if !64BIT | 30 | select GENERIC_ATOMIC64 if !64BIT |
31 | select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE | 31 | select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE |
32 | select HAVE_DMA_ATTRS | 32 | select HAVE_DMA_ATTRS |
@@ -346,26 +346,28 @@ config LASAT | |||
346 | select SYS_SUPPORTS_64BIT_KERNEL if BROKEN | 346 | select SYS_SUPPORTS_64BIT_KERNEL if BROKEN |
347 | select SYS_SUPPORTS_LITTLE_ENDIAN | 347 | select SYS_SUPPORTS_LITTLE_ENDIAN |
348 | 348 | ||
349 | config MACH_LOONGSON | 349 | config MACH_LOONGSON32 |
350 | bool "Loongson family of machines" | 350 | bool "Loongson-1 family of machines" |
351 | select SYS_SUPPORTS_ZBOOT | 351 | select SYS_SUPPORTS_ZBOOT |
352 | help | 352 | help |
353 | This enables the support of Loongson family of machines. | 353 | This enables support for the Loongson-1 family of machines. |
354 | 354 | ||
355 | Loongson is a family of general-purpose MIPS-compatible CPUs. | 355 | Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by |
356 | developed at Institute of Computing Technology (ICT), | 356 | the Institute of Computing Technology (ICT), Chinese Academy of |
357 | Chinese Academy of Sciences (CAS) in the People's Republic | 357 | Sciences (CAS). |
358 | of China. The chief architect is Professor Weiwu Hu. | ||
359 | 358 | ||
360 | config MACH_LOONGSON1 | 359 | config MACH_LOONGSON64 |
361 | bool "Loongson 1 family of machines" | 360 | bool "Loongson-2/3 family of machines" |
362 | select SYS_SUPPORTS_ZBOOT | 361 | select SYS_SUPPORTS_ZBOOT |
363 | help | 362 | help |
364 | This enables support for the Loongson 1 based machines. | 363 | This enables the support of Loongson-2/3 family of machines. |
365 | 364 | ||
366 | Loongson 1 is a family of 32-bit MIPS-compatible SoCs developed by | 365 | Loongson-2 is a family of single-core CPUs and Loongson-3 is a |
367 | the ICT (Institute of Computing Technology) and the Chinese Academy | 366 | family of multi-core CPUs. They are both 64-bit general-purpose |
368 | of Sciences. | 367 | MIPS-compatible CPUs. Loongson-2/3 are developed by the Institute |
368 | of Computing Technology (ICT), Chinese Academy of Sciences (CAS) | ||
369 | in the People's Republic of China. The chief architect is Professor | ||
370 | Weiwu Hu. | ||
369 | 371 | ||
370 | config MACH_PISTACHIO | 372 | config MACH_PISTACHIO |
371 | bool "IMG Pistachio SoC based boards" | 373 | bool "IMG Pistachio SoC based boards" |
@@ -948,8 +950,8 @@ source "arch/mips/sibyte/Kconfig" | |||
948 | source "arch/mips/txx9/Kconfig" | 950 | source "arch/mips/txx9/Kconfig" |
949 | source "arch/mips/vr41xx/Kconfig" | 951 | source "arch/mips/vr41xx/Kconfig" |
950 | source "arch/mips/cavium-octeon/Kconfig" | 952 | source "arch/mips/cavium-octeon/Kconfig" |
951 | source "arch/mips/loongson/Kconfig" | 953 | source "arch/mips/loongson32/Kconfig" |
952 | source "arch/mips/loongson1/Kconfig" | 954 | source "arch/mips/loongson64/Kconfig" |
953 | source "arch/mips/netlogic/Kconfig" | 955 | source "arch/mips/netlogic/Kconfig" |
954 | source "arch/mips/paravirt/Kconfig" | 956 | source "arch/mips/paravirt/Kconfig" |
955 | 957 | ||
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 @@ | |||
7 | 7 | ||
8 | #include <asm/addrspace.h> | 8 | #include <asm/addrspace.h> |
9 | 9 | ||
10 | #if defined(CONFIG_MACH_LOONGSON) || defined(CONFIG_MIPS_MALTA) | 10 | #if defined(CONFIG_MACH_LOONGSON64) || defined(CONFIG_MIPS_MALTA) |
11 | #define UART_BASE 0x1fd003f8 | 11 | #define UART_BASE 0x1fd003f8 |
12 | #define PORT(offset) (CKSEG1ADDR(UART_BASE) + (offset)) | 12 | #define PORT(offset) (CKSEG1ADDR(UART_BASE) + (offset)) |
13 | #endif | 13 | #endif |
diff --git a/arch/mips/configs/fuloong2e_defconfig b/arch/mips/configs/fuloong2e_defconfig index b2a577ebce0b..a75c65da08b4 100644 --- a/arch/mips/configs/fuloong2e_defconfig +++ b/arch/mips/configs/fuloong2e_defconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | CONFIG_MACH_LOONGSON=y | 1 | CONFIG_MACH_LOONGSON64=y |
2 | CONFIG_64BIT=y | 2 | CONFIG_64BIT=y |
3 | CONFIG_NO_HZ=y | 3 | CONFIG_NO_HZ=y |
4 | CONFIG_HIGH_RES_TIMERS=y | 4 | CONFIG_HIGH_RES_TIMERS=y |
diff --git a/arch/mips/configs/lemote2f_defconfig b/arch/mips/configs/lemote2f_defconfig index 0cbc9863c7c8..54cc3853d259 100644 --- a/arch/mips/configs/lemote2f_defconfig +++ b/arch/mips/configs/lemote2f_defconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | CONFIG_MACH_LOONGSON=y | 1 | CONFIG_MACH_LOONGSON64=y |
2 | CONFIG_LEMOTE_MACH2F=y | 2 | CONFIG_LEMOTE_MACH2F=y |
3 | CONFIG_CS5536_MFGPT=y | 3 | CONFIG_CS5536_MFGPT=y |
4 | CONFIG_64BIT=y | 4 | CONFIG_64BIT=y |
diff --git a/arch/mips/configs/loongson3_defconfig b/arch/mips/configs/loongson3_defconfig index c8442997477b..f8bf915c6d6b 100644 --- a/arch/mips/configs/loongson3_defconfig +++ b/arch/mips/configs/loongson3_defconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | CONFIG_MACH_LOONGSON=y | 1 | CONFIG_MACH_LOONGSON64=y |
2 | CONFIG_SWIOTLB=y | 2 | CONFIG_SWIOTLB=y |
3 | CONFIG_LOONGSON_MACH3X=y | 3 | CONFIG_LOONGSON_MACH3X=y |
4 | CONFIG_CPU_LOONGSON3=y | 4 | CONFIG_CPU_LOONGSON3=y |
diff --git a/arch/mips/configs/ls1b_defconfig b/arch/mips/configs/ls1b_defconfig index 7eb75543ca1a..1b2cc1fb26a1 100644 --- a/arch/mips/configs/ls1b_defconfig +++ b/arch/mips/configs/ls1b_defconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | CONFIG_MACH_LOONGSON1=y | 1 | CONFIG_MACH_LOONGSON32=y |
2 | CONFIG_PREEMPT=y | 2 | CONFIG_PREEMPT=y |
3 | # CONFIG_SECCOMP is not set | 3 | # CONFIG_SECCOMP is not set |
4 | CONFIG_EXPERIMENTAL=y | 4 | CONFIG_EXPERIMENTAL=y |
diff --git a/arch/mips/include/asm/mach-loongson/workarounds.h b/arch/mips/include/asm/mach-loongson/workarounds.h deleted file mode 100644 index e180c1422eae..000000000000 --- a/arch/mips/include/asm/mach-loongson/workarounds.h +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | #ifndef __ASM_MACH_LOONGSON_WORKAROUNDS_H_ | ||
2 | #define __ASM_MACH_LOONGSON_WORKAROUNDS_H_ | ||
3 | |||
4 | #define WORKAROUND_CPUFREQ 0x00000001 | ||
5 | #define WORKAROUND_CPUHOTPLUG 0x00000002 | ||
6 | |||
7 | #endif | ||
diff --git a/arch/mips/include/asm/mach-loongson1/cpufreq.h b/arch/mips/include/asm/mach-loongson32/cpufreq.h index e7765ce30bcf..6843fa1a608d 100644 --- a/arch/mips/include/asm/mach-loongson1/cpufreq.h +++ b/arch/mips/include/asm/mach-loongson32/cpufreq.h | |||
@@ -10,8 +10,8 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | 12 | ||
13 | #ifndef __ASM_MACH_LOONGSON1_CPUFREQ_H | 13 | #ifndef __ASM_MACH_LOONGSON32_CPUFREQ_H |
14 | #define __ASM_MACH_LOONGSON1_CPUFREQ_H | 14 | #define __ASM_MACH_LOONGSON32_CPUFREQ_H |
15 | 15 | ||
16 | struct plat_ls1x_cpufreq { | 16 | struct plat_ls1x_cpufreq { |
17 | const char *clk_name; /* CPU clk */ | 17 | const char *clk_name; /* CPU clk */ |
@@ -20,4 +20,4 @@ struct plat_ls1x_cpufreq { | |||
20 | unsigned int min_freq; /* in kHz */ | 20 | unsigned int min_freq; /* in kHz */ |
21 | }; | 21 | }; |
22 | 22 | ||
23 | #endif /* __ASM_MACH_LOONGSON1_CPUFREQ_H */ | 23 | #endif /* __ASM_MACH_LOONGSON32_CPUFREQ_H */ |
diff --git a/arch/mips/include/asm/mach-loongson1/irq.h b/arch/mips/include/asm/mach-loongson32/irq.h index 96bfb1c1c73d..0d35b994e8d2 100644 --- a/arch/mips/include/asm/mach-loongson1/irq.h +++ b/arch/mips/include/asm/mach-loongson32/irq.h | |||
@@ -10,8 +10,8 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | 12 | ||
13 | #ifndef __ASM_MACH_LOONGSON1_IRQ_H | 13 | #ifndef __ASM_MACH_LOONGSON32_IRQ_H |
14 | #define __ASM_MACH_LOONGSON1_IRQ_H | 14 | #define __ASM_MACH_LOONGSON32_IRQ_H |
15 | 15 | ||
16 | /* | 16 | /* |
17 | * CPU core Interrupt Numbers | 17 | * CPU core Interrupt Numbers |
@@ -70,4 +70,4 @@ | |||
70 | 70 | ||
71 | #define NR_IRQS (MIPS_CPU_IRQS + LS1X_IRQS) | 71 | #define NR_IRQS (MIPS_CPU_IRQS + LS1X_IRQS) |
72 | 72 | ||
73 | #endif /* __ASM_MACH_LOONGSON1_IRQ_H */ | 73 | #endif /* __ASM_MACH_LOONGSON32_IRQ_H */ |
diff --git a/arch/mips/include/asm/mach-loongson1/loongson1.h b/arch/mips/include/asm/mach-loongson32/loongson1.h index 20e0c2b155dd..12aa129aad80 100644 --- a/arch/mips/include/asm/mach-loongson1/loongson1.h +++ b/arch/mips/include/asm/mach-loongson32/loongson1.h | |||
@@ -10,8 +10,8 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | 12 | ||
13 | #ifndef __ASM_MACH_LOONGSON1_LOONGSON1_H | 13 | #ifndef __ASM_MACH_LOONGSON32_LOONGSON1_H |
14 | #define __ASM_MACH_LOONGSON1_LOONGSON1_H | 14 | #define __ASM_MACH_LOONGSON32_LOONGSON1_H |
15 | 15 | ||
16 | #define DEFAULT_MEMSIZE 256 /* If no memsize provided */ | 16 | #define DEFAULT_MEMSIZE 256 /* If no memsize provided */ |
17 | 17 | ||
@@ -47,4 +47,4 @@ | |||
47 | #include <regs-pwm.h> | 47 | #include <regs-pwm.h> |
48 | #include <regs-wdt.h> | 48 | #include <regs-wdt.h> |
49 | 49 | ||
50 | #endif /* __ASM_MACH_LOONGSON1_LOONGSON1_H */ | 50 | #endif /* __ASM_MACH_LOONGSON32_LOONGSON1_H */ |
diff --git a/arch/mips/include/asm/mach-loongson1/platform.h b/arch/mips/include/asm/mach-loongson32/platform.h index 47de55e0c835..c32f03f3f72c 100644 --- a/arch/mips/include/asm/mach-loongson1/platform.h +++ b/arch/mips/include/asm/mach-loongson32/platform.h | |||
@@ -8,8 +8,8 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | 10 | ||
11 | #ifndef __ASM_MACH_LOONGSON1_PLATFORM_H | 11 | #ifndef __ASM_MACH_LOONGSON32_PLATFORM_H |
12 | #define __ASM_MACH_LOONGSON1_PLATFORM_H | 12 | #define __ASM_MACH_LOONGSON32_PLATFORM_H |
13 | 13 | ||
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | 15 | ||
@@ -23,4 +23,4 @@ extern struct platform_device ls1x_rtc_pdev; | |||
23 | extern void __init ls1x_clk_init(void); | 23 | extern void __init ls1x_clk_init(void); |
24 | extern void __init ls1x_serial_setup(struct platform_device *pdev); | 24 | extern void __init ls1x_serial_setup(struct platform_device *pdev); |
25 | 25 | ||
26 | #endif /* __ASM_MACH_LOONGSON1_PLATFORM_H */ | 26 | #endif /* __ASM_MACH_LOONGSON32_PLATFORM_H */ |
diff --git a/arch/mips/include/asm/mach-loongson1/prom.h b/arch/mips/include/asm/mach-loongson32/prom.h index 34859a4d4ac4..a08503c0ba20 100644 --- a/arch/mips/include/asm/mach-loongson1/prom.h +++ b/arch/mips/include/asm/mach-loongson32/prom.h | |||
@@ -7,8 +7,8 @@ | |||
7 | * option) any later version. | 7 | * option) any later version. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #ifndef __ASM_MACH_LOONGSON1_PROM_H | 10 | #ifndef __ASM_MACH_LOONGSON32_PROM_H |
11 | #define __ASM_MACH_LOONGSON1_PROM_H | 11 | #define __ASM_MACH_LOONGSON32_PROM_H |
12 | 12 | ||
13 | #include <linux/io.h> | 13 | #include <linux/io.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
@@ -21,4 +21,4 @@ extern unsigned long memsize, highmemsize; | |||
21 | extern char *prom_getenv(char *name); | 21 | extern char *prom_getenv(char *name); |
22 | extern void __init prom_init_cmdline(void); | 22 | extern void __init prom_init_cmdline(void); |
23 | 23 | ||
24 | #endif /* __ASM_MACH_LOONGSON1_PROM_H */ | 24 | #endif /* __ASM_MACH_LOONGSON32_PROM_H */ |
diff --git a/arch/mips/include/asm/mach-loongson1/regs-clk.h b/arch/mips/include/asm/mach-loongson32/regs-clk.h index ee2445b10fc3..1f5a715ac841 100644 --- a/arch/mips/include/asm/mach-loongson1/regs-clk.h +++ b/arch/mips/include/asm/mach-loongson32/regs-clk.h | |||
@@ -9,8 +9,8 @@ | |||
9 | * option) any later version. | 9 | * option) any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifndef __ASM_MACH_LOONGSON1_REGS_CLK_H | 12 | #ifndef __ASM_MACH_LOONGSON32_REGS_CLK_H |
13 | #define __ASM_MACH_LOONGSON1_REGS_CLK_H | 13 | #define __ASM_MACH_LOONGSON32_REGS_CLK_H |
14 | 14 | ||
15 | #define LS1X_CLK_REG(x) \ | 15 | #define LS1X_CLK_REG(x) \ |
16 | ((void __iomem *)KSEG1ADDR(LS1X_CLK_BASE + (x))) | 16 | ((void __iomem *)KSEG1ADDR(LS1X_CLK_BASE + (x))) |
@@ -48,4 +48,4 @@ | |||
48 | #define BYPASS_DDR_WIDTH 1 | 48 | #define BYPASS_DDR_WIDTH 1 |
49 | #define BYPASS_CPU_WIDTH 1 | 49 | #define BYPASS_CPU_WIDTH 1 |
50 | 50 | ||
51 | #endif /* __ASM_MACH_LOONGSON1_REGS_CLK_H */ | 51 | #endif /* __ASM_MACH_LOONGSON32_REGS_CLK_H */ |
diff --git a/arch/mips/include/asm/mach-loongson1/regs-mux.h b/arch/mips/include/asm/mach-loongson32/regs-mux.h index fb1e36efaa19..8302d92f2da2 100644 --- a/arch/mips/include/asm/mach-loongson1/regs-mux.h +++ b/arch/mips/include/asm/mach-loongson32/regs-mux.h | |||
@@ -9,8 +9,8 @@ | |||
9 | * option) any later version. | 9 | * option) any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifndef __ASM_MACH_LOONGSON1_REGS_MUX_H | 12 | #ifndef __ASM_MACH_LOONGSON32_REGS_MUX_H |
13 | #define __ASM_MACH_LOONGSON1_REGS_MUX_H | 13 | #define __ASM_MACH_LOONGSON32_REGS_MUX_H |
14 | 14 | ||
15 | #define LS1X_MUX_REG(x) \ | 15 | #define LS1X_MUX_REG(x) \ |
16 | ((void __iomem *)KSEG1ADDR(LS1X_MUX_BASE + (x))) | 16 | ((void __iomem *)KSEG1ADDR(LS1X_MUX_BASE + (x))) |
@@ -64,4 +64,4 @@ | |||
64 | #define GMAC1_USE_PWM23 (0x1 << 1) | 64 | #define GMAC1_USE_PWM23 (0x1 << 1) |
65 | #define GMAC0_USE_PWM01 0x1 | 65 | #define GMAC0_USE_PWM01 0x1 |
66 | 66 | ||
67 | #endif /* __ASM_MACH_LOONGSON1_REGS_MUX_H */ | 67 | #endif /* __ASM_MACH_LOONGSON32_REGS_MUX_H */ |
diff --git a/arch/mips/include/asm/mach-loongson1/regs-pwm.h b/arch/mips/include/asm/mach-loongson32/regs-pwm.h index 99f2bcc586f0..69f174ed13a4 100644 --- a/arch/mips/include/asm/mach-loongson1/regs-pwm.h +++ b/arch/mips/include/asm/mach-loongson32/regs-pwm.h | |||
@@ -9,8 +9,8 @@ | |||
9 | * option) any later version. | 9 | * option) any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifndef __ASM_MACH_LOONGSON1_REGS_PWM_H | 12 | #ifndef __ASM_MACH_LOONGSON32_REGS_PWM_H |
13 | #define __ASM_MACH_LOONGSON1_REGS_PWM_H | 13 | #define __ASM_MACH_LOONGSON32_REGS_PWM_H |
14 | 14 | ||
15 | /* Loongson 1 PWM Timer Register Definitions */ | 15 | /* Loongson 1 PWM Timer Register Definitions */ |
16 | #define PWM_CNT 0x0 | 16 | #define PWM_CNT 0x0 |
@@ -26,4 +26,4 @@ | |||
26 | #define PWM_OE (0x1 << 3) | 26 | #define PWM_OE (0x1 << 3) |
27 | #define CNT_EN 0x1 | 27 | #define CNT_EN 0x1 |
28 | 28 | ||
29 | #endif /* __ASM_MACH_LOONGSON1_REGS_PWM_H */ | 29 | #endif /* __ASM_MACH_LOONGSON32_REGS_PWM_H */ |
diff --git a/arch/mips/include/asm/mach-loongson1/regs-wdt.h b/arch/mips/include/asm/mach-loongson32/regs-wdt.h index c39ee982ad3b..6644ab6d3391 100644 --- a/arch/mips/include/asm/mach-loongson1/regs-wdt.h +++ b/arch/mips/include/asm/mach-loongson32/regs-wdt.h | |||
@@ -9,11 +9,11 @@ | |||
9 | * option) any later version. | 9 | * option) any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifndef __ASM_MACH_LOONGSON1_REGS_WDT_H | 12 | #ifndef __ASM_MACH_LOONGSON32_REGS_WDT_H |
13 | #define __ASM_MACH_LOONGSON1_REGS_WDT_H | 13 | #define __ASM_MACH_LOONGSON32_REGS_WDT_H |
14 | 14 | ||
15 | #define WDT_EN 0x0 | 15 | #define WDT_EN 0x0 |
16 | #define WDT_TIMER 0x4 | 16 | #define WDT_TIMER 0x4 |
17 | #define WDT_SET 0x8 | 17 | #define WDT_SET 0x8 |
18 | 18 | ||
19 | #endif /* __ASM_MACH_LOONGSON1_REGS_WDT_H */ | 19 | #endif /* __ASM_MACH_LOONGSON32_REGS_WDT_H */ |
diff --git a/arch/mips/include/asm/mach-loongson/boot_param.h b/arch/mips/include/asm/mach-loongson64/boot_param.h index fa802926523f..d3f3258b7cd4 100644 --- a/arch/mips/include/asm/mach-loongson/boot_param.h +++ b/arch/mips/include/asm/mach-loongson64/boot_param.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __ASM_MACH_LOONGSON_BOOT_PARAM_H_ | 1 | #ifndef __ASM_MACH_LOONGSON64_BOOT_PARAM_H_ |
2 | #define __ASM_MACH_LOONGSON_BOOT_PARAM_H_ | 2 | #define __ASM_MACH_LOONGSON64_BOOT_PARAM_H_ |
3 | 3 | ||
4 | #define SYSTEM_RAM_LOW 1 | 4 | #define SYSTEM_RAM_LOW 1 |
5 | #define SYSTEM_RAM_HIGH 2 | 5 | #define SYSTEM_RAM_HIGH 2 |
diff --git a/arch/mips/include/asm/mach-loongson/cpu-feature-overrides.h b/arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h index acc376897e46..98963c2c7be4 100644 --- a/arch/mips/include/asm/mach-loongson/cpu-feature-overrides.h +++ b/arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * loongson2f user manual. | 13 | * loongson2f user manual. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifndef __ASM_MACH_LOONGSON_CPU_FEATURE_OVERRIDES_H | 16 | #ifndef __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H |
17 | #define __ASM_MACH_LOONGSON_CPU_FEATURE_OVERRIDES_H | 17 | #define __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H |
18 | 18 | ||
19 | #define cpu_dcache_line_size() 32 | 19 | #define cpu_dcache_line_size() 32 |
20 | #define cpu_icache_line_size() 32 | 20 | #define cpu_icache_line_size() 32 |
@@ -58,4 +58,4 @@ | |||
58 | 58 | ||
59 | #define cpu_has_wsbh IS_ENABLED(CONFIG_CPU_LOONGSON3) | 59 | #define cpu_has_wsbh IS_ENABLED(CONFIG_CPU_LOONGSON3) |
60 | 60 | ||
61 | #endif /* __ASM_MACH_LOONGSON_CPU_FEATURE_OVERRIDES_H */ | 61 | #endif /* __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H */ |
diff --git a/arch/mips/include/asm/mach-loongson/cs5536/cs5536.h b/arch/mips/include/asm/mach-loongson64/cs5536/cs5536.h index a0ee0cb775ad..a0ee0cb775ad 100644 --- a/arch/mips/include/asm/mach-loongson/cs5536/cs5536.h +++ b/arch/mips/include/asm/mach-loongson64/cs5536/cs5536.h | |||
diff --git a/arch/mips/include/asm/mach-loongson/cs5536/cs5536_mfgpt.h b/arch/mips/include/asm/mach-loongson64/cs5536/cs5536_mfgpt.h index 021d0172dad6..021d0172dad6 100644 --- a/arch/mips/include/asm/mach-loongson/cs5536/cs5536_mfgpt.h +++ b/arch/mips/include/asm/mach-loongson64/cs5536/cs5536_mfgpt.h | |||
diff --git a/arch/mips/include/asm/mach-loongson/cs5536/cs5536_pci.h b/arch/mips/include/asm/mach-loongson64/cs5536/cs5536_pci.h index 8a7ecb4d5c64..8a7ecb4d5c64 100644 --- a/arch/mips/include/asm/mach-loongson/cs5536/cs5536_pci.h +++ b/arch/mips/include/asm/mach-loongson64/cs5536/cs5536_pci.h | |||
diff --git a/arch/mips/include/asm/mach-loongson/cs5536/cs5536_vsm.h b/arch/mips/include/asm/mach-loongson64/cs5536/cs5536_vsm.h index 1f17c1815ee5..1f17c1815ee5 100644 --- a/arch/mips/include/asm/mach-loongson/cs5536/cs5536_vsm.h +++ b/arch/mips/include/asm/mach-loongson64/cs5536/cs5536_vsm.h | |||
diff --git a/arch/mips/include/asm/mach-loongson/dma-coherence.h b/arch/mips/include/asm/mach-loongson64/dma-coherence.h index 4bf4e19f72e8..1602a9e9e8c2 100644 --- a/arch/mips/include/asm/mach-loongson/dma-coherence.h +++ b/arch/mips/include/asm/mach-loongson64/dma-coherence.h | |||
@@ -8,8 +8,8 @@ | |||
8 | * Author: Fuxin Zhang, zhangfx@lemote.com | 8 | * Author: Fuxin Zhang, zhangfx@lemote.com |
9 | * | 9 | * |
10 | */ | 10 | */ |
11 | #ifndef __ASM_MACH_LOONGSON_DMA_COHERENCE_H | 11 | #ifndef __ASM_MACH_LOONGSON64_DMA_COHERENCE_H |
12 | #define __ASM_MACH_LOONGSON_DMA_COHERENCE_H | 12 | #define __ASM_MACH_LOONGSON64_DMA_COHERENCE_H |
13 | 13 | ||
14 | #ifdef CONFIG_SWIOTLB | 14 | #ifdef CONFIG_SWIOTLB |
15 | #include <linux/swiotlb.h> | 15 | #include <linux/swiotlb.h> |
@@ -82,4 +82,4 @@ static inline void plat_post_dma_flush(struct device *dev) | |||
82 | { | 82 | { |
83 | } | 83 | } |
84 | 84 | ||
85 | #endif /* __ASM_MACH_LOONGSON_DMA_COHERENCE_H */ | 85 | #endif /* __ASM_MACH_LOONGSON64_DMA_COHERENCE_H */ |
diff --git a/arch/mips/include/asm/mach-loongson/gpio.h b/arch/mips/include/asm/mach-loongson64/gpio.h index b3b216904a9a..b3b216904a9a 100644 --- a/arch/mips/include/asm/mach-loongson/gpio.h +++ b/arch/mips/include/asm/mach-loongson64/gpio.h | |||
diff --git a/arch/mips/include/asm/mach-loongson/irq.h b/arch/mips/include/asm/mach-loongson64/irq.h index a281cca5f2fb..d18c45c7c394 100644 --- a/arch/mips/include/asm/mach-loongson/irq.h +++ b/arch/mips/include/asm/mach-loongson64/irq.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __ASM_MACH_LOONGSON_IRQ_H_ | 1 | #ifndef __ASM_MACH_LOONGSON64_IRQ_H_ |
2 | #define __ASM_MACH_LOONGSON_IRQ_H_ | 2 | #define __ASM_MACH_LOONGSON64_IRQ_H_ |
3 | 3 | ||
4 | #include <boot_param.h> | 4 | #include <boot_param.h> |
5 | 5 | ||
@@ -40,4 +40,4 @@ extern void fixup_irqs(void); | |||
40 | extern void loongson3_ipi_interrupt(struct pt_regs *regs); | 40 | extern void loongson3_ipi_interrupt(struct pt_regs *regs); |
41 | 41 | ||
42 | #include_next <irq.h> | 42 | #include_next <irq.h> |
43 | #endif /* __ASM_MACH_LOONGSON_IRQ_H_ */ | 43 | #endif /* __ASM_MACH_LOONGSON64_IRQ_H_ */ |
diff --git a/arch/mips/include/asm/mach-loongson/kernel-entry-init.h b/arch/mips/include/asm/mach-loongson64/kernel-entry-init.h index df5fca8eeb80..3f2f84f6c401 100644 --- a/arch/mips/include/asm/mach-loongson/kernel-entry-init.h +++ b/arch/mips/include/asm/mach-loongson64/kernel-entry-init.h | |||
@@ -8,8 +8,8 @@ | |||
8 | * Copyright (C) 2009 Jiajie Chen (chenjiajie@cse.buaa.edu.cn) | 8 | * Copyright (C) 2009 Jiajie Chen (chenjiajie@cse.buaa.edu.cn) |
9 | * Copyright (C) 2012 Huacai Chen (chenhc@lemote.com) | 9 | * Copyright (C) 2012 Huacai Chen (chenhc@lemote.com) |
10 | */ | 10 | */ |
11 | #ifndef __ASM_MACH_LOONGSON_KERNEL_ENTRY_H | 11 | #ifndef __ASM_MACH_LOONGSON64_KERNEL_ENTRY_H |
12 | #define __ASM_MACH_LOONGSON_KERNEL_ENTRY_H | 12 | #define __ASM_MACH_LOONGSON64_KERNEL_ENTRY_H |
13 | 13 | ||
14 | /* | 14 | /* |
15 | * Override macros used in arch/mips/kernel/head.S. | 15 | * Override macros used in arch/mips/kernel/head.S. |
@@ -49,4 +49,4 @@ | |||
49 | #endif | 49 | #endif |
50 | .endm | 50 | .endm |
51 | 51 | ||
52 | #endif /* __ASM_MACH_LOONGSON_KERNEL_ENTRY_H */ | 52 | #endif /* __ASM_MACH_LOONGSON64_KERNEL_ENTRY_H */ |
diff --git a/arch/mips/include/asm/mach-loongson/loongson.h b/arch/mips/include/asm/mach-loongson64/loongson.h index 9783103fd6f6..d1ff774ac4b6 100644 --- a/arch/mips/include/asm/mach-loongson/loongson.h +++ b/arch/mips/include/asm/mach-loongson64/loongson.h | |||
@@ -8,8 +8,8 @@ | |||
8 | * option) any later version. | 8 | * option) any later version. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef __ASM_MACH_LOONGSON_LOONGSON_H | 11 | #ifndef __ASM_MACH_LOONGSON64_LOONGSON_H |
12 | #define __ASM_MACH_LOONGSON_LOONGSON_H | 12 | #define __ASM_MACH_LOONGSON64_LOONGSON_H |
13 | 13 | ||
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
@@ -357,4 +357,4 @@ extern unsigned long _loongson_addrwincfg_base; | |||
357 | 357 | ||
358 | #endif /* ! CONFIG_CPU_SUPPORTS_ADDRWINCFG */ | 358 | #endif /* ! CONFIG_CPU_SUPPORTS_ADDRWINCFG */ |
359 | 359 | ||
360 | #endif /* __ASM_MACH_LOONGSON_LOONGSON_H */ | 360 | #endif /* __ASM_MACH_LOONGSON64_LOONGSON_H */ |
diff --git a/arch/mips/include/asm/mach-loongson/loongson_hwmon.h b/arch/mips/include/asm/mach-loongson64/loongson_hwmon.h index 4431fc54a36c..4431fc54a36c 100644 --- a/arch/mips/include/asm/mach-loongson/loongson_hwmon.h +++ b/arch/mips/include/asm/mach-loongson64/loongson_hwmon.h | |||
diff --git a/arch/mips/include/asm/mach-loongson/machine.h b/arch/mips/include/asm/mach-loongson64/machine.h index cb2b60249cd2..c52549bb4e56 100644 --- a/arch/mips/include/asm/mach-loongson/machine.h +++ b/arch/mips/include/asm/mach-loongson64/machine.h | |||
@@ -8,8 +8,8 @@ | |||
8 | * option) any later version. | 8 | * option) any later version. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef __ASM_MACH_LOONGSON_MACHINE_H | 11 | #ifndef __ASM_MACH_LOONGSON64_MACHINE_H |
12 | #define __ASM_MACH_LOONGSON_MACHINE_H | 12 | #define __ASM_MACH_LOONGSON64_MACHINE_H |
13 | 13 | ||
14 | #ifdef CONFIG_LEMOTE_FULOONG2E | 14 | #ifdef CONFIG_LEMOTE_FULOONG2E |
15 | 15 | ||
@@ -30,4 +30,4 @@ | |||
30 | 30 | ||
31 | #endif /* CONFIG_LOONGSON_MACH3X */ | 31 | #endif /* CONFIG_LOONGSON_MACH3X */ |
32 | 32 | ||
33 | #endif /* __ASM_MACH_LOONGSON_MACHINE_H */ | 33 | #endif /* __ASM_MACH_LOONGSON64_MACHINE_H */ |
diff --git a/arch/mips/include/asm/mach-loongson/mc146818rtc.h b/arch/mips/include/asm/mach-loongson64/mc146818rtc.h index ed7fe978335a..ebdccfee50be 100644 --- a/arch/mips/include/asm/mach-loongson/mc146818rtc.h +++ b/arch/mips/include/asm/mach-loongson64/mc146818rtc.h | |||
@@ -7,8 +7,8 @@ | |||
7 | * | 7 | * |
8 | * RTC routines for PC style attached Dallas chip. | 8 | * RTC routines for PC style attached Dallas chip. |
9 | */ | 9 | */ |
10 | #ifndef __ASM_MACH_LOONGSON_MC146818RTC_H | 10 | #ifndef __ASM_MACH_LOONGSON64_MC146818RTC_H |
11 | #define __ASM_MACH_LOONGSON_MC146818RTC_H | 11 | #define __ASM_MACH_LOONGSON64_MC146818RTC_H |
12 | 12 | ||
13 | #include <linux/io.h> | 13 | #include <linux/io.h> |
14 | 14 | ||
@@ -33,4 +33,4 @@ static inline void CMOS_WRITE(unsigned char data, unsigned long addr) | |||
33 | #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1970) | 33 | #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1970) |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #endif /* __ASM_MACH_LOONGSON_MC146818RTC_H */ | 36 | #endif /* __ASM_MACH_LOONGSON64_MC146818RTC_H */ |
diff --git a/arch/mips/include/asm/mach-loongson/mem.h b/arch/mips/include/asm/mach-loongson64/mem.h index f4a36d7dbfab..75c16bead536 100644 --- a/arch/mips/include/asm/mach-loongson/mem.h +++ b/arch/mips/include/asm/mach-loongson64/mem.h | |||
@@ -8,8 +8,8 @@ | |||
8 | * option) any later version. | 8 | * option) any later version. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef __ASM_MACH_LOONGSON_MEM_H | 11 | #ifndef __ASM_MACH_LOONGSON64_MEM_H |
12 | #define __ASM_MACH_LOONGSON_MEM_H | 12 | #define __ASM_MACH_LOONGSON64_MEM_H |
13 | 13 | ||
14 | /* | 14 | /* |
15 | * high memory space | 15 | * high memory space |
@@ -38,4 +38,4 @@ | |||
38 | #define LOONGSON_MMIO_MEM_END 0x80000000 | 38 | #define LOONGSON_MMIO_MEM_END 0x80000000 |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #endif /* __ASM_MACH_LOONGSON_MEM_H */ | 41 | #endif /* __ASM_MACH_LOONGSON64_MEM_H */ |
diff --git a/arch/mips/include/asm/mach-loongson/mmzone.h b/arch/mips/include/asm/mach-loongson64/mmzone.h index 37c08a27b4f0..37c08a27b4f0 100644 --- a/arch/mips/include/asm/mach-loongson/mmzone.h +++ b/arch/mips/include/asm/mach-loongson64/mmzone.h | |||
diff --git a/arch/mips/include/asm/mach-loongson/pci.h b/arch/mips/include/asm/mach-loongson64/pci.h index 1212774f66ef..3401f557434a 100644 --- a/arch/mips/include/asm/mach-loongson/pci.h +++ b/arch/mips/include/asm/mach-loongson64/pci.h | |||
@@ -9,8 +9,8 @@ | |||
9 | * option) any later version. | 9 | * option) any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifndef __ASM_MACH_LOONGSON_PCI_H_ | 12 | #ifndef __ASM_MACH_LOONGSON64_PCI_H_ |
13 | #define __ASM_MACH_LOONGSON_PCI_H_ | 13 | #define __ASM_MACH_LOONGSON64_PCI_H_ |
14 | 14 | ||
15 | extern struct pci_ops loongson_pci_ops; | 15 | extern struct pci_ops loongson_pci_ops; |
16 | 16 | ||
@@ -52,4 +52,4 @@ extern struct pci_ops loongson_pci_ops; | |||
52 | 52 | ||
53 | #endif /* !CONFIG_CPU_SUPPORTS_ADDRWINCFG */ | 53 | #endif /* !CONFIG_CPU_SUPPORTS_ADDRWINCFG */ |
54 | 54 | ||
55 | #endif /* !__ASM_MACH_LOONGSON_PCI_H_ */ | 55 | #endif /* !__ASM_MACH_LOONGSON64_PCI_H_ */ |
diff --git a/arch/mips/include/asm/mach-loongson/spaces.h b/arch/mips/include/asm/mach-loongson64/spaces.h index e2506ee90044..c6040b9fcf94 100644 --- a/arch/mips/include/asm/mach-loongson/spaces.h +++ b/arch/mips/include/asm/mach-loongson64/spaces.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __ASM_MACH_LOONGSON_SPACES_H_ | 1 | #ifndef __ASM_MACH_LOONGSON64_SPACES_H_ |
2 | #define __ASM_MACH_LOONGSON_SPACES_H_ | 2 | #define __ASM_MACH_LOONGSON64_SPACES_H_ |
3 | 3 | ||
4 | #if defined(CONFIG_64BIT) | 4 | #if defined(CONFIG_64BIT) |
5 | #define CAC_BASE _AC(0x9800000000000000, UL) | 5 | #define CAC_BASE _AC(0x9800000000000000, UL) |
diff --git a/arch/mips/include/asm/mach-loongson/topology.h b/arch/mips/include/asm/mach-loongson64/topology.h index 0d8f3b55bdbc..0d8f3b55bdbc 100644 --- a/arch/mips/include/asm/mach-loongson/topology.h +++ b/arch/mips/include/asm/mach-loongson64/topology.h | |||
diff --git a/arch/mips/include/asm/mach-loongson64/workarounds.h b/arch/mips/include/asm/mach-loongson64/workarounds.h new file mode 100644 index 000000000000..e659f041e116 --- /dev/null +++ b/arch/mips/include/asm/mach-loongson64/workarounds.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef __ASM_MACH_LOONGSON64_WORKAROUNDS_H_ | ||
2 | #define __ASM_MACH_LOONGSON64_WORKAROUNDS_H_ | ||
3 | |||
4 | #define WORKAROUND_CPUFREQ 0x00000001 | ||
5 | #define WORKAROUND_CPUHOTPLUG 0x00000002 | ||
6 | |||
7 | #endif | ||
diff --git a/arch/mips/loongson1/Kconfig b/arch/mips/loongson32/Kconfig index aeecdd9fac9f..7704f20529d6 100644 --- a/arch/mips/loongson1/Kconfig +++ b/arch/mips/loongson32/Kconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | if MACH_LOONGSON1 | 1 | if MACH_LOONGSON32 |
2 | 2 | ||
3 | choice | 3 | choice |
4 | prompt "Machine Type" | 4 | prompt "Machine Type" |
@@ -58,4 +58,4 @@ config TIMER_USE_PWM3 | |||
58 | 58 | ||
59 | endchoice | 59 | endchoice |
60 | 60 | ||
61 | endif # MACH_LOONGSON1 | 61 | endif # MACH_LOONGSON32 |
diff --git a/arch/mips/loongson1/Makefile b/arch/mips/loongson32/Makefile index 9719c75886f5..5f4bd6e071ca 100644 --- a/arch/mips/loongson1/Makefile +++ b/arch/mips/loongson32/Makefile | |||
@@ -2,7 +2,7 @@ | |||
2 | # Common code for all Loongson 1 based systems | 2 | # Common code for all Loongson 1 based systems |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-$(CONFIG_MACH_LOONGSON1) += common/ | 5 | obj-$(CONFIG_MACH_LOONGSON32) += common/ |
6 | 6 | ||
7 | # | 7 | # |
8 | # Loongson LS1B board | 8 | # Loongson LS1B board |
diff --git a/arch/mips/loongson1/Platform b/arch/mips/loongson32/Platform index 11863441dea3..ebb6dc290f0a 100644 --- a/arch/mips/loongson1/Platform +++ b/arch/mips/loongson32/Platform | |||
@@ -2,6 +2,6 @@ cflags-$(CONFIG_CPU_LOONGSON1) += \ | |||
2 | $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ | 2 | $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ |
3 | -Wa,-mips32r2 -Wa,--trap | 3 | -Wa,-mips32r2 -Wa,--trap |
4 | 4 | ||
5 | platform-$(CONFIG_MACH_LOONGSON1) += loongson1/ | 5 | platform-$(CONFIG_MACH_LOONGSON32) += loongson32/ |
6 | cflags-$(CONFIG_MACH_LOONGSON1) += -I$(srctree)/arch/mips/include/asm/mach-loongson1 | 6 | cflags-$(CONFIG_MACH_LOONGSON32) += -I$(srctree)/arch/mips/include/asm/mach-loongson32 |
7 | load-$(CONFIG_LOONGSON1_LS1B) += 0xffffffff80100000 | 7 | load-$(CONFIG_LOONGSON1_LS1B) += 0xffffffff80100000 |
diff --git a/arch/mips/loongson1/common/Makefile b/arch/mips/loongson32/common/Makefile index 723b4ce3b8f0..723b4ce3b8f0 100644 --- a/arch/mips/loongson1/common/Makefile +++ b/arch/mips/loongson32/common/Makefile | |||
diff --git a/arch/mips/loongson1/common/irq.c b/arch/mips/loongson32/common/irq.c index 455a7704a90f..455a7704a90f 100644 --- a/arch/mips/loongson1/common/irq.c +++ b/arch/mips/loongson32/common/irq.c | |||
diff --git a/arch/mips/loongson1/common/platform.c b/arch/mips/loongson32/common/platform.c index ddf1d4cbf31e..ddf1d4cbf31e 100644 --- a/arch/mips/loongson1/common/platform.c +++ b/arch/mips/loongson32/common/platform.c | |||
diff --git a/arch/mips/loongson1/common/prom.c b/arch/mips/loongson32/common/prom.c index 68600980ea49..68600980ea49 100644 --- a/arch/mips/loongson1/common/prom.c +++ b/arch/mips/loongson32/common/prom.c | |||
diff --git a/arch/mips/loongson1/common/reset.c b/arch/mips/loongson32/common/reset.c index c41e4ca56ab4..c41e4ca56ab4 100644 --- a/arch/mips/loongson1/common/reset.c +++ b/arch/mips/loongson32/common/reset.c | |||
diff --git a/arch/mips/loongson1/common/setup.c b/arch/mips/loongson32/common/setup.c index 62f41afee241..62f41afee241 100644 --- a/arch/mips/loongson1/common/setup.c +++ b/arch/mips/loongson32/common/setup.c | |||
diff --git a/arch/mips/loongson1/common/time.c b/arch/mips/loongson32/common/time.c index df0f850d6a5f..df0f850d6a5f 100644 --- a/arch/mips/loongson1/common/time.c +++ b/arch/mips/loongson32/common/time.c | |||
diff --git a/arch/mips/loongson1/ls1b/Makefile b/arch/mips/loongson32/ls1b/Makefile index 891eac482b82..891eac482b82 100644 --- a/arch/mips/loongson1/ls1b/Makefile +++ b/arch/mips/loongson32/ls1b/Makefile | |||
diff --git a/arch/mips/loongson1/ls1b/board.c b/arch/mips/loongson32/ls1b/board.c index 58daeea25739..58daeea25739 100644 --- a/arch/mips/loongson1/ls1b/board.c +++ b/arch/mips/loongson32/ls1b/board.c | |||
diff --git a/arch/mips/loongson/Kconfig b/arch/mips/loongson64/Kconfig index 506414915463..497912b38d8e 100644 --- a/arch/mips/loongson/Kconfig +++ b/arch/mips/loongson64/Kconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | if MACH_LOONGSON | 1 | if MACH_LOONGSON64 |
2 | 2 | ||
3 | choice | 3 | choice |
4 | prompt "Machine Type" | 4 | prompt "Machine Type" |
@@ -155,4 +155,4 @@ config LOONGSON_MC146818 | |||
155 | config LEFI_FIRMWARE_INTERFACE | 155 | config LEFI_FIRMWARE_INTERFACE |
156 | bool | 156 | bool |
157 | 157 | ||
158 | endif # MACH_LOONGSON | 158 | endif # MACH_LOONGSON64 |
diff --git a/arch/mips/loongson/Makefile b/arch/mips/loongson64/Makefile index 7429994e7604..4fe3d88fc361 100644 --- a/arch/mips/loongson/Makefile +++ b/arch/mips/loongson64/Makefile | |||
@@ -2,7 +2,7 @@ | |||
2 | # Common code for all Loongson based systems | 2 | # Common code for all Loongson based systems |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-$(CONFIG_MACH_LOONGSON) += common/ | 5 | obj-$(CONFIG_MACH_LOONGSON64) += common/ |
6 | 6 | ||
7 | # | 7 | # |
8 | # Lemote Fuloong mini-PC (Loongson 2E-based) | 8 | # Lemote Fuloong mini-PC (Loongson 2E-based) |
diff --git a/arch/mips/loongson/Platform b/arch/mips/loongson64/Platform index 0ac20eb84ecc..2e48e83d5524 100644 --- a/arch/mips/loongson/Platform +++ b/arch/mips/loongson64/Platform | |||
@@ -26,8 +26,8 @@ endif | |||
26 | # Loongson Machines' Support | 26 | # Loongson Machines' Support |
27 | # | 27 | # |
28 | 28 | ||
29 | platform-$(CONFIG_MACH_LOONGSON) += loongson/ | 29 | platform-$(CONFIG_MACH_LOONGSON64) += loongson64/ |
30 | cflags-$(CONFIG_MACH_LOONGSON) += -I$(srctree)/arch/mips/include/asm/mach-loongson -mno-branch-likely | 30 | cflags-$(CONFIG_MACH_LOONGSON64) += -I$(srctree)/arch/mips/include/asm/mach-loongson64 -mno-branch-likely |
31 | load-$(CONFIG_LEMOTE_FULOONG2E) += 0xffffffff80100000 | 31 | load-$(CONFIG_LEMOTE_FULOONG2E) += 0xffffffff80100000 |
32 | load-$(CONFIG_LEMOTE_MACH2F) += 0xffffffff80200000 | 32 | load-$(CONFIG_LEMOTE_MACH2F) += 0xffffffff80200000 |
33 | load-$(CONFIG_LOONGSON_MACH3X) += 0xffffffff80200000 | 33 | load-$(CONFIG_LOONGSON_MACH3X) += 0xffffffff80200000 |
diff --git a/arch/mips/loongson/common/Makefile b/arch/mips/loongson64/common/Makefile index f2e8153e44f5..f2e8153e44f5 100644 --- a/arch/mips/loongson/common/Makefile +++ b/arch/mips/loongson64/common/Makefile | |||
diff --git a/arch/mips/loongson/common/bonito-irq.c b/arch/mips/loongson64/common/bonito-irq.c index cc0e4fd548e6..cc0e4fd548e6 100644 --- a/arch/mips/loongson/common/bonito-irq.c +++ b/arch/mips/loongson64/common/bonito-irq.c | |||
diff --git a/arch/mips/loongson/common/cmdline.c b/arch/mips/loongson64/common/cmdline.c index 72fed003a536..72fed003a536 100644 --- a/arch/mips/loongson/common/cmdline.c +++ b/arch/mips/loongson64/common/cmdline.c | |||
diff --git a/arch/mips/loongson/common/cs5536/Makefile b/arch/mips/loongson64/common/cs5536/Makefile index f12e64007347..f12e64007347 100644 --- a/arch/mips/loongson/common/cs5536/Makefile +++ b/arch/mips/loongson64/common/cs5536/Makefile | |||
diff --git a/arch/mips/loongson/common/cs5536/cs5536_acc.c b/arch/mips/loongson64/common/cs5536/cs5536_acc.c index ab4d6cc57384..ab4d6cc57384 100644 --- a/arch/mips/loongson/common/cs5536/cs5536_acc.c +++ b/arch/mips/loongson64/common/cs5536/cs5536_acc.c | |||
diff --git a/arch/mips/loongson/common/cs5536/cs5536_ehci.c b/arch/mips/loongson64/common/cs5536/cs5536_ehci.c index ec2e360267a8..ec2e360267a8 100644 --- a/arch/mips/loongson/common/cs5536/cs5536_ehci.c +++ b/arch/mips/loongson64/common/cs5536/cs5536_ehci.c | |||
diff --git a/arch/mips/loongson/common/cs5536/cs5536_ide.c b/arch/mips/loongson64/common/cs5536/cs5536_ide.c index a73414d9ee51..a73414d9ee51 100644 --- a/arch/mips/loongson/common/cs5536/cs5536_ide.c +++ b/arch/mips/loongson64/common/cs5536/cs5536_ide.c | |||
diff --git a/arch/mips/loongson/common/cs5536/cs5536_isa.c b/arch/mips/loongson64/common/cs5536/cs5536_isa.c index 924be39e7733..924be39e7733 100644 --- a/arch/mips/loongson/common/cs5536/cs5536_isa.c +++ b/arch/mips/loongson64/common/cs5536/cs5536_isa.c | |||
diff --git a/arch/mips/loongson/common/cs5536/cs5536_mfgpt.c b/arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c index 12c75db23420..12c75db23420 100644 --- a/arch/mips/loongson/common/cs5536/cs5536_mfgpt.c +++ b/arch/mips/loongson64/common/cs5536/cs5536_mfgpt.c | |||
diff --git a/arch/mips/loongson/common/cs5536/cs5536_ohci.c b/arch/mips/loongson64/common/cs5536/cs5536_ohci.c index f7c905e50dc4..f7c905e50dc4 100644 --- a/arch/mips/loongson/common/cs5536/cs5536_ohci.c +++ b/arch/mips/loongson64/common/cs5536/cs5536_ohci.c | |||
diff --git a/arch/mips/loongson/common/cs5536/cs5536_pci.c b/arch/mips/loongson64/common/cs5536/cs5536_pci.c index b739723205f8..b739723205f8 100644 --- a/arch/mips/loongson/common/cs5536/cs5536_pci.c +++ b/arch/mips/loongson64/common/cs5536/cs5536_pci.c | |||
diff --git a/arch/mips/loongson/common/dma-swiotlb.c b/arch/mips/loongson64/common/dma-swiotlb.c index 2c6b989c1bc4..2c6b989c1bc4 100644 --- a/arch/mips/loongson/common/dma-swiotlb.c +++ b/arch/mips/loongson64/common/dma-swiotlb.c | |||
diff --git a/arch/mips/loongson/common/early_printk.c b/arch/mips/loongson64/common/early_printk.c index 6ca632e529dc..6ca632e529dc 100644 --- a/arch/mips/loongson/common/early_printk.c +++ b/arch/mips/loongson64/common/early_printk.c | |||
diff --git a/arch/mips/loongson/common/env.c b/arch/mips/loongson64/common/env.c index 22f04ca2ff3e..22f04ca2ff3e 100644 --- a/arch/mips/loongson/common/env.c +++ b/arch/mips/loongson64/common/env.c | |||
diff --git a/arch/mips/loongson/common/init.c b/arch/mips/loongson64/common/init.c index 9b987fe98b5b..9b987fe98b5b 100644 --- a/arch/mips/loongson/common/init.c +++ b/arch/mips/loongson64/common/init.c | |||
diff --git a/arch/mips/loongson/common/irq.c b/arch/mips/loongson64/common/irq.c index 687003b19b45..687003b19b45 100644 --- a/arch/mips/loongson/common/irq.c +++ b/arch/mips/loongson64/common/irq.c | |||
diff --git a/arch/mips/loongson/common/machtype.c b/arch/mips/loongson64/common/machtype.c index f2807bc662a3..f2807bc662a3 100644 --- a/arch/mips/loongson/common/machtype.c +++ b/arch/mips/loongson64/common/machtype.c | |||
diff --git a/arch/mips/loongson/common/mem.c b/arch/mips/loongson64/common/mem.c index b01d52473da8..b01d52473da8 100644 --- a/arch/mips/loongson/common/mem.c +++ b/arch/mips/loongson64/common/mem.c | |||
diff --git a/arch/mips/loongson/common/pci.c b/arch/mips/loongson64/common/pci.c index 4e2575643781..4e2575643781 100644 --- a/arch/mips/loongson/common/pci.c +++ b/arch/mips/loongson64/common/pci.c | |||
diff --git a/arch/mips/loongson/common/platform.c b/arch/mips/loongson64/common/platform.c index 0ed38321a9a2..0ed38321a9a2 100644 --- a/arch/mips/loongson/common/platform.c +++ b/arch/mips/loongson64/common/platform.c | |||
diff --git a/arch/mips/loongson/common/pm.c b/arch/mips/loongson64/common/pm.c index a6b67ccfc811..a6b67ccfc811 100644 --- a/arch/mips/loongson/common/pm.c +++ b/arch/mips/loongson64/common/pm.c | |||
diff --git a/arch/mips/loongson/common/reset.c b/arch/mips/loongson64/common/reset.c index a60715e11306..a60715e11306 100644 --- a/arch/mips/loongson/common/reset.c +++ b/arch/mips/loongson64/common/reset.c | |||
diff --git a/arch/mips/loongson/common/rtc.c b/arch/mips/loongson64/common/rtc.c index b5709af09f7f..b5709af09f7f 100644 --- a/arch/mips/loongson/common/rtc.c +++ b/arch/mips/loongson64/common/rtc.c | |||
diff --git a/arch/mips/loongson/common/serial.c b/arch/mips/loongson64/common/serial.c index c23fa1373729..c23fa1373729 100644 --- a/arch/mips/loongson/common/serial.c +++ b/arch/mips/loongson64/common/serial.c | |||
diff --git a/arch/mips/loongson/common/setup.c b/arch/mips/loongson64/common/setup.c index d477dd6bb326..d477dd6bb326 100644 --- a/arch/mips/loongson/common/setup.c +++ b/arch/mips/loongson64/common/setup.c | |||
diff --git a/arch/mips/loongson/common/time.c b/arch/mips/loongson64/common/time.c index e1a5382ad47e..e1a5382ad47e 100644 --- a/arch/mips/loongson/common/time.c +++ b/arch/mips/loongson64/common/time.c | |||
diff --git a/arch/mips/loongson/common/uart_base.c b/arch/mips/loongson64/common/uart_base.c index 9de559d58e1f..9de559d58e1f 100644 --- a/arch/mips/loongson/common/uart_base.c +++ b/arch/mips/loongson64/common/uart_base.c | |||
diff --git a/arch/mips/loongson/fuloong-2e/Makefile b/arch/mips/loongson64/fuloong-2e/Makefile index b7622720c1ad..b7622720c1ad 100644 --- a/arch/mips/loongson/fuloong-2e/Makefile +++ b/arch/mips/loongson64/fuloong-2e/Makefile | |||
diff --git a/arch/mips/loongson/fuloong-2e/irq.c b/arch/mips/loongson64/fuloong-2e/irq.c index ef5ec8f3de5f..ef5ec8f3de5f 100644 --- a/arch/mips/loongson/fuloong-2e/irq.c +++ b/arch/mips/loongson64/fuloong-2e/irq.c | |||
diff --git a/arch/mips/loongson/fuloong-2e/reset.c b/arch/mips/loongson64/fuloong-2e/reset.c index da4d2ae2a1f8..da4d2ae2a1f8 100644 --- a/arch/mips/loongson/fuloong-2e/reset.c +++ b/arch/mips/loongson64/fuloong-2e/reset.c | |||
diff --git a/arch/mips/loongson/lemote-2f/Makefile b/arch/mips/loongson64/lemote-2f/Makefile index 4f9eaa328a16..4f9eaa328a16 100644 --- a/arch/mips/loongson/lemote-2f/Makefile +++ b/arch/mips/loongson64/lemote-2f/Makefile | |||
diff --git a/arch/mips/loongson/lemote-2f/clock.c b/arch/mips/loongson64/lemote-2f/clock.c index 462e34d46b4a..462e34d46b4a 100644 --- a/arch/mips/loongson/lemote-2f/clock.c +++ b/arch/mips/loongson64/lemote-2f/clock.c | |||
diff --git a/arch/mips/loongson/lemote-2f/ec_kb3310b.c b/arch/mips/loongson64/lemote-2f/ec_kb3310b.c index 2b666d3a3947..2b666d3a3947 100644 --- a/arch/mips/loongson/lemote-2f/ec_kb3310b.c +++ b/arch/mips/loongson64/lemote-2f/ec_kb3310b.c | |||
diff --git a/arch/mips/loongson/lemote-2f/ec_kb3310b.h b/arch/mips/loongson64/lemote-2f/ec_kb3310b.h index 5a3f1860d4d2..5a3f1860d4d2 100644 --- a/arch/mips/loongson/lemote-2f/ec_kb3310b.h +++ b/arch/mips/loongson64/lemote-2f/ec_kb3310b.h | |||
diff --git a/arch/mips/loongson/lemote-2f/irq.c b/arch/mips/loongson64/lemote-2f/irq.c index cab5f43e0e29..cab5f43e0e29 100644 --- a/arch/mips/loongson/lemote-2f/irq.c +++ b/arch/mips/loongson64/lemote-2f/irq.c | |||
diff --git a/arch/mips/loongson/lemote-2f/machtype.c b/arch/mips/loongson64/lemote-2f/machtype.c index b55e6eece5e0..b55e6eece5e0 100644 --- a/arch/mips/loongson/lemote-2f/machtype.c +++ b/arch/mips/loongson64/lemote-2f/machtype.c | |||
diff --git a/arch/mips/loongson/lemote-2f/pm.c b/arch/mips/loongson64/lemote-2f/pm.c index cac4d382ea73..cac4d382ea73 100644 --- a/arch/mips/loongson/lemote-2f/pm.c +++ b/arch/mips/loongson64/lemote-2f/pm.c | |||
diff --git a/arch/mips/loongson/lemote-2f/reset.c b/arch/mips/loongson64/lemote-2f/reset.c index a26ca7fcd7e0..a26ca7fcd7e0 100644 --- a/arch/mips/loongson/lemote-2f/reset.c +++ b/arch/mips/loongson64/lemote-2f/reset.c | |||
diff --git a/arch/mips/loongson/loongson-3/Makefile b/arch/mips/loongson64/loongson-3/Makefile index 622fead5ebc9..622fead5ebc9 100644 --- a/arch/mips/loongson/loongson-3/Makefile +++ b/arch/mips/loongson64/loongson-3/Makefile | |||
diff --git a/arch/mips/loongson/loongson-3/cop2-ex.c b/arch/mips/loongson64/loongson-3/cop2-ex.c index ea13764d0a03..ea13764d0a03 100644 --- a/arch/mips/loongson/loongson-3/cop2-ex.c +++ b/arch/mips/loongson64/loongson-3/cop2-ex.c | |||
diff --git a/arch/mips/loongson/loongson-3/hpet.c b/arch/mips/loongson64/loongson-3/hpet.c index 5c21cd3bd339..5c21cd3bd339 100644 --- a/arch/mips/loongson/loongson-3/hpet.c +++ b/arch/mips/loongson64/loongson-3/hpet.c | |||
diff --git a/arch/mips/loongson/loongson-3/irq.c b/arch/mips/loongson64/loongson-3/irq.c index 0f75b6b3d218..0f75b6b3d218 100644 --- a/arch/mips/loongson/loongson-3/irq.c +++ b/arch/mips/loongson64/loongson-3/irq.c | |||
diff --git a/arch/mips/loongson/loongson-3/numa.c b/arch/mips/loongson64/loongson-3/numa.c index 12d14ed48778..12d14ed48778 100644 --- a/arch/mips/loongson/loongson-3/numa.c +++ b/arch/mips/loongson64/loongson-3/numa.c | |||
diff --git a/arch/mips/loongson/loongson-3/platform.c b/arch/mips/loongson64/loongson-3/platform.c index 25a97cc0ee33..25a97cc0ee33 100644 --- a/arch/mips/loongson/loongson-3/platform.c +++ b/arch/mips/loongson64/loongson-3/platform.c | |||
diff --git a/arch/mips/loongson/loongson-3/smp.c b/arch/mips/loongson64/loongson-3/smp.c index 509877c6e9d9..509877c6e9d9 100644 --- a/arch/mips/loongson/loongson-3/smp.c +++ b/arch/mips/loongson64/loongson-3/smp.c | |||
diff --git a/arch/mips/loongson/loongson-3/smp.h b/arch/mips/loongson64/loongson-3/smp.h index d98ff654b7d7..d98ff654b7d7 100644 --- a/arch/mips/loongson/loongson-3/smp.h +++ b/arch/mips/loongson64/loongson-3/smp.h | |||
diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index cc773271b919..78029bd2444b 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile | |||
@@ -24,7 +24,7 @@ obj-$(CONFIG_COMMON_CLK_CDCE706) += clk-cdce706.o | |||
24 | obj-$(CONFIG_ARCH_CLPS711X) += clk-clps711x.o | 24 | obj-$(CONFIG_ARCH_CLPS711X) += clk-clps711x.o |
25 | obj-$(CONFIG_ARCH_EFM32) += clk-efm32gg.o | 25 | obj-$(CONFIG_ARCH_EFM32) += clk-efm32gg.o |
26 | obj-$(CONFIG_ARCH_HIGHBANK) += clk-highbank.o | 26 | obj-$(CONFIG_ARCH_HIGHBANK) += clk-highbank.o |
27 | obj-$(CONFIG_MACH_LOONGSON1) += clk-ls1x.o | 27 | obj-$(CONFIG_MACH_LOONGSON32) += clk-ls1x.o |
28 | obj-$(CONFIG_COMMON_CLK_MAX_GEN) += clk-max-gen.o | 28 | obj-$(CONFIG_COMMON_CLK_MAX_GEN) += clk-max-gen.o |
29 | obj-$(CONFIG_COMMON_CLK_MAX77686) += clk-max77686.o | 29 | obj-$(CONFIG_COMMON_CLK_MAX77686) += clk-max77686.o |
30 | obj-$(CONFIG_COMMON_CLK_MAX77802) += clk-max77802.o | 30 | obj-$(CONFIG_COMMON_CLK_MAX77802) += clk-max77802.o |
diff --git a/drivers/cpufreq/ls1x-cpufreq.c b/drivers/cpufreq/ls1x-cpufreq.c index f0913eee2f50..262581b3318d 100644 --- a/drivers/cpufreq/ls1x-cpufreq.c +++ b/drivers/cpufreq/ls1x-cpufreq.c | |||
@@ -17,8 +17,8 @@ | |||
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | 19 | ||
20 | #include <asm/mach-loongson1/cpufreq.h> | 20 | #include <cpufreq.h> |
21 | #include <asm/mach-loongson1/loongson1.h> | 21 | #include <loongson1.h> |
22 | 22 | ||
23 | static struct { | 23 | static struct { |
24 | struct device *dev; | 24 | struct device *dev; |
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 0fe4ad8826b2..354b908a03d8 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig | |||
@@ -1484,7 +1484,7 @@ config RTC_DRV_PUV3 | |||
1484 | 1484 | ||
1485 | config RTC_DRV_LOONGSON1 | 1485 | config RTC_DRV_LOONGSON1 |
1486 | tristate "loongson1 RTC support" | 1486 | tristate "loongson1 RTC support" |
1487 | depends on MACH_LOONGSON1 | 1487 | depends on MACH_LOONGSON32 |
1488 | help | 1488 | help |
1489 | This is a driver for the loongson1 on-chip Counter0 (Time-Of-Year | 1489 | This is a driver for the loongson1 on-chip Counter0 (Time-Of-Year |
1490 | counter) to be used as a RTC. | 1490 | counter) to be used as a RTC. |
diff --git a/drivers/rtc/rtc-ls1x.c b/drivers/rtc/rtc-ls1x.c index 8445e564094a..22a9ec4f2b83 100644 --- a/drivers/rtc/rtc-ls1x.c +++ b/drivers/rtc/rtc-ls1x.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | #include <linux/types.h> | 18 | #include <linux/types.h> |
19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
20 | #include <asm/mach-loongson1/loongson1.h> | 20 | #include <loongson1.h> |
21 | 21 | ||
22 | #define LS1X_RTC_REG_OFFSET (LS1X_RTC_BASE + 0x20) | 22 | #define LS1X_RTC_REG_OFFSET (LS1X_RTC_BASE + 0x20) |
23 | #define LS1X_RTC_REGS(x) \ | 23 | #define LS1X_RTC_REGS(x) \ |