summaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/netlogic/xlp-hal/xlp.h
diff options
context:
space:
mode:
authorYonghong Song <ysong@broadcom.com>2014-04-29 20:07:53 +0530
committerRalf Baechle <ralf@linux-mips.org>2014-05-30 16:50:38 +0200
commit1c98398662c9b4e2f03f64344f83dd6cb14e0420 (patch)
treeb04a7f5b706430ac41cec627a6844944f7b58f57 /arch/mips/include/asm/netlogic/xlp-hal/xlp.h
parentedf3ed5e69bcf3f60087099eccab34be0ebcf60a (diff)
downloadlinux-stable-1c98398662c9b4e2f03f64344f83dd6cb14e0420.tar.gz
linux-stable-1c98398662c9b4e2f03f64344f83dd6cb14e0420.tar.bz2
linux-stable-1c98398662c9b4e2f03f64344f83dd6cb14e0420.zip
MIPS: Netlogic: Add support for XLP5XX
Add support for the XLP5XX processor which is an 8 core variant of the XLP9XX. Add XLP5XX cases to code which earlier handled XLP9XX. Signed-off-by: Yonghong Song <ysong@broadcom.com> Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6871/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/netlogic/xlp-hal/xlp.h')
-rw-r--r--arch/mips/include/asm/netlogic/xlp-hal/xlp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/include/asm/netlogic/xlp-hal/xlp.h b/arch/mips/include/asm/netlogic/xlp-hal/xlp.h
index a11b289956e6..62d19871b983 100644
--- a/arch/mips/include/asm/netlogic/xlp-hal/xlp.h
+++ b/arch/mips/include/asm/netlogic/xlp-hal/xlp.h
@@ -102,14 +102,16 @@ static inline int cpu_is_xlpii(void)
int chip = read_c0_prid() & PRID_IMP_MASK;
return chip == PRID_IMP_NETLOGIC_XLP2XX ||
- chip == PRID_IMP_NETLOGIC_XLP9XX;
+ chip == PRID_IMP_NETLOGIC_XLP9XX ||
+ chip == PRID_IMP_NETLOGIC_XLP5XX;
}
static inline int cpu_is_xlp9xx(void)
{
int chip = read_c0_prid() & PRID_IMP_MASK;
- return chip == PRID_IMP_NETLOGIC_XLP9XX;
+ return chip == PRID_IMP_NETLOGIC_XLP9XX ||
+ chip == PRID_IMP_NETLOGIC_XLP5XX;
}
#endif /* !__ASSEMBLY__ */
#endif /* _ASM_NLM_XLP_H */