U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Anshul Dalal <anshuld@ti.com>
To: Anshul Dalal <anshuld@ti.com>, <u-boot@lists.denx.de>
Cc: <vigneshr@ti.com>, <trini@konsulko.com>, <afd@ti.com>,
	<m-chawdhry@ti.com>, <n-francis@ti.com>, <b-liu@ti.com>
Subject: Re: [PATCH v2 0/8] Add falcon support for am62a, 62p and 62x
Date: Fri, 4 Apr 2025 03:38:49 +0530	[thread overview]
Message-ID: <D8XCHM93ECUM.411726WV47NU@ti.com> (raw)
In-Reply-To: <20250311095758.3383047-1-anshuld@ti.com>

On Tue Mar 11, 2025 at 3:27 PM IST, Anshul Dalal wrote:
> This patch set adds support for falcon boot on AM62a, 62p and 62x by
> bypassing A53 SPL and U-boot.
>
> Existing Boot flow:
> R5 SPL -> ATF -> A53 SPL -> U-Boot -> Linux Kernel
>
> Updated flow:
> R5 SPL -> ATF -> Linux Kernel
>
> U-boot's falcon flow expects the jump from SPL to kernel to happen on
> the same core which is not directly applicable for our heterogeneous
> platforms since ATF, OPTEE and other non SPL binaries from tispl.bin
> should be loaded before the kernel by the R5 SPL.
>
> So we have to use a non std flow to bypass A53 SPL and U-Boot, we first
> load the newly added tispl_falcon.bin instead of tispl.bin which lacks
> u-boot-spl.bin (A53's SPL) and the corresponding fdt. This sets up dm,
> tifs, optee and atf. Once loaded, we load the kernel and the dtb (with
> fixups) at ATF's PRELOADED_BL33_BASE and K3_HW_CONFIG_BASE.
>
> NOTE:
> Since we're now using the SPL to load the kernel and kernel expects a
> 2MiB aligned load address, the existing PRELOADED_BL33_BASE has to be
> changed for ATF to 0x80200000.
>
> This patch depends on:
>
>  * [PATCH v3] spl: return header size to spl_load in os boot [1]
>  * [PATCH v2] config: falcon: move CFG_SYS_SPI_* to Kconfig [2]
>  * [PATCH v1] spl: remove usage of CMD_(BOOTI|BOOTZ) from image parsing [3]
>
> [1]: https://lore.kernel.org/u-boot/20250311093546.3371193-1-anshuld@ti.com/
> [2]: https://lore.kernel.org/u-boot/20250311044414.3155688-1-anshuld@ti.com/
> [3]: https://lore.kernel.org/u-boot/20250311093709.3372104-1-anshuld@ti.com/
>
> Signed-off-by: Anshul Dalal <anshuld@ti.com>
> ---
> Changes in v2:
>  * Move to CONFIG_SYS_SPI_* as per [2]
>  * Remove the need for CMD_BOOTI as per [3]
> v1: https://lore.kernel.org/u-boot/20250307075541.2571104-1-anshuld@ti.com/
> ---
> Anshul Dalal (8):
>   spl: Kconfig: allow K3 devices to use falcon mode
>   mach-k3: fix reading size and addr from fdt on R5
>   arm: dts: am62a: allow booting from eMMC
>   arch: arm: k3-binman: add fit for falcon boot
>   mach-k3: add eMMC FS boot support for am62[ap]
>   mach-k3: sysfw-loader: update img_hdr for falcon
>   config: add falcon boot config fragment for am62x
>   mach-k3: common: add falcon support for 62[axp]
>
>  arch/arm/dts/k3-am625-sk-binman.dtsi  |  64 ++++++++++++++++
>  arch/arm/dts/k3-am62a-sk-binman.dtsi  |  64 ++++++++++++++++
>  arch/arm/dts/k3-am62a7-sk-u-boot.dtsi |   4 +
>  arch/arm/dts/k3-am62p-sk-binman.dtsi  |  51 +++++++++++++
>  arch/arm/dts/k3-binman.dtsi           |  53 +++++++++++++
>  arch/arm/mach-k3/am62ax/am62a7_init.c |   4 +
>  arch/arm/mach-k3/am62px/am62p5_init.c |   4 +
>  arch/arm/mach-k3/common.c             | 105 ++++++++++++++++++++++++++
>  arch/arm/mach-k3/common_fdt.c         |   4 +-
>  arch/arm/mach-k3/r5/sysfw-loader.c    |   6 +-
>  common/spl/Kconfig                    |   3 +-
>  configs/am62x_r5_falcon.config        |  36 +++++++++
>  12 files changed, 395 insertions(+), 3 deletions(-)
>  create mode 100644 configs/am62x_r5_falcon.config

Superseded by v3:
https://lore.kernel.org/u-boot/20250403215910.1292922-1-anshuld@ti.com/

Anshul

      parent reply	other threads:[~2025-04-03 22:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-11  9:57 [PATCH v2 0/8] Add falcon support for am62a, 62p and 62x Anshul Dalal
2025-03-11  9:57 ` [PATCH v2 1/8] spl: Kconfig: allow K3 devices to use falcon mode Anshul Dalal
2025-03-11  9:57 ` [PATCH v2 2/8] mach-k3: fix reading size and addr from fdt on R5 Anshul Dalal
2025-03-11  9:57 ` [PATCH v2 3/8] arm: dts: am62a: allow booting from eMMC Anshul Dalal
2025-03-11  9:57 ` [PATCH v2 4/8] arch: arm: k3-binman: add fit for falcon boot Anshul Dalal
2025-03-11  9:57 ` [PATCH v2 5/8] mach-k3: add eMMC FS boot support for am62[ap] Anshul Dalal
2025-03-11  9:57 ` [PATCH v2 6/8] mach-k3: sysfw-loader: update img_hdr for falcon Anshul Dalal
2025-03-11  9:57 ` [PATCH v2 7/8] config: add falcon boot config fragment for am62x Anshul Dalal
2025-03-11  9:57 ` [PATCH v2 8/8] mach-k3: common: add falcon support for 62[axp] Anshul Dalal
2025-04-03 22:08 ` Anshul Dalal [this message]

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=D8XCHM93ECUM.411726WV47NU@ti.com \
    --to=anshuld@ti.com \
    --cc=afd@ti.com \
    --cc=b-liu@ti.com \
    --cc=m-chawdhry@ti.com \
    --cc=n-francis@ti.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox