Skip to content

Commit

Permalink
JadePkg: Enable NVParamRuntimeDxe to access NVPARAM at runtime
Browse files Browse the repository at this point in the history
NVParamRuntimeDxe allows to read/write NVPARAM at runtime via UEFI
variables.

To read a NVPARAM:
    + Write offset to UEFI variable name "NVParamOffset"
    + Read back UEFI variable name "NVParamValue"

To write a NVPARAM:
    + Write offset to UEFI variable name "NVParamOffset"
    + Write 4 bytes value to UEFI variable name "NVParamValue"

Signed-off-by: Nhi Pham <[email protected]>
  • Loading branch information
Tam Chi Nguyen authored and nhivp committed Nov 13, 2024
1 parent f02d436 commit 6bf2763
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Platform/Ampere/JadePkg/Jade.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@
#
Silicon/Ampere/AmpereAltraPkg/Drivers/SystemFirmwareUpdateDxe/SystemFirmwareUpdateDxe.inf

#
# In-band NVPARAM Access
#
Silicon/Ampere/AmpereAltraPkg/Drivers/NVParamRuntimeDxe/NVParamRuntimeDxe.inf

#
# Redfish
#
Expand Down
5 changes: 5 additions & 0 deletions Platform/Ampere/JadePkg/Jade.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,11 @@ APRIORI DXE {
#
INF Silicon/Ampere/AmpereAltraPkg/Drivers/SystemFirmwareUpdateDxe/SystemFirmwareUpdateDxe.inf

#
# In-band NVPARAM Access
#
INF Silicon/Ampere/AmpereAltraPkg/Drivers/NVParamRuntimeDxe/NVParamRuntimeDxe.inf

#
# Redfish
#
Expand Down
5 changes: 5 additions & 0 deletions Platform/Ampere/JadePkg/JadeLinuxBoot.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,8 @@
# SystemFirmwareUpdateDxe
#
Silicon/Ampere/AmpereAltraPkg/Drivers/SystemFirmwareUpdateDxe/SystemFirmwareUpdateDxe.inf

#
# In-band NVPARAM Access
#
Silicon/Ampere/AmpereAltraPkg/Drivers/NVParamRuntimeDxe/NVParamRuntimeDxe.inf
5 changes: 5 additions & 0 deletions Platform/Ampere/JadePkg/JadeLinuxBoot.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ APRIORI DXE {
#
INF Silicon/Ampere/AmpereAltraPkg/Drivers/SystemFirmwareUpdateDxe/SystemFirmwareUpdateDxe.inf

#
# In-band NVPARAM Access
#
INF Silicon/Ampere/AmpereAltraPkg/Drivers/NVParamRuntimeDxe/NVParamRuntimeDxe.inf

#
# LinuxBoot
!ifdef $(LINUXBOOT_FILE)
Expand Down

0 comments on commit 6bf2763

Please sign in to comment.