Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8907c55e authored by Jayachandran C's avatar Jayachandran C Committed by Ralf Baechle
Browse files

MIPS: Netlogic: Identify XLP 9XX chip



Adds processor ID of XLP 9XX to asm/cpu.h.  Update netlogic/xlp-hal/xlp.h
to add cpu_is_xlp9xx() and to update cpu_is_xlpii() to support XLP 9XX.

Signed-off-by: default avatarJayachandran C <jchandra@broadcom.com>
Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6274/
parent db038fee
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -198,6 +198,7 @@
#define PRID_IMP_NETLOGIC_XLP8XX	0x1000
#define PRID_IMP_NETLOGIC_XLP8XX	0x1000
#define PRID_IMP_NETLOGIC_XLP3XX	0x1100
#define PRID_IMP_NETLOGIC_XLP3XX	0x1100
#define PRID_IMP_NETLOGIC_XLP2XX	0x1200
#define PRID_IMP_NETLOGIC_XLP2XX	0x1200
#define PRID_IMP_NETLOGIC_XLP9XX	0x1500


/*
/*
 * Particular Revision values for bits 7:0 of the PRId register.
 * Particular Revision values for bits 7:0 of the PRId register.
+8 −1
Original line number Original line Diff line number Diff line
@@ -92,8 +92,15 @@ static inline int cpu_is_xlpii(void)
{
{
	int chip = read_c0_prid() & 0xff00;
	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 /* !__ASSEMBLY__ */
#endif /* _ASM_NLM_XLP_H */
#endif /* _ASM_NLM_XLP_H */
+1 −0
Original line number Original line Diff line number Diff line
@@ -1031,6 +1031,7 @@ static inline void cpu_probe_netlogic(struct cpuinfo_mips *c, int cpu)


	switch (c->processor_id & PRID_IMP_MASK) {
	switch (c->processor_id & PRID_IMP_MASK) {
	case PRID_IMP_NETLOGIC_XLP2XX:
	case PRID_IMP_NETLOGIC_XLP2XX:
	case PRID_IMP_NETLOGIC_XLP9XX:
		c->cputype = CPU_XLP;
		c->cputype = CPU_XLP;
		__cpu_name[cpu] = "Broadcom XLPII";
		__cpu_name[cpu] = "Broadcom XLPII";
		break;
		break;
+1 −0
Original line number Original line Diff line number Diff line
@@ -111,6 +111,7 @@ void __init plat_mem_setup(void)
const char *get_system_type(void)
const char *get_system_type(void)
{
{
	switch (read_c0_prid() & 0xff00) {
	switch (read_c0_prid() & 0xff00) {
	case PRID_IMP_NETLOGIC_XLP9XX:
	case PRID_IMP_NETLOGIC_XLP2XX:
	case PRID_IMP_NETLOGIC_XLP2XX:
		return "Broadcom XLPII Series";
		return "Broadcom XLPII Series";
	default:
	default: