diff options
author | Heiko Stübner <heiko@sntech.de> | 2017-02-18 21:46:21 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-03-17 01:03:44 +0300 |
commit | 27326c7ee269ff351bba8c2461e19f29d66b6a3a (patch) | |
tree | e64993fade9d4290d6ea79e24cdbe4885c469f52 /doc | |
parent | 2adb981207b06d93633c1a546f882dbb4dc260e4 (diff) | |
download | u-boot-27326c7ee269ff351bba8c2461e19f29d66b6a3a.tar.xz |
dm: allow limiting pre-reloc markings to spl or tpl
Right now the u-boot,dm-pre-reloc flag will make each marked node
always appear in both spl and tpl. But systems needing an additional
tpl might have special constraints for each, like the spl needing to
be very tiny.
So introduce two additional flags to mark nodes for only spl or tpl
environments and introduce a function dm_fdt_pre_reloc to automate
the necessary checks in code instances checking for pre-relocation
flags.
The behaviour of the original flag stays untouched and still marks
a node for both spl and tpl.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/driver-model/README.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/driver-model/README.txt b/doc/driver-model/README.txt index fea324e25e..0853477578 100644 --- a/doc/driver-model/README.txt +++ b/doc/driver-model/README.txt @@ -825,6 +825,10 @@ drivers marked with DM_FLAG_PRE_RELOC or the device tree 'u-boot,dm-pre-reloc' flag are initialised prior to relocation. This helps to reduce the driver model overhead. +It is possible to limit this to specific relocation steps, by using +the more specialized 'u-boot,dm-spl' and 'u-boot,dm-tpl' flags +in the devicetree. + Then post relocation we throw that away and re-init driver model again. For drivers which require some sort of continuity between pre- and post-relocation devices, we can provide access to the pre-relocation |