dm: Add a new CPU init function which can use driver model
authorSimon Glass <sjg@chromium.org>
Thu, 5 Mar 2015 19:25:16 +0000 (12:25 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Apr 2015 01:27:41 +0000 (19:27 -0600)
commitd4c671cc2742927d3aef830b3b56e1ca2377c887
tree1001348f1a6472c801e4f223db58217ef0c8f3c8
parent31f57c28736d9a070fe56c55d57e9da406ee86ba
dm: Add a new CPU init function which can use driver model

Since driver model is set up after arch_cpu_init(), that function cannot
use drivers. Add a new arch_cpu_init_dm() function which is called
immediately after driver model is ready, and can reference devices.

This can be used to probe essential devices for the CPU.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/board_f.c
include/common.h