]> git.ipfire.org Git - people/ms/u-boot.git/commit
spl: atf: add SPL_ATF_NO_PLATFORM_PARAM option
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 2 Jan 2018 20:16:43 +0000 (21:16 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 3 Jan 2018 13:26:57 +0000 (14:26 +0100)
commitd21fb63d772d32373600abeb7afcb53033e087a7
tree86fb058eba0abfbcfd6c622c114e05368891e44b
parent224d261a16435389cc349b0e1640d489f117189d
spl: atf: add SPL_ATF_NO_PLATFORM_PARAM option

While we expect to call a pointer to a valid FDT (or NULL) as the
platform parameter to an ATF, some ATF versions are not U-Boot aware
and have an insufficiently robust (or an overzealour) parameter
validation: either way, this may cause a hard-stop with uncooperative
ATF versions.

This change adds the option to suppress passing a platform parameter
and will always pass NULL.

Debug output from ATF w/ this option disabled (i.e. default):
      INFO:    plat_param_from_bl2: 0x291450
Debug output from ATF w/ this option enabled:
      INFO:    plat_param_from_bl2: 0

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
common/spl/Kconfig
common/spl/spl_atf.c