diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2009-07-02 11:26:08 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-09-17 14:07:47 -0400 |
commit | 8e4971175acc910eb4258df82a6bd8f2c4e4e5b5 (patch) | |
tree | 921d53308d0a8a8e9119ec6b262a01fe0ccd1fd5 /arch/mips/include | |
parent | 67b35e5d01aba7a83f2161b0c90acb08afa01e3e (diff) |
MIPS: Loongson: Change naming methods
To make source code of loongson sharable to the machines(such as gdium)
made by the other companies, we rename arch/mips/lemote to
arch/mips/loongson, asm/mach-lemote to asm/mach-loongson, and rename lm2e
to the name of the machine: fuloong-2e. accordingly, FULONG are renamed to
FULOONG2E to make it distinguishable to the future FULOONG2F. and also,
some other relative tuning is needed.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/mach-loongson/cpu-feature-overrides.h (renamed from arch/mips/include/asm/mach-lemote/cpu-feature-overrides.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson/dma-coherence.h (renamed from arch/mips/include/asm/mach-lemote/dma-coherence.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson/loongson.h (renamed from arch/mips/include/asm/mach-lemote/loongson.h) | 3 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson/mc146818rtc.h (renamed from arch/mips/include/asm/mach-lemote/mc146818rtc.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson/pci.h (renamed from arch/mips/include/asm/mach-lemote/pci.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-loongson/war.h (renamed from arch/mips/include/asm/mach-lemote/war.h) | 6 | ||||
-rw-r--r-- | arch/mips/include/asm/mips-boards/bonito64.h | 2 |
7 files changed, 16 insertions, 19 deletions
diff --git a/arch/mips/include/asm/mach-lemote/cpu-feature-overrides.h b/arch/mips/include/asm/mach-loongson/cpu-feature-overrides.h index 550a10dc9dba..ce5b6e270e3f 100644 --- a/arch/mips/include/asm/mach-lemote/cpu-feature-overrides.h +++ b/arch/mips/include/asm/mach-loongson/cpu-feature-overrides.h | |||
@@ -13,8 +13,8 @@ | |||
13 | * loongson2f user manual. | 13 | * loongson2f user manual. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifndef __ASM_MACH_LEMOTE_CPU_FEATURE_OVERRIDES_H | 16 | #ifndef __ASM_MACH_LOONGSON_CPU_FEATURE_OVERRIDES_H |
17 | #define __ASM_MACH_LEMOTE_CPU_FEATURE_OVERRIDES_H | 17 | #define __ASM_MACH_LOONGSON_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 |
@@ -56,4 +56,4 @@ | |||
56 | #define cpu_has_watch 1 | 56 | #define cpu_has_watch 1 |
57 | #define cpu_icache_snoops_remote_store 1 | 57 | #define cpu_icache_snoops_remote_store 1 |
58 | 58 | ||
59 | #endif /* __ASM_MACH_LEMOTE_CPU_FEATURE_OVERRIDES_H */ | 59 | #endif /* __ASM_MACH_LOONGSON_CPU_FEATURE_OVERRIDES_H */ |
diff --git a/arch/mips/include/asm/mach-lemote/dma-coherence.h b/arch/mips/include/asm/mach-loongson/dma-coherence.h index c8de5e750777..71a6851ba833 100644 --- a/arch/mips/include/asm/mach-lemote/dma-coherence.h +++ b/arch/mips/include/asm/mach-loongson/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_LEMOTE_DMA_COHERENCE_H | 11 | #ifndef __ASM_MACH_LOONGSON_DMA_COHERENCE_H |
12 | #define __ASM_MACH_LEMOTE_DMA_COHERENCE_H | 12 | #define __ASM_MACH_LOONGSON_DMA_COHERENCE_H |
13 | 13 | ||
14 | struct device; | 14 | struct device; |
15 | 15 | ||
@@ -65,4 +65,4 @@ static inline int plat_device_is_coherent(struct device *dev) | |||
65 | return 0; | 65 | return 0; |
66 | } | 66 | } |
67 | 67 | ||
68 | #endif /* __ASM_MACH_LEMOTE_DMA_COHERENCE_H */ | 68 | #endif /* __ASM_MACH_LOONGSON_DMA_COHERENCE_H */ |
diff --git a/arch/mips/include/asm/mach-lemote/loongson.h b/arch/mips/include/asm/mach-loongson/loongson.h index 95ee4c8f2d56..e9f74dee24ef 100644 --- a/arch/mips/include/asm/mach-lemote/loongson.h +++ b/arch/mips/include/asm/mach-loongson/loongson.h | |||
@@ -21,9 +21,6 @@ | |||
21 | /* loongson internal northbridge initialization */ | 21 | /* loongson internal northbridge initialization */ |
22 | extern void bonito_irq_init(void); | 22 | extern void bonito_irq_init(void); |
23 | 23 | ||
24 | /* loongson-based machines specific reboot setup */ | ||
25 | extern void mips_reboot_setup(void); | ||
26 | |||
27 | /* environment arguments from bootloader */ | 24 | /* environment arguments from bootloader */ |
28 | extern unsigned long bus_clock, cpu_clock_freq; | 25 | extern unsigned long bus_clock, cpu_clock_freq; |
29 | extern unsigned long memsize, highmemsize; | 26 | extern unsigned long memsize, highmemsize; |
diff --git a/arch/mips/include/asm/mach-lemote/mc146818rtc.h b/arch/mips/include/asm/mach-loongson/mc146818rtc.h index ed5147e11085..ed7fe978335a 100644 --- a/arch/mips/include/asm/mach-lemote/mc146818rtc.h +++ b/arch/mips/include/asm/mach-loongson/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_LEMOTE_MC146818RTC_H | 10 | #ifndef __ASM_MACH_LOONGSON_MC146818RTC_H |
11 | #define __ASM_MACH_LEMOTE_MC146818RTC_H | 11 | #define __ASM_MACH_LOONGSON_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_LEMOTE_MC146818RTC_H */ | 36 | #endif /* __ASM_MACH_LOONGSON_MC146818RTC_H */ |
diff --git a/arch/mips/include/asm/mach-lemote/pci.h b/arch/mips/include/asm/mach-loongson/pci.h index 3e6b1300afb6..e229b2904cc9 100644 --- a/arch/mips/include/asm/mach-lemote/pci.h +++ b/arch/mips/include/asm/mach-loongson/pci.h | |||
@@ -19,8 +19,8 @@ | |||
19 | * 02139, USA. | 19 | * 02139, USA. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef __ASM_MACH_LEMOTE_PCI_H_ | 22 | #ifndef __ASM_MACH_LOONGSON_PCI_H_ |
23 | #define __ASM_MACH_LEMOTE_PCI_H_ | 23 | #define __ASM_MACH_LOONGSON_PCI_H_ |
24 | 24 | ||
25 | extern struct pci_ops bonito64_pci_ops; | 25 | extern struct pci_ops bonito64_pci_ops; |
26 | 26 | ||
@@ -28,4 +28,4 @@ extern struct pci_ops bonito64_pci_ops; | |||
28 | #define LOONGSON2E_PCI_MEM_END (BONITO_PCILO1_BASE + 0x04000000 * 2) | 28 | #define LOONGSON2E_PCI_MEM_END (BONITO_PCILO1_BASE + 0x04000000 * 2) |
29 | #define LOONGSON2E_PCI_IO_START 0x00004000UL | 29 | #define LOONGSON2E_PCI_IO_START 0x00004000UL |
30 | 30 | ||
31 | #endif /* !__ASM_MACH_LEMOTE_PCI_H_ */ | 31 | #endif /* !__ASM_MACH_LOONGSON_PCI_H_ */ |
diff --git a/arch/mips/include/asm/mach-lemote/war.h b/arch/mips/include/asm/mach-loongson/war.h index 05f89e0f2a11..4b971c3ffd8d 100644 --- a/arch/mips/include/asm/mach-lemote/war.h +++ b/arch/mips/include/asm/mach-loongson/war.h | |||
@@ -5,8 +5,8 @@ | |||
5 | * | 5 | * |
6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> | 6 | * Copyright (C) 2002, 2004, 2007 by Ralf Baechle <ralf@linux-mips.org> |
7 | */ | 7 | */ |
8 | #ifndef __ASM_MIPS_MACH_LEMOTE_WAR_H | 8 | #ifndef __ASM_MACH_LOONGSON_WAR_H |
9 | #define __ASM_MIPS_MACH_LEMOTE_WAR_H | 9 | #define __ASM_MACH_LOONGSON_WAR_H |
10 | 10 | ||
11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 | 11 | #define R4600_V1_INDEX_ICACHEOP_WAR 0 |
12 | #define R4600_V1_HIT_CACHEOP_WAR 0 | 12 | #define R4600_V1_HIT_CACHEOP_WAR 0 |
@@ -22,4 +22,4 @@ | |||
22 | #define R10000_LLSC_WAR 0 | 22 | #define R10000_LLSC_WAR 0 |
23 | #define MIPS34K_MISSED_ITLB_WAR 0 | 23 | #define MIPS34K_MISSED_ITLB_WAR 0 |
24 | 24 | ||
25 | #endif /* __ASM_MIPS_MACH_LEMOTE_WAR_H */ | 25 | #endif /* __ASM_MACH_LEMOTE_WAR_H */ |
diff --git a/arch/mips/include/asm/mips-boards/bonito64.h b/arch/mips/include/asm/mips-boards/bonito64.h index a0f04bb99c99..a576ce044c3c 100644 --- a/arch/mips/include/asm/mips-boards/bonito64.h +++ b/arch/mips/include/asm/mips-boards/bonito64.h | |||
@@ -26,7 +26,7 @@ | |||
26 | /* offsets from base register */ | 26 | /* offsets from base register */ |
27 | #define BONITO(x) (x) | 27 | #define BONITO(x) (x) |
28 | 28 | ||
29 | #elif defined(CONFIG_LEMOTE_FULONG) | 29 | #elif defined(CONFIG_LEMOTE_FULOONG2E) |
30 | 30 | ||
31 | #define BONITO(x) (*(volatile u32 *)((char *)CKSEG1ADDR(BONITO_REG_BASE) + (x))) | 31 | #define BONITO(x) (*(volatile u32 *)((char *)CKSEG1ADDR(BONITO_REG_BASE) + (x))) |
32 | #define BONITO_IRQ_BASE 32 | 32 | #define BONITO_IRQ_BASE 32 |