powerpc: mpc83xx: Use defined constant for SPCR[TBEN]
authorJ. Neuschäfer <j.ne@posteo.net>
Fri, 20 Dec 2024 10:37:53 +0000 (11:37 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 30 Dec 2024 21:55:27 +0000 (15:55 -0600)
To increase readability, use the defined constant instead of specifying
SPCR[TBEN] as a number.

Reviewed-by: Sinan Akman <sinan@writeme.com>
Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
arch/powerpc/cpu/mpc83xx/interrupts.c

index af51721..bb37a13 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/global_data.h>
 #include <asm/processor.h>
 #include <asm/ptrace.h>
+#include "initreg/initreg.h"
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -29,7 +30,7 @@ void interrupt_init_cpu (unsigned *decrementer_count)
 
        /* Enable e300 time base */
 
-       immr->sysconf.spcr |= 0x00400000;
+       immr->sysconf.spcr |= SPCR_TBEN_MASK;
 }
 
 /*