[U-Boot] [PATCH v4 01/20] dm: allow limiting pre-reloc markings to spl or tpl

Simon Glass sjg at chromium.org
Tue Feb 21 20:34:20 UTC 2017


On 18 February 2017 at 11:46, Heiko Stuebner <heiko at 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 at sntech.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Tested-by: Kever Yang <kever.yang at 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)


More information about the U-Boot mailing list