cpu-probe.c (f838bad1b3be8ca0c785ee0e0c570dfda74cf377) cpu-probe.c (0b6d497fcbb72b356c9d6446810a9597ee55c432)
1/*
2 * Processor capabilities determination functions.
3 *
4 * Copyright (C) xxxx the Anonymous
5 * Copyright (C) 1994 - 2006 Ralf Baechle
6 * Copyright (C) 2003, 2004 Maciej W. Rozycki
7 * Copyright (C) 2001, 2004 MIPS Inc.
8 *

--- 661 unchanged lines hidden (view full) ---

670 if (!decode_config1(c))
671 return;
672 if (!decode_config2(c))
673 return;
674 if (!decode_config3(c))
675 return;
676}
677
1/*
2 * Processor capabilities determination functions.
3 *
4 * Copyright (C) xxxx the Anonymous
5 * Copyright (C) 1994 - 2006 Ralf Baechle
6 * Copyright (C) 2003, 2004 Maciej W. Rozycki
7 * Copyright (C) 2001, 2004 MIPS Inc.
8 *

--- 661 unchanged lines hidden (view full) ---

670 if (!decode_config1(c))
671 return;
672 if (!decode_config2(c))
673 return;
674 if (!decode_config3(c))
675 return;
676}
677
678#ifdef CONFIG_CPU_MIPSR2
679extern void spram_config(void);
680#else
681static inline void spram_config(void) {}
682#endif
683
678static inline void cpu_probe_mips(struct cpuinfo_mips *c)
679{
680 decode_configs(c);
681 switch (c->processor_id & 0xff00) {
682 case PRID_IMP_4KC:
683 c->cputype = CPU_4KC;
684 break;
685 case PRID_IMP_4KEC:

--- 21 unchanged lines hidden (view full) ---

707 break;
708 case PRID_IMP_34K:
709 c->cputype = CPU_34K;
710 break;
711 case PRID_IMP_74K:
712 c->cputype = CPU_74K;
713 break;
714 }
684static inline void cpu_probe_mips(struct cpuinfo_mips *c)
685{
686 decode_configs(c);
687 switch (c->processor_id & 0xff00) {
688 case PRID_IMP_4KC:
689 c->cputype = CPU_4KC;
690 break;
691 case PRID_IMP_4KEC:

--- 21 unchanged lines hidden (view full) ---

713 break;
714 case PRID_IMP_34K:
715 c->cputype = CPU_34K;
716 break;
717 case PRID_IMP_74K:
718 c->cputype = CPU_74K;
719 break;
720 }
721
722 spram_config();
715}
716
717static inline void cpu_probe_alchemy(struct cpuinfo_mips *c)
718{
719 decode_configs(c);
720 switch (c->processor_id & 0xff00) {
721 case PRID_IMP_AU1_REV1:
722 case PRID_IMP_AU1_REV2:

--- 248 unchanged lines hidden ---
723}
724
725static inline void cpu_probe_alchemy(struct cpuinfo_mips *c)
726{
727 decode_configs(c);
728 switch (c->processor_id & 0xff00) {
729 case PRID_IMP_AU1_REV1:
730 case PRID_IMP_AU1_REV2:

--- 248 unchanged lines hidden ---