]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
powerpc/8xx: Use symbolic PVR value
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 8 Aug 2017 11:58:58 +0000 (13:58 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 13:32:18 +0000 (23:32 +1000)
For the 8xx, PVR values defined in arch/powerpc/include/asm/reg.h
are nowhere used.

Remove all defines and add PVR_8xx

Use it in arch/powerpc/kernel/cputable.c

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/cputable.c

index 70722e5b93e797c5ac0cd0d48a23e31a53ce9ff0..c36823d64ec9e166820f3a9d3022d0fecc384ac5 100644 (file)
  * differentiated by the version number in the Communication Processor
  * Module (CPM).
  */
-#define PVR_821                0x00500000
-#define PVR_823                PVR_821
-#define PVR_850                PVR_821
-#define PVR_860                PVR_821
+#define PVR_8xx                0x00500000
+
 #define PVR_8240       0x00810100
 #define PVR_8245       0x80811014
 #define PVR_8260       PVR_8240
index e9ba5b84ac9bd46b7404c7fd13d2e7f2636a7af6..760872916013dc24ed009248a9b64717f339952d 100644 (file)
@@ -1262,7 +1262,7 @@ static struct cpu_spec __initdata cpu_specs[] = {
 #ifdef CONFIG_PPC_8xx
        {       /* 8xx */
                .pvr_mask               = 0xffff0000,
-               .pvr_value              = 0x00500000,
+               .pvr_value              = PVR_8xx,
                .cpu_name               = "8xx",
                /* CPU_FTR_MAYBE_CAN_DOZE is possible,
                 * if the 8xx code is there.... */