All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@amd.com>
To: <u-boot@lists.denx.de>, <git@amd.com>
Cc: Francois Berder <fberder@outlook.fr>,
	Naman Trivedi <naman.trivedimanojbhai@amd.com>,
	Neal Frager <neal.frager@amd.com>,
	Padmarao Begari <padmarao.begari@amd.com>,
	Pranav Sanwal <pranav.sanwal@amd.com>,
	Pranav Tilak <pranav.vinaytilak@amd.com>,
	"Sean Anderson" <sean.anderson@linux.dev>,
	Senthil Nathan Thangaraj <senthilnathan.thangaraj@amd.com>,
	Suraj Kakade <suraj.hanumantkakade@amd.com>,
	Tom Rini <trini@konsulko.com>,
	"Venkatesh Yadav Abbarapu" <venkatesh.abbarapu@amd.com>
Subject: [PATCH 00/18] arm64: xilinx: Decouple firmware interface
Date: Tue, 23 Jun 2026 14:53:25 +0200	[thread overview]
Message-ID: <cover.1782219202.git.michal.simek@amd.com> (raw)

Hi,

firmware calls are spread across board functions and even drivers.
It shouldn't be like that and it is time to clean it up. Pretty much board
or drivers shouldn't really have zynqmp_firmware.h included. Generic
functions should be called which have MMIO version or firmware version when
firmware is enabled. This is the first set of patches to achieve this goal.

Thanks,
Michal


Michal Simek (18):
  arm: xilinx: Guard mach sys_proto.h against multiple inclusion
  arm64: versal2: Decouple multiboot register access from firmware
  arm64: versal2: Move bootmode decoding out of board code
  arm64: versal: Decouple multiboot register access from firmware
  arm64: versal: Move bootmode decoding out of board code
  arm64: versal: Move board_early_init_r clock setup to mach code
  arm64: versal2: Move board_early_init_r clock setup to mach code
  arm64: versal-net: Move board_early_init_r clock setup to mach code
  arm64: zynqmp: Move board_early_init_r clock setup to mach code
  arm64: versal2: Move SoC detection out of board code
  arm64: versal-net: Move SoC detection out of board code
  arm64: versal-net: Move bootmode decoding out of board code
  arm64: zynqmp: Decouple MMIO accessors from firmware
  arm64: versal-net: Deduplicate SPI bootmode handling
  arm64: versal-net: Simplify spi_get_bootseq() bootmode switch
  arm64: versal-net: Do not print bootmode from spi_get_env_dev()
  arm64: versal-net: Look up eMMC device in boot_targets_setup()
  arm64: versal-net: Add mmc_get_env_dev() and deduplicate MMC handling

 arch/arm/mach-versal-net/cpu.c                | 149 +++++++++
 .../mach-versal-net/include/mach/sys_proto.h  |   6 +
 arch/arm/mach-versal/cpu.c                    |  68 ++++
 arch/arm/mach-versal/include/mach/sys_proto.h |  16 +
 arch/arm/mach-versal2/cpu.c                   | 143 +++++++++
 .../arm/mach-versal2/include/mach/sys_proto.h |  14 +
 arch/arm/mach-zynqmp/cpu.c                    |  69 ++--
 arch/arm/mach-zynqmp/include/mach/sys_proto.h |   5 +
 board/amd/versal2/board.c                     | 133 +-------
 board/xilinx/versal-net/board.c               | 295 +++++-------------
 board/xilinx/versal/board.c                   |  66 +---
 board/xilinx/zynqmp/zynqmp.c                  |  18 +-
 drivers/firmware/firmware-zynqmp.c            |  89 ++++++
 13 files changed, 606 insertions(+), 465 deletions(-)

---
base-commit: e01bb5b8ad09464b8cbf9c4186683e998c2d40fe

-- 
2.43.0


             reply	other threads:[~2026-06-23 12:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-23 12:53 Michal Simek [this message]
2026-06-23 12:53 ` [PATCH 01/18] arm: xilinx: Guard mach sys_proto.h against multiple inclusion Michal Simek
2026-06-23 12:53 ` [PATCH 02/18] arm64: versal2: Decouple multiboot register access from firmware Michal Simek
2026-06-23 12:53 ` [PATCH 03/18] arm64: versal2: Move bootmode decoding out of board code Michal Simek
2026-06-23 12:53 ` [PATCH 04/18] arm64: versal: Decouple multiboot register access from firmware Michal Simek
2026-06-23 12:53 ` [PATCH 05/18] arm64: versal: Move bootmode decoding out of board code Michal Simek
2026-06-23 12:53 ` [PATCH 06/18] arm64: versal: Move board_early_init_r clock setup to mach code Michal Simek
2026-06-23 12:53 ` [PATCH 07/18] arm64: versal2: " Michal Simek
2026-06-23 12:53 ` [PATCH 08/18] arm64: versal-net: " Michal Simek
2026-06-23 12:53 ` [PATCH 09/18] arm64: zynqmp: " Michal Simek
2026-06-23 12:53 ` [PATCH 10/18] arm64: versal2: Move SoC detection out of board code Michal Simek
2026-06-23 12:53 ` [PATCH 11/18] arm64: versal-net: " Michal Simek
2026-06-23 12:53 ` [PATCH 12/18] arm64: versal-net: Move bootmode decoding " Michal Simek
2026-06-23 12:53 ` [PATCH 13/18] arm64: zynqmp: Decouple MMIO accessors from firmware Michal Simek
2026-06-23 12:53 ` [PATCH 14/18] arm64: versal-net: Deduplicate SPI bootmode handling Michal Simek
2026-06-23 12:53 ` [PATCH 15/18] arm64: versal-net: Simplify spi_get_bootseq() bootmode switch Michal Simek
2026-06-23 12:53 ` [PATCH 16/18] arm64: versal-net: Do not print bootmode from spi_get_env_dev() Michal Simek
2026-06-23 12:53 ` [PATCH 17/18] arm64: versal-net: Look up eMMC device in boot_targets_setup() Michal Simek
2026-06-23 12:53 ` [PATCH 18/18] arm64: versal-net: Add mmc_get_env_dev() and deduplicate MMC handling Michal Simek

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=cover.1782219202.git.michal.simek@amd.com \
    --to=michal.simek@amd.com \
    --cc=fberder@outlook.fr \
    --cc=git@amd.com \
    --cc=naman.trivedimanojbhai@amd.com \
    --cc=neal.frager@amd.com \
    --cc=padmarao.begari@amd.com \
    --cc=pranav.sanwal@amd.com \
    --cc=pranav.vinaytilak@amd.com \
    --cc=sean.anderson@linux.dev \
    --cc=senthilnathan.thangaraj@amd.com \
    --cc=suraj.hanumantkakade@amd.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=venkatesh.abbarapu@amd.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 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.