summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-01-18 03:32:53 -0800
committerBin Meng <bmeng.cn@gmail.com>2017-02-07 13:23:36 +0800
commit8f60ea00394ba88b575fdfa660e99521e1ad68dd (patch)
treec4eb860eec5f46ebe665f60fd3c84a5c60105865 /arch/x86
parent020a5d4f633e760995b6104cac1f68132469e4b0 (diff)
x86: spl: Add weak arch_cpu_init_dm()
arch_cpu_init_dm() might not be implemented by every platform. Implement a weak version for SPL. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/spl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c
index af1c60f582..ed2d40b552 100644
--- a/arch/x86/lib/spl.c
+++ b/arch/x86/lib/spl.c
@@ -15,6 +15,11 @@
DECLARE_GLOBAL_DATA_PTR;
+__weak int arch_cpu_init_dm(void)
+{
+ return 0;
+}
+
static int x86_spl_init(void)
{
/*