u-boot/test
Simon Glass 00606d7e39 dm: Allow drivers to be marked 'before relocation'
Driver model currently only operates after relocation is complete. In this
state U-Boot typically has a small amount of memory available. In adding
support for driver model prior to relocation we must try to use as little
memory as possible.

In addition, on some machines the memory has not be inited and/or the CPU
is not running at full speed or the data cache is off. These can reduce
execution performance, so the less initialisation that is done before
relocation the better.

An immediately-obvious improvement is to only initialise drivers which are
actually going to be used before relocation. On many boards the only such
driver is a serial UART, so this provides a very large potential benefit.

Allow drivers to mark themselves as 'pre-reloc' which means that they will
be initialised prior to relocation. This can be done either with a driver
flag or with a 'dm,pre-reloc' device tree property.

To support this, the various dm scanning function now take a 'pre_reloc_only'
parameter which indicates that only drivers marked pre-reloc should be
bound.

Signed-off-by: Simon Glass <sjg@chromium.org>
2014-07-23 14:07:24 +01:00
..
dm dm: Allow drivers to be marked 'before relocation' 2014-07-23 14:07:24 +01:00
image sandbox: dumpimage: Test dumpimage 2013-12-13 09:15:32 -05:00
trace Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
vboot sandbox: restore ability to access host fs through standard commands 2014-06-23 15:37:23 -06:00
command_ut.c sandbox: restore ability to access host fs through standard commands 2014-06-23 15:37:23 -06:00
compression.c Coding Style cleanup: replace leading SPACEs by TABs 2013-10-14 16:06:54 -04:00
Makefile dts, api, test: convert makefiles to Kbuild style 2013-11-01 11:42:12 -04:00