summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-01-23 20:31:22 (GMT)
committerTom Rini <trini@konsulko.com>2017-01-25 22:38:41 (GMT)
commitcbcbf71bf238abd6daf13116b9a209c8fc98ae64 (patch)
tree693a11758b7eea2d9c1f47962caf5c74bd4df870 /include
parent4585601ae2147730fcf342ed9b57a2c684503490 (diff)
downloadu-boot-fsl-qoriq-cbcbf71bf238abd6daf13116b9a209c8fc98ae64.tar.xz
powerpc: Drop probecpu() in favour of arch_cpu_init()
To avoid an unnecessary arch-specific call in board_init_f(), rename this function. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 2af555e..53cdadf 100644
--- a/include/common.h
+++ b/include/common.h
@@ -600,7 +600,17 @@ int cpu_num_dspcores(void);
u32 cpu_mask (void);
u32 cpu_dsp_mask(void);
int is_core_valid (unsigned int);
-int probecpu (void);
+
+/**
+ * arch_cpu_init() - basic cpu-dependent setup for an architecture
+ *
+ * This is called after early malloc is available. It should handle any
+ * CPU- or SoC- specific init needed to continue the init sequence. See
+ * board_f.c for where it is called. If this is not provided, a default
+ * version (which does nothing) will be used.
+ */
+int arch_cpu_init(void);
+
int checkcpu (void);
int checkicache (void);
int checkdcache (void);