Sunil V L
925c445fd3
OvmfPkg/RiscVVirt: Avoid printing hard coded timeout value
...
Print the timeout value set in the PCD variable instead of
hard coded 10 seconds.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Cc: Andrei Warkentin <andrei.warkentin@intel.com >
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com >
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com >
2023-07-21 05:56:55 +00:00
Tuan Phan
a9fc9bb466
OvmfPkg/RiscVVirt: VirtNorFlashPlatformLib: Fix wrong flash size
...
The size should be for single region, not the whole firmware FD.
Signed-off-by: Tuan Phan <tphan@ventanamicro.com >
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com >
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com >
2023-07-15 14:10:18 +00:00
Sunil V L
420cd54993
OvmfPkg/RiscVVirt: Add VirtNorFlashDeviceTreeLib library
...
This library is required to support separate code and
variable store images.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com >
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Cc: Andrei Warkentin <andrei.warkentin@intel.com >
Cc: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
2023-06-23 04:49:11 +00:00
Rebecca Cran
8ba392687b
OvmfPkg: Update code to be more C11 compliant by using __func__
...
__FUNCTION__ is a pre-standard extension that gcc and Visual C++ among
others support, while __func__ was standardized in C99.
Since it's more standard, replace __FUNCTION__ with __func__ throughout
OvmfPkg.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Ard Biesheuvel <ardb@kernel.org >
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com >
2023-04-10 14:19:57 +00:00
Sunil V L
6d5ae344cd
OvmfPkg/RiscVVirt: Add VirtNorFlashPlatformLib library
...
Qemu NOR flash driver needs this library. Add this
library for RISC-V leveraged from SbsaQemu.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com >
Acked-by: Abner Chang <abner.chang@amd.com >
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com >
Acked-by: Jiewen Yao <Jiewen.yao@intel.com >
Acked-by: Ard Biesheuvel <ardb@kernel.org >
2023-02-16 05:53:28 +00:00
Sunil V L
c126e3588d
OvmfPkg/RiscVVirt: Add ResetSystemLib library
...
RISC-V Qemu virt uses SBI calls to implement the reset.
Add the base class library.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com >
Acked-by: Abner Chang <abner.chang@amd.com >
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com >
Acked-by: Ard Biesheuvel <ardb@kernel.org >
Acked-by: Jiewen Yao <Jiewen.yao@intel.com >
2023-02-16 05:53:28 +00:00
Sunil V L
6720b8e46f
OvmfPkg/RiscVVirt: Add PrePiHobListPointerLib library
...
Add the PrePiHobListPointerLib required for RISC-V Qemu Virt machine
since it follows PEIless design.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com >
Acked-by: Abner Chang <abner.chang@amd.com >
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com >
Acked-by: Jiewen Yao <Jiewen.yao@intel.com >
Acked-by: Ard Biesheuvel <ardb@kernel.org >
2023-02-16 05:53:28 +00:00
Sunil V L
d78df93863
OvmfPkg/RiscVVirt: Add PlatformBootManagerLib library
...
RISC-V Qemu Virt platfform needs the PlatformBootManagerLib similar
to the one in ArmVirtPlatform. Add the library in OvmfPkg/RiscVVirt
leveraging the one from Arm.
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Jordan Justen <jordan.l.justen@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com >
Acked-by: Abner Chang <abner.chang@amd.com >
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com >
Acked-by: Ard Biesheuvel <ardb@kernel.org >
Acked-by: Jiewen Yao <Jiewen.yao@intel.com >
2023-02-16 05:53:28 +00:00