All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de
Subject: [PATCH 4/8] spl: atf: remove helper structure from common header
Date: Wed, 18 Nov 2020 15:25:30 +0100	[thread overview]
Message-ID: <7d10c407-a5a6-13fa-0cae-a371f99c1c47@xilinx.com> (raw)
In-Reply-To: <20201116214731.29128-5-michael@walle.cc>



On 16. 11. 20 22:47, Michael Walle wrote:
> bl2_to_bl31_params_mem is just an implementation detail of the SPL ATF
> support and is not needed anywhere else. Move it from the header to the
> actual module.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>
> ---
>  common/spl/spl_atf.c | 11 +++++++++++
>  include/atf_common.h | 14 --------------
>  2 files changed, 11 insertions(+), 14 deletions(-)
> 
> diff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c
> index 63af6a6207..51b45d5dc6 100644
> --- a/common/spl/spl_atf.c
> +++ b/common/spl/spl_atf.c
> @@ -18,6 +18,17 @@
>  #include <spl.h>
>  #include <asm/cache.h>
>  
> +/* Holds all the structures we need for bl31 parameter passing */
> +struct bl2_to_bl31_params_mem {
> +	struct bl31_params bl31_params;
> +	struct atf_image_info bl31_image_info;
> +	struct atf_image_info bl32_image_info;
> +	struct atf_image_info bl33_image_info;
> +	struct entry_point_info bl33_ep_info;
> +	struct entry_point_info bl32_ep_info;
> +	struct entry_point_info bl31_ep_info;
> +};
> +
>  struct bl31_params *bl2_plat_get_bl31_params_default(uintptr_t bl32_entry,
>  						     uintptr_t bl33_entry,
>  						     uintptr_t fdt_addr)
> diff --git a/include/atf_common.h b/include/atf_common.h
> index fd5454c55b..e173a10ca9 100644
> --- a/include/atf_common.h
> +++ b/include/atf_common.h
> @@ -162,20 +162,6 @@ struct bl31_params {
>  	struct atf_image_info *bl33_image_info;
>  };
>  
> -/*******************************************************************************
> - * This structure represents the superset of information that is passed to
> - * BL31, e.g. while passing control to it from BL2, bl31_params
> - * and other platform specific params
> - ******************************************************************************/
> -struct bl2_to_bl31_params_mem {
> -	struct bl31_params bl31_params;
> -	struct atf_image_info bl31_image_info;
> -	struct atf_image_info bl32_image_info;
> -	struct atf_image_info bl33_image_info;
> -	struct entry_point_info bl33_ep_info;
> -	struct entry_point_info bl32_ep_info;
> -	struct entry_point_info bl31_ep_info;
> -};
>  
>  #endif /*__ASSEMBLY__ */
>  
> 

Acked-by: Michal Simek <michal.simek@xilinx.com>

M

  reply	other threads:[~2020-11-18 14:25 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-16 21:47 [PATCH 0/8] spl: atf: add support for LOAD_IMAGE_V2 Michael Walle
2020-11-16 21:47 ` [PATCH 1/8] treewide: use CONFIG_IS_ENABLED() for ARMV8_SEC_FIRMWARE_SUPPORT Michael Walle
2020-11-18 14:21   ` Michal Simek
2020-11-16 21:47 ` [PATCH 2/8] spl: atf: move storage for bl31_params into function Michael Walle
2020-11-18 14:07   ` Michal Simek
2020-11-16 21:47 ` [PATCH 3/8] spl: atf: provide a bl2_plat_get_bl31_params_default() Michael Walle
2020-11-18 14:23   ` Michal Simek
2020-11-18 14:24     ` Michal Simek
2020-11-16 21:47 ` [PATCH 4/8] spl: atf: remove helper structure from common header Michael Walle
2020-11-18 14:25   ` Michal Simek [this message]
2020-11-16 21:47 ` [PATCH 5/8] spl: atf: add support for LOAD_IMAGE_V2 Michael Walle
2020-11-18 14:26   ` Michal Simek
2020-11-16 21:47 ` [PATCH 6/8] armv8: layerscape: don't initialize GIC in SPL Michael Walle
2020-11-16 21:47 ` [PATCH 7/8] board: sl28: add ATF support (bl31) Michael Walle
2020-11-18 14:06   ` Michal Simek
2020-11-18 14:10     ` Michael Walle
2020-11-18 14:15       ` Michal Simek
2020-11-18 14:20         ` Michael Walle
2020-11-18 16:11         ` Michael Walle
2020-11-16 21:47 ` [PATCH 8/8] board: sl28: add OP-TEE Trusted OS support (bl32) Michael Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7d10c407-a5a6-13fa-0cae-a371f99c1c47@xilinx.com \
    --to=michal.simek@xilinx.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.