- Dec 11, 2018
-
-
Ard Biesheuvel authored
Instead of incorporating the prebuilt device tree binary as a FREEFORM FFS file into the build, define a module that contains the source so that the device tree compiler is invoked at build time. The original .dts file is moved into the new module, and cleaned up a little so that explicit phandle properties are dropped, and unused clocks and other redudant pieces are removed as well. The existing prebuilt binary is deleted. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Enable the various bits and pieces that implement IPv6 networking and HTTP/HTTPS boot from UEFI. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Replace the default resolution of the DevicePathLib library with the version that invokes the DevicePathDxe protocol driver, which was created to avoid having to carry a copy of the entire library in each module. Note that this driver itself incorporates on the NULL PcdLib instance, to avoid creating a circular dependency on the PCD DXE driver. The driver itself nor the DXE core can depend on the protocol, so they keep using the library directly. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Instead of relying on the compiler command line to pass the value of NUM_CORES as a preprocessor define, use the value of the PcdCoreCount PCD that we already set in the platform .DSC. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
The define ARM_CPU_AARCH64 is only tested once, in the SMBIOS driver, to decide whether to emit 'v8' or 'v7' as processor architecture. However, this platform has no 32-bit addressable DRAM, and so it cannot be built or executed in 32-bit mode anyway, making the test rather pointless. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
The PCDs containing the default MAC addresses are of type UINT64, and so the byte order needs to be inverted. As they are currently, both default MAC addresses are invalid since they have the multicast bit set. For readability, let's switch to a VOID* type PCD while at it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Marcin Wojtas authored
Recent changes in EDK2 resulted in compilation break of all Marvell platforms, because the applications include deprecated ShellBase.h header. Fix that. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Marcin Wojtas <mw@semihalf.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
The MADT generation code is rather unpolished and overcomplicated, and rewrites most of the table with information that is known statically at build time, with the exception of which CPUs are actually online. So remove all the runtime generation code, and replace it with a simple loop that sets the 'enabled' flag on each CPU that is reported as present by the secure firmware. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
ACPI table support on Seattle is split into two parts for no good reason: AcpiPlatformDxe and AmdStyxAcpiLib. Let's merge them together, and clean up the code that iterates over the tables and installs them. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Set the GOP resolution to 0x0 so that the resolution will be chosen by the driver, usually based on the capabilities of the connected display. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Enable the 'acpiview' UEFI shell command so we can inspect the ACPI tables at boot time. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Instead of emitting the DSDT by incorporating the intermediate output of [some version of] the iasl compiler, move the DSDT source file to the ACPI platform driver, which will install it directly. This permits us to drop a lot of cruft related to handling of this intermediate output. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Move the XGBE out of the DSDT, and along with it the logic that patches the correct MAC address into the device nodes. However, this time we patch the SSDT binary directly rather than relying on intermediate output of an outdated version of the iasl compiler. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Instead of poking DSDT _STA method bytecode to make it return something else depending on whether we are running on B1 silicon, move the B1 only peripherals to a separate SSDT and only install it when running on compatible hardware. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Instead of adding yet another redefinition in the next patch, move the silicon revision testing macros into a shared header file. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
- Dec 07, 2018
-
-
Vijayenthiran Subramaniam authored
Add HDLCD platform library for SGI platform that implements platform callbacks for the Arm HDLCD driver. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com> Reviewed-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org>
-
- Dec 06, 2018
-
-
Chandni Cherukuri authored
The hardware configuration in HW_CONFIG dts is not being passed onto the operating system but used and terminated at edk2 boot stage (BL33). So, as per the recommendations of the trusted-firmware design, the hardware description specified in NT_FW_CONFIG dts should be used instead of HW_CONFIG dts. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Reviewed-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org>
-
Chandni Cherukuri authored
On SGI platform, the value of configuration ID can be zero. So avoid returning an error from the function that creates the system ID HOB in case the value of the configuration ID is zero. While at it, improve some of the error messages as well. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Reviewed-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org>
-
- Nov 30, 2018
-
-
Ard Biesheuvel authored
gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize will be removed, so drop any overrides from the platforms in edk2-platforms. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
- Nov 29, 2018
-
-
Chandni Cherukuri authored
Add the initial support for ARM's System Guidance for Infrastructure SGI-Clark.Helios platform. The ACPI tables for this platform are installed. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Chandni Cherukuri authored
Add ACPI tables specific for SGI-Clark.Helios platform and let this platform reuse the rest of the common SGI platform ACPI tables. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Chandni Cherukuri authored
Add the initial support for ARM's System Guidance for Infrastructure SGI-Clark.Ares platform. The ACPI tables for this platform are installed. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Chandni Cherukuri authored
Add ACPI tables specific for SGI-Clark.Ares platform and let this platform reuse the rest of the common SGI platform ACPI tables. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Chandni Cherukuri authored
ACPI tables Dbg2.aslc, Fadt.aslc, Gtdt.aslc, Iort.aslc, Mcfg.aslc, Spcr.aslc and Ssdt.asl are common for SGI platforms. To reduce duplication of ACPI tables when new platforms are added these tables are moved to the AcpiTables folder. Only platform specific tables Dsdt.asl and Madt.aslc remain in the platform specific folder. Also the AcpiTables.inf file is renamed as Sgi575AcpiTables.inf and moved to AcpiTables folder. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Chandni Cherukuri authored
The 'system-id' node of HW_CONFIG device tree has been updated to have a new property 'config-id' to hold the platform configuration value. To adapt to this change, SGI_PLATFORM_DESCRIPTOR gets a new member named 'ConfigId' and the function GetSgiPlatformId has been renamed to GetSgiSystemId which takes the SGI_PLATFORM_DESCRIPTOR HoB as the function parameter. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Chandni Cherukuri <chandni.cherukuri@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
- Nov 26, 2018
-
-
Ard Biesheuvel authored
Give the SynQuacer NOR flash driver the same treatment as we gave the one in ArmPlatformPkg: identify NOR flash banks by a single GUID identifying the driver, and use indexes to identify each device instance owned by the driver. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Remove the GUID definitions from the NOR flash bank structure: the driver no longer uses them. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by:
Thomas Abraham <thomas.abraham@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
The ArmPlatformPkg NOR flash driver has been updated to use device paths consisting of a fixed GUID and a numeric index rather than a separate GUID for each flash bank on a given system. This means all explicit device path references to NOR flash banks have to be brought up to date as well. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org> Tested-by:
Thomas Abraham <thomas.abraham@arm.com>
-
Ard Biesheuvel authored
RdkBootManagerLib/RdkBootManagerLib.h includes BdsLib.h from ArmPkg but does not actually depend on it. So drop the #include. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
DevicePath node types may have any size, and so it is up to the code that manipulates them to ensure that dereferencing them only occurs when the pointer is aligned explicitly. Since BdsConnectAndUpdateDevicePath() has only two callers, one of which itself, we can simply duplicate the device path (similar to how DxeCore's CoreConnectController () does it), and free the pool allocation again on the way out. (Note that the allocation only occurs when the non-recursive path is taken and the function returns EFI_SUCCESS) Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by:
Laszlo Ersek <lersek@redhat.com> Tested-by:
Thomas Abraham <thomas.abraham@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
Clean up BdsLib (which is deprecated and should not be used for future development) by removing all the pieces that are not being used at the moment. After this patch, only BdsLoadImage() remains, and the pieces it relies upon. This function is used by FdtPlatformDxe to load device tree binaries from device paths. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by:
Laszlo Ersek <lersek@redhat.com> Tested-by:
Thomas Abraham <thomas.abraham@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ard Biesheuvel authored
The BdsLib library has been moved into Platform/ARM a while ago, but the BdsLib.h header was left behind, and so all users in Platform/ARM are still relying on it to be available in ArmPkg. So let's add a copy to Platform/ARM and wire it up, so we can drop it from ArmPkg going forward. Note that the BdsLib implementation included ArmLib.h from ArmPkg without using anything it provides, so drop that false dependency as well. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by:
Laszlo Ersek <lersek@redhat.com> Tested-by:
Thomas Abraham <thomas.abraham@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
- Nov 23, 2018
-
-
Vijayenthiran Subramaniam authored
Commit dc37ca75 ("Edk2Platforms: Replace MdeModulePkg PXE/iSCSI/TCP with NetworkPkg drivers") switched to using iSCSI driver from the NetworkPkg package. This driver requires the platform to support a maximum variable size of atleast 4KB. So increase the maximum supported variable size to 8KB on the Juno platform. Without this, the iSCSI driver fails to load. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com> Reviewed-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by:
Thomas Abraham <thomas.abraham@arm.com>
-
- Nov 20, 2018
-
-
Vijayenthiran Subramaniam authored
Commit dc37ca75 ("Edk2Platforms: Replace MdeModulePkg PXE/iSCSI/TCP with NetworkPkg drivers") switched to using iSCSI driver from the NetworkPkg package. This driver requires the platform to support a maximum variable size of atleast 4KB. So increase the maximum supported variable size to 8KB on the SGI platforms. Without this, the iSCSI driver fails to load. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Leif Lindholm <leif.lindholm@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com> Reviewed-by:
Thomas Abraham <thomas.abraham@arm.com> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ming Huang authored
Linux kernel will recognize NUMA node by processor order, and the Node and proximity domain (PXM) will be not identical between BIOS and OS kernel after changing to TA(Totem A) boot, so adjust the NUMA node number and proximity domain (PXM) to match. Also, this changes the address of GICD, so update it in MADT. Fix SBSA test case 21: 21 : Check GIC version GIC version is 0 Failed on PE - 0 for Level= 3 : Result: --FAIL-- 2 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ming Huang <ming.huang@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Ming Huang authored
The PcdGicInterruptInterfaceBase(0xFE000000) is wrong, it just copy from D05/D03. Maybe somewhere will need the right value of Pcd. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Ming Huang <ming.huang@linaro.org> Reviewed-by:
Leif Lindholm <leif.lindholm@linaro.org>
-
Tomasz Michalec authored
XenonDxe was copy of SdMmcPciHcDxe from edk2/MdeModulePkg. Now it implements SdMmcOverride protocol which allows to add quirks to the generic SdMmcPciHcDxe. Platforms that were using XenonDxe/SdMmcPciHcDxe have fixed *.fdf and *.dsc.inc files to use new implementation of XenonDxe. In the new version of the driver apart from using SdMmcOverride protocol, this patch utilizes newly added controllers' description in MvBoardDesc protocol, as well as improved PHY configuration sequence. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Marcin Wojtas <mw@semihalf.com> Reviewed-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org>
-
Marcin Wojtas authored
This patch is a preparation step for introducing new version of the XenonDxe driver, which removes copied files from the MdeModulePkg driver. In order not to break the compilation, disable building XenonDxe for the one commit. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Marcin Wojtas <mw@semihalf.com> Reviewed-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org>
-
Tomasz Michalec authored
Extend MvBoardDescSdMmcGet function to fill MV_BOARD_SDMMC_DESC with Xenon specific info obtained from ArmadaBoardDescLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Marcin Wojtas <mw@semihalf.com> Reviewed-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org>
-
Tomasz Michalec authored
This patch implements ArmadaBoarDescLib library for Armada8040 Development Board and add to it ArmadaBoardDescSdMmcGet function with description of connected Xenon host controllers. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by:
Marcin Wojtas <mw@semihalf.com> Reviewed-by:
Ard Biesheuvel <ard.biesheuvel@linaro.org>
-