aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2011-04-16 14:29:28 -0400
committerRalf Baechle <ralf@linux-mips.org>2011-05-19 04:55:48 -0400
commit06785df09b18e9127d16893039b64ae118c53cb4 (patch)
treec27f04c79a13f5294546f40a6e89c4dddcd9d904 /arch/mips/kernel
parentc094c99e659efedcbb05a0f75b8f77145d8ec539 (diff)
MIPS: Set ELF AT_PLATFORM string for BMIPS processors
Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Cc: Robert Millan <rmh@gnu.org> Cc: David Daney <ddaney@caviumnetworks.com> Cc: wu zhangjin <wuzhangjin@gmail.com> Cc: Aurelien Jarno <aurelien@aurel32.net> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/2300/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/cpu-probe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index aa86250844ca..7da861755f4f 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -917,12 +917,14 @@ static inline void cpu_probe_broadcom(struct cpuinfo_mips *c, unsigned int cpu)
917 case PRID_IMP_BMIPS32_REV8: 917 case PRID_IMP_BMIPS32_REV8:
918 c->cputype = CPU_BMIPS32; 918 c->cputype = CPU_BMIPS32;
919 __cpu_name[cpu] = "Broadcom BMIPS32"; 919 __cpu_name[cpu] = "Broadcom BMIPS32";
920 set_elf_platform(cpu, "bmips32");
920 break; 921 break;
921 case PRID_IMP_BMIPS3300: 922 case PRID_IMP_BMIPS3300:
922 case PRID_IMP_BMIPS3300_ALT: 923 case PRID_IMP_BMIPS3300_ALT:
923 case PRID_IMP_BMIPS3300_BUG: 924 case PRID_IMP_BMIPS3300_BUG:
924 c->cputype = CPU_BMIPS3300; 925 c->cputype = CPU_BMIPS3300;
925 __cpu_name[cpu] = "Broadcom BMIPS3300"; 926 __cpu_name[cpu] = "Broadcom BMIPS3300";
927 set_elf_platform(cpu, "bmips3300");
926 break; 928 break;
927 case PRID_IMP_BMIPS43XX: { 929 case PRID_IMP_BMIPS43XX: {
928 int rev = c->processor_id & 0xff; 930 int rev = c->processor_id & 0xff;
@@ -931,15 +933,18 @@ static inline void cpu_probe_broadcom(struct cpuinfo_mips *c, unsigned int cpu)
931 rev <= PRID_REV_BMIPS4380_HI) { 933 rev <= PRID_REV_BMIPS4380_HI) {
932 c->cputype = CPU_BMIPS4380; 934 c->cputype = CPU_BMIPS4380;
933 __cpu_name[cpu] = "Broadcom BMIPS4380"; 935 __cpu_name[cpu] = "Broadcom BMIPS4380";
936 set_elf_platform(cpu, "bmips4380");
934 } else { 937 } else {
935 c->cputype = CPU_BMIPS4350; 938 c->cputype = CPU_BMIPS4350;
936 __cpu_name[cpu] = "Broadcom BMIPS4350"; 939 __cpu_name[cpu] = "Broadcom BMIPS4350";
940 set_elf_platform(cpu, "bmips4350");
937 } 941 }
938 break; 942 break;
939 } 943 }
940 case PRID_IMP_BMIPS5000: 944 case PRID_IMP_BMIPS5000:
941 c->cputype = CPU_BMIPS5000; 945 c->cputype = CPU_BMIPS5000;
942 __cpu_name[cpu] = "Broadcom BMIPS5000"; 946 __cpu_name[cpu] = "Broadcom BMIPS5000";
947 set_elf_platform(cpu, "bmips5000");
943 c->options |= MIPS_CPU_ULRI; 948 c->options |= MIPS_CPU_ULRI;
944 break; 949 break;
945 } 950 }