]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
sh: Fix up SH-4A part probe.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 9 Apr 2008 08:57:05 +0000 (17:57 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 18 Apr 2008 16:50:07 +0000 (09:50 -0700)
The SH-4A series probe we were relying on doesn't work any more on the
newer parts, bump this up to use CVR.CHIP instead so we have consistent
behaviour across all of the parts, which is what this should have been
testing in the first place.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4/probe.c

index c478b16dbf4b1882ee75af08e5e791c854133f72..6ea87af7247e70aa6532025eb3c49d11742a69b2 100644 (file)
@@ -53,7 +53,7 @@ int __init detect_cpu_and_cache_system(void)
        /*
         * Setup some generic flags we can probe on SH-4A parts
         */
-       if (((pvr >> 16) & 0xff) == 0x10) {
+       if (((pvr >> 24) & 0xff) == 0x10) {
                if ((cvr & 0x10000000) == 0)
                        boot_cpu_data.flags |= CPU_HAS_DSP;