diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-mips/mach-mips |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-mips/mach-mips')
-rw-r--r-- | include/asm-mips/mach-mips/cpu-feature-overrides.h | 67 | ||||
-rw-r--r-- | include/asm-mips/mach-mips/mach-gt64120.h | 28 | ||||
-rw-r--r-- | include/asm-mips/mach-mips/mc146818rtc.h | 48 |
3 files changed, 143 insertions, 0 deletions
diff --git a/include/asm-mips/mach-mips/cpu-feature-overrides.h b/include/asm-mips/mach-mips/cpu-feature-overrides.h new file mode 100644 index 000000000000..6f51be571bf0 --- /dev/null +++ b/include/asm-mips/mach-mips/cpu-feature-overrides.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (C) 2003, 2004 Chris Dearman | ||
7 | * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org) | ||
8 | */ | ||
9 | #ifndef __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H | ||
10 | #define __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H | ||
11 | |||
12 | #include <linux/config.h> | ||
13 | |||
14 | /* | ||
15 | * CPU feature overrides for MIPS boards | ||
16 | */ | ||
17 | #ifdef CONFIG_CPU_MIPS32 | ||
18 | #define cpu_has_tlb 1 | ||
19 | #define cpu_has_4kex 1 | ||
20 | #define cpu_has_4ktlb 1 | ||
21 | /* #define cpu_has_fpu ? */ | ||
22 | /* #define cpu_has_32fpr ? */ | ||
23 | #define cpu_has_counter 1 | ||
24 | /* #define cpu_has_watch ? */ | ||
25 | #define cpu_has_divec 1 | ||
26 | #define cpu_has_vce 0 | ||
27 | /* #define cpu_has_cache_cdex_p ? */ | ||
28 | /* #define cpu_has_cache_cdex_s ? */ | ||
29 | /* #define cpu_has_prefetch ? */ | ||
30 | #define cpu_has_mcheck 1 | ||
31 | /* #define cpu_has_ejtag ? */ | ||
32 | #define cpu_has_llsc 1 | ||
33 | /* #define cpu_has_vtag_icache ? */ | ||
34 | /* #define cpu_has_dc_aliases ? */ | ||
35 | /* #define cpu_has_ic_fills_f_dc ? */ | ||
36 | #define cpu_has_nofpuex 0 | ||
37 | /* #define cpu_has_64bits ? */ | ||
38 | /* #define cpu_has_64bit_zero_reg ? */ | ||
39 | /* #define cpu_has_subset_pcaches ? */ | ||
40 | #endif | ||
41 | |||
42 | #ifdef CONFIG_CPU_MIPS64 | ||
43 | #define cpu_has_tlb 1 | ||
44 | #define cpu_has_4kex 1 | ||
45 | #define cpu_has_4ktlb 1 | ||
46 | /* #define cpu_has_fpu ? */ | ||
47 | /* #define cpu_has_32fpr ? */ | ||
48 | #define cpu_has_counter 1 | ||
49 | /* #define cpu_has_watch ? */ | ||
50 | #define cpu_has_divec 1 | ||
51 | #define cpu_has_vce 0 | ||
52 | /* #define cpu_has_cache_cdex_p ? */ | ||
53 | /* #define cpu_has_cache_cdex_s ? */ | ||
54 | /* #define cpu_has_prefetch ? */ | ||
55 | #define cpu_has_mcheck 1 | ||
56 | /* #define cpu_has_ejtag ? */ | ||
57 | #define cpu_has_llsc 1 | ||
58 | /* #define cpu_has_vtag_icache ? */ | ||
59 | /* #define cpu_has_dc_aliases ? */ | ||
60 | /* #define cpu_has_ic_fills_f_dc ? */ | ||
61 | #define cpu_has_nofpuex 0 | ||
62 | /* #define cpu_has_64bits ? */ | ||
63 | /* #define cpu_has_64bit_zero_reg ? */ | ||
64 | /* #define cpu_has_subset_pcaches ? */ | ||
65 | #endif | ||
66 | |||
67 | #endif /* __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H */ | ||
diff --git a/include/asm-mips/mach-mips/mach-gt64120.h b/include/asm-mips/mach-mips/mach-gt64120.h new file mode 100644 index 000000000000..511f7cf3a6be --- /dev/null +++ b/include/asm-mips/mach-mips/mach-gt64120.h | |||
@@ -0,0 +1,28 @@ | |||
1 | /* | ||
2 | * This is a direct copy of the ev96100.h file, with a global | ||
3 | * search and replace. The numbers are the same. | ||
4 | * | ||
5 | * The reason I'm duplicating this is so that the 64120/96100 | ||
6 | * defines won't be confusing in the source code. | ||
7 | */ | ||
8 | #ifndef _ASM_MACH_MIPS_MACH_GT64120_DEP_H | ||
9 | #define _ASM_MACH_MIPS_MACH_GT64120_DEP_H | ||
10 | |||
11 | #define MIPS_GT_BASE 0x1be00000 | ||
12 | |||
13 | extern unsigned long _pcictrl_gt64120; | ||
14 | /* | ||
15 | * GT64120 config space base address | ||
16 | */ | ||
17 | #define GT64120_BASE _pcictrl_gt64120 | ||
18 | |||
19 | /* | ||
20 | * PCI Bus allocation | ||
21 | */ | ||
22 | #define GT_PCI_MEM_BASE 0x12000000UL | ||
23 | #define GT_PCI_MEM_SIZE 0x02000000UL | ||
24 | #define GT_PCI_IO_BASE 0x10000000UL | ||
25 | #define GT_PCI_IO_SIZE 0x02000000UL | ||
26 | #define GT_ISA_IO_BASE PCI_IO_BASE | ||
27 | |||
28 | #endif /* _ASM_MACH_MIPS_MACH_GT64120_DEP_H */ | ||
diff --git a/include/asm-mips/mach-mips/mc146818rtc.h b/include/asm-mips/mach-mips/mc146818rtc.h new file mode 100644 index 000000000000..6730ba066576 --- /dev/null +++ b/include/asm-mips/mach-mips/mc146818rtc.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | * Carsten Langgaard, carstenl@mips.com | ||
3 | * Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved. | ||
4 | * Copyright (C) 2003 by Ralf Baechle | ||
5 | * | ||
6 | * This program is free software; you can distribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License (Version 2) as | ||
8 | * published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
13 | * for more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License along | ||
16 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
17 | * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. | ||
18 | * | ||
19 | * RTC routines for Malta style attached PIIX4 device, which contains a | ||
20 | * Motorola MC146818A-compatible Real Time Clock. | ||
21 | */ | ||
22 | #ifndef __ASM_MACH_MALTA_MC146818RTC_H | ||
23 | #define __ASM_MACH_MALTA_MC146818RTC_H | ||
24 | |||
25 | #include <asm/io.h> | ||
26 | #include <asm/mips-boards/generic.h> | ||
27 | #include <asm/mips-boards/malta.h> | ||
28 | |||
29 | #define RTC_PORT(x) (0x70 + (x)) | ||
30 | #define RTC_IRQ 8 | ||
31 | |||
32 | static inline unsigned char CMOS_READ(unsigned long addr) | ||
33 | { | ||
34 | outb(addr, MALTA_RTC_ADR_REG); | ||
35 | return inb(MALTA_RTC_DAT_REG); | ||
36 | } | ||
37 | |||
38 | static inline void CMOS_WRITE(unsigned char data, unsigned long addr) | ||
39 | { | ||
40 | outb(addr, MALTA_RTC_ADR_REG); | ||
41 | outb(data, MALTA_RTC_DAT_REG); | ||
42 | } | ||
43 | |||
44 | #define RTC_ALWAYS_BCD 0 | ||
45 | |||
46 | #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1970) | ||
47 | |||
48 | #endif /* __ASM_MACH_MALTA_MC146818RTC_H */ | ||