diff options
Diffstat (limited to 'arch/mips/include/asm/octeon/octeon-model.h')
-rw-r--r-- | arch/mips/include/asm/octeon/octeon-model.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/mips/include/asm/octeon/octeon-model.h b/arch/mips/include/asm/octeon/octeon-model.h index 23b895cb260b..14dd11f4492a 100644 --- a/arch/mips/include/asm/octeon/octeon-model.h +++ b/arch/mips/include/asm/octeon/octeon-model.h | |||
@@ -61,6 +61,16 @@ | |||
61 | #define OM_MATCH_5XXX_FAMILY_MODELS 0x20000000 | 61 | #define OM_MATCH_5XXX_FAMILY_MODELS 0x20000000 |
62 | /* Match all cn6XXX Octeon models. */ | 62 | /* Match all cn6XXX Octeon models. */ |
63 | #define OM_MATCH_6XXX_FAMILY_MODELS 0x40000000 | 63 | #define OM_MATCH_6XXX_FAMILY_MODELS 0x40000000 |
64 | /* Match all cnf7XXX Octeon models. */ | ||
65 | #define OM_MATCH_F7XXX_FAMILY_MODELS 0x80000000 | ||
66 | |||
67 | /* | ||
68 | * CNF7XXX models with new revision encoding | ||
69 | */ | ||
70 | #define OCTEON_CNF71XX_PASS1_0 0x000d9400 | ||
71 | |||
72 | #define OCTEON_CNF71XX (OCTEON_CNF71XX_PASS1_0 | OM_IGNORE_REVISION) | ||
73 | #define OCTEON_CNF71XX_PASS1_X (OCTEON_CNF71XX_PASS1_0 | OM_IGNORE_MINOR_REVISION) | ||
64 | 74 | ||
65 | /* | 75 | /* |
66 | * CN6XXX models with new revision encoding | 76 | * CN6XXX models with new revision encoding |
@@ -313,6 +323,14 @@ static inline int __octeon_is_model_runtime__(uint32_t model) | |||
313 | const char *octeon_model_get_string(uint32_t chip_id); | 323 | const char *octeon_model_get_string(uint32_t chip_id); |
314 | const char *octeon_model_get_string_buffer(uint32_t chip_id, char *buffer); | 324 | const char *octeon_model_get_string_buffer(uint32_t chip_id, char *buffer); |
315 | 325 | ||
326 | /* | ||
327 | * Return the octeon family, i.e., ProcessorID of the PrID register. | ||
328 | */ | ||
329 | static inline uint32_t cvmx_get_octeon_family(void) | ||
330 | { | ||
331 | return cvmx_get_proc_id() & OCTEON_FAMILY_MASK; | ||
332 | } | ||
333 | |||
316 | #include <asm/octeon/octeon-feature.h> | 334 | #include <asm/octeon/octeon-feature.h> |
317 | 335 | ||
318 | #endif /* __OCTEON_MODEL_H__ */ | 336 | #endif /* __OCTEON_MODEL_H__ */ |