u-boot-brain/include/dm
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
..
device-internal.h dm: Allow drivers to be marked 'before relocation' 2014-07-23 14:07:24 +01:00
device.h dm: Allow drivers to be marked 'before relocation' 2014-07-23 14:07:24 +01:00
lists.h dm: Allow drivers to be marked 'before relocation' 2014-07-23 14:07:24 +01:00
platdata.h dm: Add base driver model support 2014-03-04 12:15:29 -05:00
root.h dm: Allow drivers to be marked 'before relocation' 2014-07-23 14:07:24 +01:00
test.h dm: rename device struct to udevice 2014-05-27 10:21:32 -04:00
uclass-id.h dm: Add base driver model support 2014-03-04 12:15:29 -05:00
uclass-internal.h dm: rename device struct to udevice 2014-05-27 10:21:32 -04:00
uclass.h dm: Tidy up four minor code nits 2014-06-20 11:56:50 -06:00
ut.h dm: Add basic tests 2014-03-04 12:15:29 -05:00
util.h dm: Add base driver model support 2014-03-04 12:15:29 -05:00