| 284 | } |
| 285 | |
| 286 | static inline void |
| 287 | nlm_fmn_cpu_init(int int_vec, int ecc_en, int v0pe, int v1pe, int v2pe, int v3pe) |
| 288 | { |
| 289 | uint32_t val = nlm_read_c2_msgconfig(); |
| 290 | |
| 291 | /* Note: in XLP PRM 0.8.1, the int_vec bits are un-documented |
| 292 | * in msgconfig register of cop2. |
| 293 | * As per chip/cpu RTL, [16:20] bits consist of int_vec. |
| 294 | */ |
| 295 | val |= (((int_vec & 0x1f) << 16) | |
| 296 | ((ecc_en & 0x1) << 8) | |
| 297 | ((v3pe & 0x1) << 4) | |
| 298 | ((v2pe & 0x1) << 3) | |
| 299 | ((v1pe & 0x1) << 2) | |
| 300 | ((v0pe & 0x1) << 1)); |
| 301 | |
| 302 | nlm_write_c2_msgconfig(val); |
| 303 | } |
| 304 | #endif |