]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/mips/include/asm/netlogic/xlp-hal/xlp.h
MIPS: Netlogic: Identify XLP 9XX chip
[mirror_ubuntu-artful-kernel.git] / arch / mips / include / asm / netlogic / xlp-hal / xlp.h
index e62e7be52eee6d728ccd460da8facb0cbd44e8b9..9ccdb7d0f073d47f4d0865f20e7692376719f463 100644 (file)
@@ -92,8 +92,15 @@ static inline int cpu_is_xlpii(void)
 {
        int chip = read_c0_prid() & 0xff00;
 
-       return chip == PRID_IMP_NETLOGIC_XLP2XX;
+       return chip == PRID_IMP_NETLOGIC_XLP2XX ||
+               chip == PRID_IMP_NETLOGIC_XLP9XX;
 }
 
+static inline int cpu_is_xlp9xx(void)
+{
+       int chip = read_c0_prid() & 0xff00;
+
+       return chip == PRID_IMP_NETLOGIC_XLP9XX;
+}
 #endif /* !__ASSEMBLY__ */
 #endif /* _ASM_NLM_XLP_H */