[PATCH 0/3] firmware-zynqmp: add accessors for ggs/pggs

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Sep 13 06:24:53 PDT 2023

The ZynqMP features eight 32-bit global storage registers that are
available for general use. Four of them have their values preserved
after software reboots and four are cleared on software reboots.

In Linux they are accessed as:


Allow reading and writing these parameters from barebox board code
via exported functions and from barebox shell as well via device

  echo ${firmware:zynqmp-firmware.of.ggs0}

Because the name is a bit unwieldy, use the device alias support added
in this series to make the variables more compact:

  echo ${zynqmp_fw.ggs0}

Ahmad Fatoum (3):
  driver: add support for device aliases
  firmware-zynqmp: export functions for setting GGS/PGGS
  firmware-zynqmp: add device parameters for ggs/pggs

 arch/arm/mach-zynqmp/firmware-zynqmp.c | 133 +++++++++++++++++++++++++
 common/complete.c                      |  14 ++-
 drivers/base/driver.c                  |  46 +++++++++
 include/driver.h                       |   7 ++
 include/mach/zynqmp/firmware-zynqmp.h  |  33 +++++-
 5 files changed, 222 insertions(+), 11 deletions(-)


More information about the barebox mailing list