[PATCH] rockchip: rk3399: pass platform parameter to TF-A by default

Kever Yang kever.yang at rock-chips.com
Sun Dec 18 11:00:13 CET 2022


Hi Quentin,

     I would prefer you to remove SPL_ATF_NO_PLATFORM_PARAM in those 
boards you have test,

there may have some boards using legacy ATF binary but still want to use 
mainline U-Boot

which may have problem with this update.


Thanks,

- Kever

On 2022/11/15 01:37, Quentin Schulz wrote:
> From: Quentin Schulz <quentin.schulz at theobroma-systems.com>
>
> Long are gone the times TF-A couldn't handle the FDT passed by U-Boot.
> Specifically, since commit e7b586987c0a ("rockchip: don't crash if we
> get an FDT we can't parse") in TF-A, failure to parse the FDT will use
> the fallback mechanism. This patch was merged in TF-A v2.4-rc0 from two
> years ago.
>
> Therefore, let's finally pass the FDT to TF-A so that it can get the
> serial configuration from U-Boot FDT instead of requiring the user to
> patch TF-A hardcoded fallback values.
>
> Cc: Quentin Schulz <foss+uboot at 0leil.net>
> Signed-off-by: Quentin Schulz <quentin.schulz at theobroma-systems.com>
> ---
> rockchip: rk3399: pass platform parameter to TF-A
>
> Finally pass the FDT address to TF-A since it now gracefully fallbacks to
> hardcoded defaults if it cannot parse it. This allows us to avoid modifying
> hardcoded values in TF-A to enable the console.
>
> This was tested with TF-A v2.7.0 on Puma Haikou RK3399.
>
> To: Simon Glass <sjg at chromium.org>
> To: Philipp Tomsich <philipp.tomsich at vrull.eu>
> To: Kever Yang <kever.yang at rock-chips.com>
> Cc: Hugh Cole-Baker <sigmaris at gmail.com>
> Cc: Walter Lozano <walter.lozano at collabora.com>
> Cc: u-boot at lists.denx.de
> ---
>   arch/arm/mach-rockchip/Kconfig | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
> index 69d51ff378..2fcc23f9fa 100644
> --- a/arch/arm/mach-rockchip/Kconfig
> +++ b/arch/arm/mach-rockchip/Kconfig
> @@ -249,7 +249,6 @@ config ROCKCHIP_RK3399
>   	imply PRE_CONSOLE_BUFFER
>   	imply ROCKCHIP_COMMON_BOARD
>   	imply ROCKCHIP_SDRAM_COMMON
> -	imply SPL_ATF_NO_PLATFORM_PARAM if SPL_ATF
>   	imply SPL_ROCKCHIP_COMMON_BOARD
>   	imply TPL_SERIAL
>   	imply TPL_LIBCOMMON_SUPPORT
>
> ---
> base-commit: 0cbeed4f6648e0e4966475e3544280a69ecb59d3
> change-id: 20221114-rk3399-tf-a-plat-param-3ab055f40b9e
>
> Best regards,


More information about the U-Boot mailing list