.. | .. |
---|
| 1 | +// SPDX-License-Identifier: ISC |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2010 Broadcom Corporation |
---|
3 | | - * |
---|
4 | | - * Permission to use, copy, modify, and/or distribute this software for any |
---|
5 | | - * purpose with or without fee is hereby granted, provided that the above |
---|
6 | | - * copyright notice and this permission notice appear in all copies. |
---|
7 | | - * |
---|
8 | | - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
---|
9 | | - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
---|
10 | | - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
---|
11 | | - * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
---|
12 | | - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
---|
13 | | - * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
---|
14 | | - * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
---|
15 | 4 | */ |
---|
16 | 5 | |
---|
17 | 6 | #include <linux/kernel.h> |
---|
.. | .. |
---|
9023 | 9012 | 0x01d6, |
---|
9024 | 9013 | 0x01d6, |
---|
9025 | 9014 | 0x01d6, |
---|
9026 | | -}; |
---|
9027 | | - |
---|
9028 | | -static const u32 papd_comp_epsilon_tbl_core0_rev3[] = { |
---|
9029 | | - 0x00000000, |
---|
9030 | | - 0x00001fa0, |
---|
9031 | | - 0x00019f78, |
---|
9032 | | - 0x0001df7e, |
---|
9033 | | - 0x03fa9f86, |
---|
9034 | | - 0x03fd1f90, |
---|
9035 | | - 0x03fe5f8a, |
---|
9036 | | - 0x03fb1f94, |
---|
9037 | | - 0x03fd9fa0, |
---|
9038 | | - 0x00009f98, |
---|
9039 | | - 0x03fd1fac, |
---|
9040 | | - 0x03ff9fa2, |
---|
9041 | | - 0x03fe9fae, |
---|
9042 | | - 0x00001fae, |
---|
9043 | | - 0x03fddfb4, |
---|
9044 | | - 0x03ff1fb8, |
---|
9045 | | - 0x03ff9fbc, |
---|
9046 | | - 0x03ffdfbe, |
---|
9047 | | - 0x03fe9fc2, |
---|
9048 | | - 0x03fedfc6, |
---|
9049 | | - 0x03fedfc6, |
---|
9050 | | - 0x03ff9fc8, |
---|
9051 | | - 0x03ff5fc6, |
---|
9052 | | - 0x03fedfc2, |
---|
9053 | | - 0x03ff9fc0, |
---|
9054 | | - 0x03ff5fac, |
---|
9055 | | - 0x03ff5fac, |
---|
9056 | | - 0x03ff9fa2, |
---|
9057 | | - 0x03ff9fa6, |
---|
9058 | | - 0x03ff9faa, |
---|
9059 | | - 0x03ff5fb0, |
---|
9060 | | - 0x03ff5fb4, |
---|
9061 | | - 0x03ff1fca, |
---|
9062 | | - 0x03ff5fce, |
---|
9063 | | - 0x03fcdfdc, |
---|
9064 | | - 0x03fb4006, |
---|
9065 | | - 0x00000030, |
---|
9066 | | - 0x03ff808a, |
---|
9067 | | - 0x03ff80da, |
---|
9068 | | - 0x0000016c, |
---|
9069 | | - 0x03ff8318, |
---|
9070 | | - 0x03ff063a, |
---|
9071 | | - 0x03fd8bd6, |
---|
9072 | | - 0x00014ffe, |
---|
9073 | | - 0x00034ffe, |
---|
9074 | | - 0x00034ffe, |
---|
9075 | | - 0x0003cffe, |
---|
9076 | | - 0x00040ffe, |
---|
9077 | | - 0x00040ffe, |
---|
9078 | | - 0x0003cffe, |
---|
9079 | | - 0x0003cffe, |
---|
9080 | | - 0x00020ffe, |
---|
9081 | | - 0x03fe0ffe, |
---|
9082 | | - 0x03fdcffe, |
---|
9083 | | - 0x03f94ffe, |
---|
9084 | | - 0x03f54ffe, |
---|
9085 | | - 0x03f44ffe, |
---|
9086 | | - 0x03ef8ffe, |
---|
9087 | | - 0x03ee0ffe, |
---|
9088 | | - 0x03ebcffe, |
---|
9089 | | - 0x03e8cffe, |
---|
9090 | | - 0x03e74ffe, |
---|
9091 | | - 0x03e4cffe, |
---|
9092 | | - 0x03e38ffe, |
---|
9093 | | -}; |
---|
9094 | | - |
---|
9095 | | -static const u32 papd_cal_scalars_tbl_core0_rev3[] = { |
---|
9096 | | - 0x05af005a, |
---|
9097 | | - 0x0571005e, |
---|
9098 | | - 0x05040066, |
---|
9099 | | - 0x04bd006c, |
---|
9100 | | - 0x047d0072, |
---|
9101 | | - 0x04430078, |
---|
9102 | | - 0x03f70081, |
---|
9103 | | - 0x03cb0087, |
---|
9104 | | - 0x03870091, |
---|
9105 | | - 0x035e0098, |
---|
9106 | | - 0x032e00a1, |
---|
9107 | | - 0x030300aa, |
---|
9108 | | - 0x02d800b4, |
---|
9109 | | - 0x02ae00bf, |
---|
9110 | | - 0x028900ca, |
---|
9111 | | - 0x026400d6, |
---|
9112 | | - 0x024100e3, |
---|
9113 | | - 0x022200f0, |
---|
9114 | | - 0x020200ff, |
---|
9115 | | - 0x01e5010e, |
---|
9116 | | - 0x01ca011e, |
---|
9117 | | - 0x01b0012f, |
---|
9118 | | - 0x01990140, |
---|
9119 | | - 0x01830153, |
---|
9120 | | - 0x016c0168, |
---|
9121 | | - 0x0158017d, |
---|
9122 | | - 0x01450193, |
---|
9123 | | - 0x013301ab, |
---|
9124 | | - 0x012101c5, |
---|
9125 | | - 0x011101e0, |
---|
9126 | | - 0x010201fc, |
---|
9127 | | - 0x00f4021a, |
---|
9128 | | - 0x00e6011d, |
---|
9129 | | - 0x00d9012e, |
---|
9130 | | - 0x00cd0140, |
---|
9131 | | - 0x00c20153, |
---|
9132 | | - 0x00b70167, |
---|
9133 | | - 0x00ac017c, |
---|
9134 | | - 0x00a30193, |
---|
9135 | | - 0x009a01ab, |
---|
9136 | | - 0x009101c4, |
---|
9137 | | - 0x008901df, |
---|
9138 | | - 0x008101fb, |
---|
9139 | | - 0x007a0219, |
---|
9140 | | - 0x00730239, |
---|
9141 | | - 0x006d025b, |
---|
9142 | | - 0x0067027e, |
---|
9143 | | - 0x006102a4, |
---|
9144 | | - 0x005c02cc, |
---|
9145 | | - 0x005602f6, |
---|
9146 | | - 0x00520323, |
---|
9147 | | - 0x004d0353, |
---|
9148 | | - 0x00490385, |
---|
9149 | | - 0x004503bb, |
---|
9150 | | - 0x004103f3, |
---|
9151 | | - 0x003d042f, |
---|
9152 | | - 0x003a046f, |
---|
9153 | | - 0x003704b2, |
---|
9154 | | - 0x003404f9, |
---|
9155 | | - 0x00310545, |
---|
9156 | | - 0x002e0596, |
---|
9157 | | - 0x002b05f5, |
---|
9158 | | - 0x00290640, |
---|
9159 | | - 0x002606a4, |
---|
9160 | | -}; |
---|
9161 | | - |
---|
9162 | | -static const u32 papd_comp_epsilon_tbl_core1_rev3[] = { |
---|
9163 | | - 0x00000000, |
---|
9164 | | - 0x00001fa0, |
---|
9165 | | - 0x00019f78, |
---|
9166 | | - 0x0001df7e, |
---|
9167 | | - 0x03fa9f86, |
---|
9168 | | - 0x03fd1f90, |
---|
9169 | | - 0x03fe5f8a, |
---|
9170 | | - 0x03fb1f94, |
---|
9171 | | - 0x03fd9fa0, |
---|
9172 | | - 0x00009f98, |
---|
9173 | | - 0x03fd1fac, |
---|
9174 | | - 0x03ff9fa2, |
---|
9175 | | - 0x03fe9fae, |
---|
9176 | | - 0x00001fae, |
---|
9177 | | - 0x03fddfb4, |
---|
9178 | | - 0x03ff1fb8, |
---|
9179 | | - 0x03ff9fbc, |
---|
9180 | | - 0x03ffdfbe, |
---|
9181 | | - 0x03fe9fc2, |
---|
9182 | | - 0x03fedfc6, |
---|
9183 | | - 0x03fedfc6, |
---|
9184 | | - 0x03ff9fc8, |
---|
9185 | | - 0x03ff5fc6, |
---|
9186 | | - 0x03fedfc2, |
---|
9187 | | - 0x03ff9fc0, |
---|
9188 | | - 0x03ff5fac, |
---|
9189 | | - 0x03ff5fac, |
---|
9190 | | - 0x03ff9fa2, |
---|
9191 | | - 0x03ff9fa6, |
---|
9192 | | - 0x03ff9faa, |
---|
9193 | | - 0x03ff5fb0, |
---|
9194 | | - 0x03ff5fb4, |
---|
9195 | | - 0x03ff1fca, |
---|
9196 | | - 0x03ff5fce, |
---|
9197 | | - 0x03fcdfdc, |
---|
9198 | | - 0x03fb4006, |
---|
9199 | | - 0x00000030, |
---|
9200 | | - 0x03ff808a, |
---|
9201 | | - 0x03ff80da, |
---|
9202 | | - 0x0000016c, |
---|
9203 | | - 0x03ff8318, |
---|
9204 | | - 0x03ff063a, |
---|
9205 | | - 0x03fd8bd6, |
---|
9206 | | - 0x00014ffe, |
---|
9207 | | - 0x00034ffe, |
---|
9208 | | - 0x00034ffe, |
---|
9209 | | - 0x0003cffe, |
---|
9210 | | - 0x00040ffe, |
---|
9211 | | - 0x00040ffe, |
---|
9212 | | - 0x0003cffe, |
---|
9213 | | - 0x0003cffe, |
---|
9214 | | - 0x00020ffe, |
---|
9215 | | - 0x03fe0ffe, |
---|
9216 | | - 0x03fdcffe, |
---|
9217 | | - 0x03f94ffe, |
---|
9218 | | - 0x03f54ffe, |
---|
9219 | | - 0x03f44ffe, |
---|
9220 | | - 0x03ef8ffe, |
---|
9221 | | - 0x03ee0ffe, |
---|
9222 | | - 0x03ebcffe, |
---|
9223 | | - 0x03e8cffe, |
---|
9224 | | - 0x03e74ffe, |
---|
9225 | | - 0x03e4cffe, |
---|
9226 | | - 0x03e38ffe, |
---|
9227 | | -}; |
---|
9228 | | - |
---|
9229 | | -static const u32 papd_cal_scalars_tbl_core1_rev3[] = { |
---|
9230 | | - 0x05af005a, |
---|
9231 | | - 0x0571005e, |
---|
9232 | | - 0x05040066, |
---|
9233 | | - 0x04bd006c, |
---|
9234 | | - 0x047d0072, |
---|
9235 | | - 0x04430078, |
---|
9236 | | - 0x03f70081, |
---|
9237 | | - 0x03cb0087, |
---|
9238 | | - 0x03870091, |
---|
9239 | | - 0x035e0098, |
---|
9240 | | - 0x032e00a1, |
---|
9241 | | - 0x030300aa, |
---|
9242 | | - 0x02d800b4, |
---|
9243 | | - 0x02ae00bf, |
---|
9244 | | - 0x028900ca, |
---|
9245 | | - 0x026400d6, |
---|
9246 | | - 0x024100e3, |
---|
9247 | | - 0x022200f0, |
---|
9248 | | - 0x020200ff, |
---|
9249 | | - 0x01e5010e, |
---|
9250 | | - 0x01ca011e, |
---|
9251 | | - 0x01b0012f, |
---|
9252 | | - 0x01990140, |
---|
9253 | | - 0x01830153, |
---|
9254 | | - 0x016c0168, |
---|
9255 | | - 0x0158017d, |
---|
9256 | | - 0x01450193, |
---|
9257 | | - 0x013301ab, |
---|
9258 | | - 0x012101c5, |
---|
9259 | | - 0x011101e0, |
---|
9260 | | - 0x010201fc, |
---|
9261 | | - 0x00f4021a, |
---|
9262 | | - 0x00e6011d, |
---|
9263 | | - 0x00d9012e, |
---|
9264 | | - 0x00cd0140, |
---|
9265 | | - 0x00c20153, |
---|
9266 | | - 0x00b70167, |
---|
9267 | | - 0x00ac017c, |
---|
9268 | | - 0x00a30193, |
---|
9269 | | - 0x009a01ab, |
---|
9270 | | - 0x009101c4, |
---|
9271 | | - 0x008901df, |
---|
9272 | | - 0x008101fb, |
---|
9273 | | - 0x007a0219, |
---|
9274 | | - 0x00730239, |
---|
9275 | | - 0x006d025b, |
---|
9276 | | - 0x0067027e, |
---|
9277 | | - 0x006102a4, |
---|
9278 | | - 0x005c02cc, |
---|
9279 | | - 0x005602f6, |
---|
9280 | | - 0x00520323, |
---|
9281 | | - 0x004d0353, |
---|
9282 | | - 0x00490385, |
---|
9283 | | - 0x004503bb, |
---|
9284 | | - 0x004103f3, |
---|
9285 | | - 0x003d042f, |
---|
9286 | | - 0x003a046f, |
---|
9287 | | - 0x003704b2, |
---|
9288 | | - 0x003404f9, |
---|
9289 | | - 0x00310545, |
---|
9290 | | - 0x002e0596, |
---|
9291 | | - 0x002b05f5, |
---|
9292 | | - 0x00290640, |
---|
9293 | | - 0x002606a4, |
---|
9294 | 9015 | }; |
---|
9295 | 9016 | |
---|
9296 | 9017 | const struct phytbl_info mimophytbl_info_rev3_volatile[] = { |
---|