
On 18 February 2017 at 11:46, Heiko Stuebner heiko@sntech.de wrote:
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
doc/driver-model/README.txt | 4 ++++ drivers/clk/at91/pmc.c | 3 ++- drivers/core/root.c | 2 +- drivers/core/util.c | 25 +++++++++++++++++++++++++ drivers/pinctrl/pinctrl-uclass.c | 3 ++- include/dm/util.h | 26 ++++++++++++++++++++++++++ scripts/Makefile.spl | 7 ++++++- tools/dtoc/dtoc.py | 2 ++ 8 files changed, 68 insertions(+), 4 deletions(-)
Applied to u-boot-rockchip, thanks!
(One little nit I forgot to mention might be worth a follow-up patch: dm_fdt_pre_reloc() docs say true/false, so the function should probably return true/false rather than 1/0)