git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3e8c67
)
powerpc: mpc83xx: Use defined constant for SPCR[TBEN]
author
J. Neuschäfer
<j.ne@posteo.net>
Fri, 20 Dec 2024 10:37:53 +0000
(11:37 +0100)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc83xx/interrupts.c
b/arch/powerpc/cpu/mpc83xx/interrupts.c
index
af51721
..
bb37a13
100644
(file)
--- a/
arch/powerpc/cpu/mpc83xx/interrupts.c
+++ b/
arch/powerpc/cpu/mpc83xx/interrupts.c
@@
-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
;
}
/*