U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add eFuse access for ZynqMP
@ 2024-05-14 14:04 lukas.funke-oss
  2024-05-14 14:04 ` [PATCH 1/3] firmware: zynqmp: Add support to access efuses lukas.funke-oss
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: lukas.funke-oss @ 2024-05-14 14:04 UTC (permalink / raw)
  To: u-boot
  Cc: Michal Simek, Lukas Funke, Algapally Santosh Sagar,
	Ashok Reddy Soma, Caleb Connolly, Christian Taedcke,
	Heinrich Schuchardt, Ilias Apalodimas, Jonas Karlman, Kever Yang,
	Marek Behún, Neil Armstrong, Peng Fan, Qu Wenruo,
	Simon Glass, Stefan Herbrechtsmeier, Stefan Roese, Tanmay Shah,
	Tom Rini, Venkatesh Yadav Abbarapu, Wan Yee Lau

From: Lukas Funke <lukas.funke@weidmueller.com>


This series adds a driver to read and write ZynqMP eFuses [1]. The
driver can be accessed by the 'efuse_read' and 'efuse_write' subcommands
of the 'zynqmp' command.

Example:

=> zynqmp efuse_read 0xc 0xc
00000000: 85 66 b1 32 43 f2 4a 02 00 00 00 40              .f.<D.:....@

Note: Accessing eFuses requires eFuse access to be enabled in the
underlying PMU firmware.

Use cases are:
 - Reading/writing user specific eFuses to enable device specific
   implementations
 - Revoking SPK IDs
 - Reading SoC version/DNA

[1] https://docs.amd.com/r/en-US/ug1085-zynq-ultrascale-trm/eFUSE



Lukas Funke (3):
  firmware: zynqmp: Add support to access efuses
  amd64: zynqmp: Add command to program efuses
  drivers: misc: Add driver to access ZynqMP efuses

 board/xilinx/zynqmp/cmds.c         | 101 ++++++++++++++
 drivers/firmware/firmware-zynqmp.c |  31 +++++
 drivers/misc/Kconfig               |   8 ++
 drivers/misc/Makefile              |   1 +
 drivers/misc/zynqmp_efuse.c        | 213 +++++++++++++++++++++++++++++
 include/zynqmp_firmware.h          |   2 +
 6 files changed, 356 insertions(+)
 create mode 100644 drivers/misc/zynqmp_efuse.c

-- 
2.30.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-05-15  9:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-14 14:04 [PATCH 0/3] Add eFuse access for ZynqMP lukas.funke-oss
2024-05-14 14:04 ` [PATCH 1/3] firmware: zynqmp: Add support to access efuses lukas.funke-oss
2024-05-15  6:04   ` Stefan Roese
2024-05-14 14:04 ` [PATCH 2/3] amd64: zynqmp: Add command to program efuses lukas.funke-oss
2024-05-14 14:04 ` [PATCH 3/3] drivers: misc: Add driver to access ZynqMP efuses lukas.funke-oss
2024-05-15  6:12   ` Stefan Roese
2024-05-15  6:33     ` Lukas Funke
2024-05-15  9:19       ` Stefan Roese
2024-05-15  7:08 ` [PATCH 0/3] Add eFuse access for ZynqMP Marek Behún

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox