Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] Alchemy: Au1210/Au1250 CPU support

This patch adds IDs for new Au1200 variants: Au1210 and Au1250.
They are essentially identical to the Au1200 except for the Au1210
which has a different SoC-ID in the PRId register [bits 31:24].
The Au1250 is a "Au1200 V0.2".

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Manuel Lauss and committed by
Ralf Baechle
237cfee1 c5ec1983

+15 -2
+9
arch/mips/kernel/cpu-probe.c
··· 188 188 case CPU_AU1500: 189 189 case CPU_AU1550: 190 190 case CPU_AU1200: 191 + case CPU_AU1210: 192 + case CPU_AU1250: 191 193 if (allow_au1k_wait) 192 194 cpu_wait = au1k_wait; 193 195 break; ··· 735 733 break; 736 734 case 4: 737 735 c->cputype = CPU_AU1200; 736 + if (2 == (c->processor_id & 0xff)) 737 + c->cputype = CPU_AU1250; 738 + break; 739 + case 5: 740 + c->cputype = CPU_AU1210; 738 741 break; 739 742 default: 740 743 panic("Unknown Au Core!"); ··· 865 858 case CPU_AU1100: name = "Au1100"; break; 866 859 case CPU_AU1550: name = "Au1550"; break; 867 860 case CPU_AU1200: name = "Au1200"; break; 861 + case CPU_AU1210: name = "Au1210"; break; 862 + case CPU_AU1250: name = "Au1250"; break; 868 863 case CPU_4KEC: name = "MIPS 4KEc"; break; 869 864 case CPU_4KSC: name = "MIPS 4KSc"; break; 870 865 case CPU_VR41XX: name = "NEC Vr41xx"; break;
+2
arch/mips/mm/c-r4k.c
··· 980 980 case CPU_AU1100: 981 981 case CPU_AU1550: 982 982 case CPU_AU1200: 983 + case CPU_AU1210: 984 + case CPU_AU1250: 983 985 c->icache.flags |= MIPS_CACHE_IC_F_DC; 984 986 break; 985 987 }
+2
arch/mips/mm/tlbex.c
··· 917 917 case CPU_AU1500: 918 918 case CPU_AU1550: 919 919 case CPU_AU1200: 920 + case CPU_AU1210: 921 + case CPU_AU1250: 920 922 case CPU_PR4450: 921 923 i_nop(p); 922 924 tlbw(p);
+2 -2
include/asm-mips/cpu.h
··· 195 195 * MIPS32 class processors 196 196 */ 197 197 CPU_4KC, CPU_4KEC, CPU_4KSC, CPU_24K, CPU_34K, CPU_74K, CPU_AU1000, 198 - CPU_AU1100, CPU_AU1200, CPU_AU1500, CPU_AU1550, CPU_PR4450, 199 - CPU_BCM3302, CPU_BCM4710, 198 + CPU_AU1100, CPU_AU1200, CPU_AU1210, CPU_AU1250, CPU_AU1500, CPU_AU1550, 199 + CPU_PR4450, CPU_BCM3302, CPU_BCM4710, 200 200 201 201 /* 202 202 * MIPS64 class processors