]> git.karo-electronics.de Git - karo-tx-uboot.git/commit - common/board_f.c
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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:22 +0000 (21:47 +0200)
commit18204bc213d47d9214a8c5191dfd18a6492005fc
treee1cdc79cadc72fb4b1a43c97fb9842bfab083578
parentbaa6664ab6f60e03e56c3f442dfb5379ac5c1742
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