diff options
author | Kevin Cernekee <cernekee@gmail.com> | 2010-10-16 17:22:32 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-10-29 14:08:52 -0400 |
commit | af231172634b5c0923fa7484a043fadcc07e899e (patch) | |
tree | 61116cff04ff8a8657dca176b04ec35090eac14e | |
parent | c1c0c461c6e5f55add64012249cd6e2c8b3e62a9 (diff) |
MIPS: Add BMIPS CP0 register definitions
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Cc: mbizon@freebox.fr
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Tested-by: Florian Fainelli <ffainelli@freebox.fr>
Patchwork: https://patchwork.linux-mips.org/patch/1708/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org
-rw-r--r-- | arch/mips/include/asm/mipsregs.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h index 335474c155f6..4d9870975382 100644 --- a/arch/mips/include/asm/mipsregs.h +++ b/arch/mips/include/asm/mipsregs.h | |||
@@ -1040,6 +1040,12 @@ do { \ | |||
1040 | #define read_c0_dtaglo() __read_32bit_c0_register($28, 2) | 1040 | #define read_c0_dtaglo() __read_32bit_c0_register($28, 2) |
1041 | #define write_c0_dtaglo(val) __write_32bit_c0_register($28, 2, val) | 1041 | #define write_c0_dtaglo(val) __write_32bit_c0_register($28, 2, val) |
1042 | 1042 | ||
1043 | #define read_c0_ddatalo() __read_32bit_c0_register($28, 3) | ||
1044 | #define write_c0_ddatalo(val) __write_32bit_c0_register($28, 3, val) | ||
1045 | |||
1046 | #define read_c0_staglo() __read_32bit_c0_register($28, 4) | ||
1047 | #define write_c0_staglo(val) __write_32bit_c0_register($28, 4, val) | ||
1048 | |||
1043 | #define read_c0_taghi() __read_32bit_c0_register($29, 0) | 1049 | #define read_c0_taghi() __read_32bit_c0_register($29, 0) |
1044 | #define write_c0_taghi(val) __write_32bit_c0_register($29, 0, val) | 1050 | #define write_c0_taghi(val) __write_32bit_c0_register($29, 0, val) |
1045 | 1051 | ||
@@ -1082,6 +1088,51 @@ do { \ | |||
1082 | #define read_octeon_c0_dcacheerr() __read_64bit_c0_register($27, 1) | 1088 | #define read_octeon_c0_dcacheerr() __read_64bit_c0_register($27, 1) |
1083 | #define write_octeon_c0_dcacheerr(val) __write_64bit_c0_register($27, 1, val) | 1089 | #define write_octeon_c0_dcacheerr(val) __write_64bit_c0_register($27, 1, val) |
1084 | 1090 | ||
1091 | /* BMIPS3300 */ | ||
1092 | #define read_c0_brcm_config_0() __read_32bit_c0_register($22, 0) | ||
1093 | #define write_c0_brcm_config_0(val) __write_32bit_c0_register($22, 0, val) | ||
1094 | |||
1095 | #define read_c0_brcm_bus_pll() __read_32bit_c0_register($22, 4) | ||
1096 | #define write_c0_brcm_bus_pll(val) __write_32bit_c0_register($22, 4, val) | ||
1097 | |||
1098 | #define read_c0_brcm_reset() __read_32bit_c0_register($22, 5) | ||
1099 | #define write_c0_brcm_reset(val) __write_32bit_c0_register($22, 5, val) | ||
1100 | |||
1101 | /* BMIPS4380 */ | ||
1102 | #define read_c0_brcm_cmt_intr() __read_32bit_c0_register($22, 1) | ||
1103 | #define write_c0_brcm_cmt_intr(val) __write_32bit_c0_register($22, 1, val) | ||
1104 | |||
1105 | #define read_c0_brcm_cmt_ctrl() __read_32bit_c0_register($22, 2) | ||
1106 | #define write_c0_brcm_cmt_ctrl(val) __write_32bit_c0_register($22, 2, val) | ||
1107 | |||
1108 | #define read_c0_brcm_cmt_local() __read_32bit_c0_register($22, 3) | ||
1109 | #define write_c0_brcm_cmt_local(val) __write_32bit_c0_register($22, 3, val) | ||
1110 | |||
1111 | #define read_c0_brcm_config_1() __read_32bit_c0_register($22, 5) | ||
1112 | #define write_c0_brcm_config_1(val) __write_32bit_c0_register($22, 5, val) | ||
1113 | |||
1114 | #define read_c0_brcm_cbr() __read_32bit_c0_register($22, 6) | ||
1115 | #define write_c0_brcm_cbr(val) __write_32bit_c0_register($22, 6, val) | ||
1116 | |||
1117 | /* BMIPS5000 */ | ||
1118 | #define read_c0_brcm_config() __read_32bit_c0_register($22, 0) | ||
1119 | #define write_c0_brcm_config(val) __write_32bit_c0_register($22, 0, val) | ||
1120 | |||
1121 | #define read_c0_brcm_mode() __read_32bit_c0_register($22, 1) | ||
1122 | #define write_c0_brcm_mode(val) __write_32bit_c0_register($22, 1, val) | ||
1123 | |||
1124 | #define read_c0_brcm_action() __read_32bit_c0_register($22, 2) | ||
1125 | #define write_c0_brcm_action(val) __write_32bit_c0_register($22, 2, val) | ||
1126 | |||
1127 | #define read_c0_brcm_edsp() __read_32bit_c0_register($22, 3) | ||
1128 | #define write_c0_brcm_edsp(val) __write_32bit_c0_register($22, 3, val) | ||
1129 | |||
1130 | #define read_c0_brcm_bootvec() __read_32bit_c0_register($22, 4) | ||
1131 | #define write_c0_brcm_bootvec(val) __write_32bit_c0_register($22, 4, val) | ||
1132 | |||
1133 | #define read_c0_brcm_sleepcount() __read_32bit_c0_register($22, 7) | ||
1134 | #define write_c0_brcm_sleepcount(val) __write_32bit_c0_register($22, 7, val) | ||
1135 | |||
1085 | /* | 1136 | /* |
1086 | * Macros to access the floating point coprocessor control registers | 1137 | * Macros to access the floating point coprocessor control registers |
1087 | */ | 1138 | */ |