Commit b2afb64c authored by Huacai Chen's avatar Huacai Chen Committed by Paul Burton

MIPS: Loongson: Rename LOONGSON1 to LOONGSON32

Now old Loongson-2E/2F use LOONGSON2EF and will be removed in future,
newer Loongson-2/3 use LOONGSON64. So rename LOONGSON1 to LOONGSON32
will make the naming style more unified.
Signed-off-by: default avatarHuacai Chen <chenhc@lemote.com>
[paulburton@kernel.org: Fix checkpatch whitespace warning in irqflags.h]
Signed-off-by: default avatarPaul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-mips@vger.kernel.org
Cc: Fuxin Zhang <zhangfx@lemote.com>
Cc: Zhangjin Wu <wuzhangjin@gmail.com>
Cc: Huacai Chen <chenhuacai@gmail.com>
parent dece3c2a
...@@ -1511,7 +1511,7 @@ config CPU_LOONGSON2F ...@@ -1511,7 +1511,7 @@ config CPU_LOONGSON2F
config CPU_LOONGSON1B config CPU_LOONGSON1B
bool "Loongson 1B" bool "Loongson 1B"
depends on SYS_HAS_CPU_LOONGSON1B depends on SYS_HAS_CPU_LOONGSON1B
select CPU_LOONGSON1 select CPU_LOONGSON32
select LEDS_GPIO_REGISTER select LEDS_GPIO_REGISTER
help help
The Loongson 1B is a 32-bit SoC, which implements the MIPS32 The Loongson 1B is a 32-bit SoC, which implements the MIPS32
...@@ -1521,7 +1521,7 @@ config CPU_LOONGSON1B ...@@ -1521,7 +1521,7 @@ config CPU_LOONGSON1B
config CPU_LOONGSON1C config CPU_LOONGSON1C
bool "Loongson 1C" bool "Loongson 1C"
depends on SYS_HAS_CPU_LOONGSON1C depends on SYS_HAS_CPU_LOONGSON1C
select CPU_LOONGSON1 select CPU_LOONGSON32
select LEDS_GPIO_REGISTER select LEDS_GPIO_REGISTER
help help
The Loongson 1C is a 32-bit SoC, which implements the MIPS32 The Loongson 1C is a 32-bit SoC, which implements the MIPS32
...@@ -1920,7 +1920,7 @@ config CPU_LOONGSON2EF ...@@ -1920,7 +1920,7 @@ config CPU_LOONGSON2EF
select ARCH_HAS_PHYS_TO_DMA select ARCH_HAS_PHYS_TO_DMA
select CPU_HAS_LOAD_STORE_LR select CPU_HAS_LOAD_STORE_LR
config CPU_LOONGSON1 config CPU_LOONGSON32
bool bool
select CPU_MIPS32 select CPU_MIPS32
select CPU_MIPSR2 select CPU_MIPSR2
......
...@@ -25,7 +25,7 @@ static inline int __pure __get_cpu_type(const int cpu_type) ...@@ -25,7 +25,7 @@ static inline int __pure __get_cpu_type(const int cpu_type)
#if defined(CONFIG_SYS_HAS_CPU_LOONGSON1B) || \ #if defined(CONFIG_SYS_HAS_CPU_LOONGSON1B) || \
defined(CONFIG_SYS_HAS_CPU_LOONGSON1C) defined(CONFIG_SYS_HAS_CPU_LOONGSON1C)
case CPU_LOONGSON1: case CPU_LOONGSON32:
#endif #endif
#ifdef CONFIG_SYS_HAS_CPU_MIPS32_R1 #ifdef CONFIG_SYS_HAS_CPU_MIPS32_R1
......
...@@ -312,7 +312,7 @@ enum cpu_type_enum { ...@@ -312,7 +312,7 @@ enum cpu_type_enum {
*/ */
CPU_4KC, CPU_4KEC, CPU_4KSC, CPU_24K, CPU_34K, CPU_1004K, CPU_74K, CPU_4KC, CPU_4KEC, CPU_4KSC, CPU_24K, CPU_34K, CPU_1004K, CPU_74K,
CPU_ALCHEMY, CPU_PR4450, CPU_BMIPS32, CPU_BMIPS3300, CPU_BMIPS4350, CPU_ALCHEMY, CPU_PR4450, CPU_BMIPS32, CPU_BMIPS3300, CPU_BMIPS4350,
CPU_BMIPS4380, CPU_BMIPS5000, CPU_XBURST, CPU_LOONGSON1, CPU_M14KC, CPU_BMIPS4380, CPU_BMIPS5000, CPU_XBURST, CPU_LOONGSON32, CPU_M14KC,
CPU_M14KEC, CPU_INTERAPTIV, CPU_P5600, CPU_PROAPTIV, CPU_1074K, CPU_M14KEC, CPU_INTERAPTIV, CPU_P5600, CPU_PROAPTIV, CPU_1074K,
CPU_M5150, CPU_I6400, CPU_P6600, CPU_M6250, CPU_M5150, CPU_I6400, CPU_P6600, CPU_M6250,
......
...@@ -41,7 +41,7 @@ static inline unsigned long arch_local_irq_save(void) ...@@ -41,7 +41,7 @@ static inline unsigned long arch_local_irq_save(void)
" .set push \n" " .set push \n"
" .set reorder \n" " .set reorder \n"
" .set noat \n" " .set noat \n"
#if defined(CONFIG_CPU_LOONGSON64) || defined (CONFIG_CPU_LOONGSON1) #if defined(CONFIG_CPU_LOONGSON64) || defined(CONFIG_CPU_LOONGSON32)
" mfc0 %[flags], $12 \n" " mfc0 %[flags], $12 \n"
" di \n" " di \n"
#else #else
......
...@@ -119,8 +119,8 @@ search_module_dbetables(unsigned long addr) ...@@ -119,8 +119,8 @@ search_module_dbetables(unsigned long addr)
#define MODULE_PROC_FAMILY "RM7000 " #define MODULE_PROC_FAMILY "RM7000 "
#elif defined CONFIG_CPU_SB1 #elif defined CONFIG_CPU_SB1
#define MODULE_PROC_FAMILY "SB1 " #define MODULE_PROC_FAMILY "SB1 "
#elif defined CONFIG_CPU_LOONGSON1 #elif defined CONFIG_CPU_LOONGSON32
#define MODULE_PROC_FAMILY "LOONGSON1 " #define MODULE_PROC_FAMILY "LOONGSON32 "
#elif defined CONFIG_CPU_LOONGSON2EF #elif defined CONFIG_CPU_LOONGSON2EF
#define MODULE_PROC_FAMILY "LOONGSON2EF " #define MODULE_PROC_FAMILY "LOONGSON2EF "
#elif defined CONFIG_CPU_LOONGSON64 #elif defined CONFIG_CPU_LOONGSON64
......
...@@ -1571,7 +1571,7 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu) ...@@ -1571,7 +1571,7 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)
case PRID_IMP_LOONGSON_32: /* Loongson-1 */ case PRID_IMP_LOONGSON_32: /* Loongson-1 */
decode_configs(c); decode_configs(c);
c->cputype = CPU_LOONGSON1; c->cputype = CPU_LOONGSON32;
switch (c->processor_id & PRID_REV_MASK) { switch (c->processor_id & PRID_REV_MASK) {
case PRID_REV_LOONGSON1B: case PRID_REV_LOONGSON1B:
......
...@@ -173,7 +173,7 @@ void __init check_wait(void) ...@@ -173,7 +173,7 @@ void __init check_wait(void)
case CPU_CAVIUM_OCTEON2: case CPU_CAVIUM_OCTEON2:
case CPU_CAVIUM_OCTEON3: case CPU_CAVIUM_OCTEON3:
case CPU_XBURST: case CPU_XBURST:
case CPU_LOONGSON1: case CPU_LOONGSON32:
case CPU_XLR: case CPU_XLR:
case CPU_XLP: case CPU_XLP:
cpu_wait = r4k_wait; cpu_wait = r4k_wait;
......
...@@ -1764,7 +1764,7 @@ init_hw_perf_events(void) ...@@ -1764,7 +1764,7 @@ init_hw_perf_events(void)
mipspmu.general_event_map = &mipsxxcore_event_map; mipspmu.general_event_map = &mipsxxcore_event_map;
mipspmu.cache_event_map = &mipsxxcore_cache_map; mipspmu.cache_event_map = &mipsxxcore_cache_map;
break; break;
case CPU_LOONGSON1: case CPU_LOONGSON32:
mipspmu.name = "mips/loongson1"; mipspmu.name = "mips/loongson1";
mipspmu.general_event_map = &mipsxxcore_event_map; mipspmu.general_event_map = &mipsxxcore_event_map;
mipspmu.cache_event_map = &mipsxxcore_cache_map; mipspmu.cache_event_map = &mipsxxcore_cache_map;
......
...@@ -1761,7 +1761,7 @@ static inline void parity_protection_init(void) ...@@ -1761,7 +1761,7 @@ static inline void parity_protection_init(void)
case CPU_5KC: case CPU_5KC:
case CPU_5KE: case CPU_5KE:
case CPU_LOONGSON1: case CPU_LOONGSON32:
write_c0_ecc(0x80000000); write_c0_ecc(0x80000000);
back_to_back_c0_hazard(); back_to_back_c0_hazard();
/* Set the PE bit (bit 31) in the c0_errctl register. */ /* Set the PE bit (bit 31) in the c0_errctl register. */
......
...@@ -38,7 +38,7 @@ endchoice ...@@ -38,7 +38,7 @@ endchoice
menuconfig CEVT_CSRC_LS1X menuconfig CEVT_CSRC_LS1X
bool "Use PWM Timer for clockevent/clocksource" bool "Use PWM Timer for clockevent/clocksource"
select MIPS_EXTERNAL_TIMER select MIPS_EXTERNAL_TIMER
depends on CPU_LOONGSON1 depends on CPU_LOONGSON32
help help
This option changes the default clockevent/clocksource to PWM Timer, This option changes the default clockevent/clocksource to PWM Timer,
and is required by Loongson1 CPUFreq support. and is required by Loongson1 CPUFreq support.
......
cflags-$(CONFIG_CPU_LOONGSON1) += -march=mips32r2 -Wa,--trap cflags-$(CONFIG_CPU_LOONGSON32) += -march=mips32r2 -Wa,--trap
platform-$(CONFIG_MACH_LOONGSON32) += loongson32/ platform-$(CONFIG_MACH_LOONGSON32) += loongson32/
cflags-$(CONFIG_MACH_LOONGSON32) += -I$(srctree)/arch/mips/include/asm/mach-loongson32 cflags-$(CONFIG_MACH_LOONGSON32) += -I$(srctree)/arch/mips/include/asm/mach-loongson32
load-$(CONFIG_CPU_LOONGSON1) += 0xffffffff80200000 load-$(CONFIG_CPU_LOONGSON32) += 0xffffffff80200000
...@@ -93,7 +93,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops) ...@@ -93,7 +93,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
case CPU_P5600: case CPU_P5600:
case CPU_I6400: case CPU_I6400:
case CPU_M5150: case CPU_M5150:
case CPU_LOONGSON1: case CPU_LOONGSON32:
case CPU_SB1: case CPU_SB1:
case CPU_SB1A: case CPU_SB1A:
case CPU_R10000: case CPU_R10000:
......
...@@ -420,7 +420,7 @@ static int __init mipsxx_init(void) ...@@ -420,7 +420,7 @@ static int __init mipsxx_init(void)
op_model_mipsxx_ops.cpu_type = "mips/sb1"; op_model_mipsxx_ops.cpu_type = "mips/sb1";
break; break;
case CPU_LOONGSON1: case CPU_LOONGSON32:
op_model_mipsxx_ops.cpu_type = "mips/loongson1"; op_model_mipsxx_ops.cpu_type = "mips/loongson1";
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment