]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: Make driver model available before board_init()
authorSimon Glass <sjg@chromium.org>
Wed, 3 Sep 2014 23:37:01 +0000 (17:37 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Sep 2014 18:59:58 +0000 (12:59 -0600)
commit9fb02491fe96991cbedc49c7ebe5cdd271d1b6a7
treef0368f2f950e20bf6ce3c4a56b49eafcac678d20
parent294b91a5817147d4b7f47be2ac69bac2a1f26491
dm: Make driver model available before board_init()

For some boards board_init() will change GPIOs, so we need to have driver
model available before then. Adjust the board init to arrange this, but
enable it for driver model only, just to be safe.

This does create additional #ifdef logic, but it is safer than trying to
make a pervasive change which may cause some boards to break.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/board_r.c
common/stdio.c
include/stdio_dev.h