diff options
Diffstat (limited to 'arch/mips/include/asm/netlogic/xlp-hal/xlp.h')
-rw-r--r-- | arch/mips/include/asm/netlogic/xlp-hal/xlp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/include/asm/netlogic/xlp-hal/xlp.h b/arch/mips/include/asm/netlogic/xlp-hal/xlp.h index d59cdd69496b..7a4a5142bbc5 100644 --- a/arch/mips/include/asm/netlogic/xlp-hal/xlp.h +++ b/arch/mips/include/asm/netlogic/xlp-hal/xlp.h | |||
@@ -64,5 +64,12 @@ int xlp_get_dram_map(int n, uint64_t *dram_map); | |||
64 | /* Device tree related */ | 64 | /* Device tree related */ |
65 | void *xlp_dt_init(void *fdtp); | 65 | void *xlp_dt_init(void *fdtp); |
66 | 66 | ||
67 | static inline int cpu_is_xlpii(void) | ||
68 | { | ||
69 | int chip = read_c0_prid() & 0xff00; | ||
70 | |||
71 | return chip == PRID_IMP_NETLOGIC_XLP2XX; | ||
72 | } | ||
73 | |||
67 | #endif /* !__ASSEMBLY__ */ | 74 | #endif /* !__ASSEMBLY__ */ |
68 | #endif /* _ASM_NLM_XLP_H */ | 75 | #endif /* _ASM_NLM_XLP_H */ |