aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2018-03-16 17:20:37 +0100
committerTom Rini <trini@konsulko.com>2018-04-06 16:30:37 -0400
commit14119901fd4a2577f93413a665cc79705f7675fd (patch)
tree7777c44bf6c3e02639756aef3ccfecda2de2c314 /arch/powerpc/include
parentfdef3895a03eb45245215eb319fbbbf519d3759c (diff)
downloadu-boot-14119901fd4a2577f93413a665cc79705f7675fd.zip
u-boot-14119901fd4a2577f93413a665cc79705f7675fd.tar.gz
u-boot-14119901fd4a2577f93413a665cc79705f7675fd.tar.bz2
powerpc: mpc8xx: make get_immr() independent of CONFIG_8xx
SPRN_IMMR is defined regardless of the CPU. Therefore, there is no point in enclosing get_immr() inside a #ifdef CONFIG_8xx As it a static inline function, it will in any case only be compiled in functons using it. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/ppc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/ppc.h b/arch/powerpc/include/asm/ppc.h
index 5e0aa08..6ba1097 100644
--- a/arch/powerpc/include/asm/ppc.h
+++ b/arch/powerpc/include/asm/ppc.h
@@ -40,14 +40,13 @@
#include <asm/processor.h>
-#if defined(CONFIG_8xx)
static inline uint get_immr(uint mask)
{
uint immr = mfspr(SPRN_IMMR);
return mask ? (immr & mask) : immr;
}
-#endif
+
static inline uint get_pvr(void)
{
return mfspr(PVR);