]> git.neil.brown.name Git - history.git/commitdiff
[ARM PATCH] 2311/1: ARM1176 CPU detection
authorCatalin Marinas <catalin.marinas@com.rmk.(none)>
Thu, 16 Dec 2004 16:12:16 +0000 (16:12 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Thu, 16 Dec 2004 16:12:16 +0000 (16:12 +0000)
Patch from Catalin Marinas

The CPU Id register changed with the ARM1176 processor and the
ARMv6 architecture description field can be either 7 or 0xF.
This patch also detects the first byte of the part number since
0xF in the description field will also be used for future ARM
architectures.

Signed-off-by: Catalin Marinas
Signed-off-by: Russell King
arch/arm/kernel/setup.c
arch/arm/mm/proc-v6.S

index 21d0a197a00a4b890f802028dd278ee494d0992c..3f9501e7f6823de05a1fa8710f93d1adadad3ddb 100644 (file)
@@ -255,7 +255,7 @@ int cpu_architecture(void)
        } else if ((processor_id & 0x0000f000) == 0x00007000) {
                cpu_arch = (processor_id & (1 << 23)) ? CPU_ARCH_ARMv4T : CPU_ARCH_ARMv3;
        } else {
-               cpu_arch = (processor_id >> 16) & 15;
+               cpu_arch = (processor_id >> 16) & 7;
                if (cpu_arch)
                        cpu_arch += CPU_ARCH_ARMv3;
        }
index 0a4ff26247b0d78f1838277a79e355a73df30bfd..166a94e861c98b1acdddc6324106f364b546a56a 100644 (file)
@@ -250,8 +250,8 @@ cpu_elf_name:
         */
        .type   __v6_proc_info, #object
 __v6_proc_info:
-       .long   0x00070000
-       .long   0x00ff0000
+       .long   0x0007b000
+       .long   0x0007f000
        .long   0x00000c0e
        b       __v6_setup
        .long   cpu_arch_name