MIPS: BMIPS: Add PRId for BMIPS5200 (Whirlwind)
authorKevin Cernekee <cernekee@gmail.com>
Tue, 21 Oct 2014 04:28:01 +0000 (21:28 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:12 +0000 (07:45 +0100)
This is a dual core (quad thread) BMIPS5000.  It needs a little extra
code to boot the second core (CPU2/CPU3), but for now we can treat it the
same as a single core BMIPS5000.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Cc: f.fainelli@gmail.com
Cc: mbizon@freebox.fr
Cc: jogo@openwrt.org
Cc: jfraser@broadcom.com
Cc: linux-mips@linux-mips.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8166/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu.h
arch/mips/kernel/cpu-probe.c

index 11025bfbd8db144f3a84bcaf5203e9a98c6bc0f6..33866fce4d633a177636c1d386e180bdbd8ef02a 100644 (file)
 #define PRID_IMP_BMIPS3300_BUG 0x0000
 #define PRID_IMP_BMIPS43XX     0xa000
 #define PRID_IMP_BMIPS5000     0x5a00
+#define PRID_IMP_BMIPS5200     0x5b00
 
 #define PRID_REV_BMIPS4380_LO  0x0040
 #define PRID_REV_BMIPS4380_HI  0x006f
index d68ad96392f8dec168614ada539724d27829ad74..de8dc4ca1a6915d4e385f36d3351e50eca62659c 100644 (file)
@@ -1087,6 +1087,7 @@ static inline void cpu_probe_broadcom(struct cpuinfo_mips *c, unsigned int cpu)
                break;
        }
        case PRID_IMP_BMIPS5000:
+       case PRID_IMP_BMIPS5200:
                c->cputype = CPU_BMIPS5000;
                __cpu_name[cpu] = "Broadcom BMIPS5000";
                set_elf_platform(cpu, "bmips5000");