summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-03-28 16:27:29 (GMT)
committerTom Rini <trini@konsulko.com>2017-04-05 17:55:08 (GMT)
commit8749fa6af3e94630eeb02bc3a45fe9bdcb8d3087 (patch)
treebb62d9299642dbdfa3a53dc430906c0b3e52f85c /arch
parent689697785e04aefd08b6efdc4e47a737819da173 (diff)
downloadu-boot-8749fa6af3e94630eeb02bc3a45fe9bdcb8d3087.tar.xz
board_f: powerpc: Make prt_8260_rsr(), prt_8260_clks() private
Move these two function calls into checkcpu(), which is called on this arch immediately after these two. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/cpu/mpc8260/cpu.c9
-rw-r--r--arch/powerpc/include/asm/processor.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8260/cpu.c b/arch/powerpc/cpu/mpc8260/cpu.c
index 9f2be3c..58d1c02 100644
--- a/arch/powerpc/cpu/mpc8260/cpu.c
+++ b/arch/powerpc/cpu/mpc8260/cpu.c
@@ -50,7 +50,14 @@ int checkcpu (void)
uint pvr = get_pvr ();
uint immr, rev, m, k;
char buf[32];
-
+ int ret;
+
+ ret = prt_8260_rsr();
+ if (ret)
+ return ret;
+ ret = prt_8260_clks();
+ if (ret)
+ return ret;
puts ("CPU: ");
switch (pvr) {
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h
index c032726..fd38da9 100644
--- a/arch/powerpc/include/asm/processor.h
+++ b/arch/powerpc/include/asm/processor.h
@@ -1355,6 +1355,8 @@ void ll_puts(const char *);
void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);
int prt_83xx_rsr(void);
+int prt_8260_rsr(void);
+int prt_8260_clks(void);
#endif /* ndef ASSEMBLY*/