summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2017-03-28 10:27:29 -0600
committerTom Rini <[email protected]>2017-04-05 13:55:08 -0400
commit8749fa6af3e94630eeb02bc3a45fe9bdcb8d3087 (patch)
treebb62d9299642dbdfa3a53dc430906c0b3e52f85c /arch/powerpc/cpu
parent689697785e04aefd08b6efdc4e47a737819da173 (diff)
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 <[email protected]> Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'arch/powerpc/cpu')
-rw-r--r--arch/powerpc/cpu/mpc8260/cpu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8260/cpu.c b/arch/powerpc/cpu/mpc8260/cpu.c
index 9f2be3cb22c..58d1c0261cb 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) {