16 Commits

Author SHA1 Message Date
Filip Lewiński
1002a59639 FtdiUsbSerialDxe.c: don't append redundant FlowControl node
There's no need to append a TtyTerm() node after the Uart node - that is
what TerminalDxe does. Doing so results in a duplicate TtyTerm() node.

Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2025-04-15 17:02:18 +02:00
Filip Lewiński
226ab5b88c FtdiUsbSerialDxe: ignore SerialIO Reset() failure
Some FTDI devices don't need resetting to function properly. For the
currently tested device, resetting caused errors. After ignoring them,
the device worked properly.

Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2025-04-15 17:00:50 +02:00
Filip Lewiński
f25b7faabc FtdiUsbSerialDxe: First try RESET then PURGE
Some FTDI chips don't support RESET_PORT_PURGE_RX and require RESET_PORT_RESET
(0x0) instead.

Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>
2025-04-15 17:00:43 +02:00
Etienne Carriere
6d9768079c Drivers/OpTee: address cast build warning issue in 32b mode
Use (UINTN) cast to cast physical or virtual address values to the
pointer size before casting from/to a pointer value.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
2021-08-11 13:44:10 +02:00
Etienne Carriere
a4b55b7dd5 Drivers/OpTee: Add Aarch32 SVC IDs for 32bit Arm targets
Add SMCCC function IDs for RPMB read/write service on 32bit architectures.
Define generic SP_SVC_RPMB_READ/SP_SVC_RPMB_WRITE IDs for native target
architecture (32b or 64b).

Changes OpTeeRpmbFvb.c to use architecture agnostic macro
ARM_SVC_ID_FFA_MSG_SEND_DIRECT_REQ for 32b and 64b support.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
2021-08-11 13:44:10 +02:00
Dandan Bi
43224b3333 Drivers/OptionRomPkg: Consume MdeLibs.dsc.inc for RegisterFilterLib
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3246

MdeLibs.dsc.inc was added for some basic/default library
instances provided by MdePkg and RegisterFilterLibNull Library
was also added into it as the first version of MdeLibs.dsc.inc.

So update platform dsc to consume MdeLibs.dsc.inc for
RegisterFilterLibNull which will be consumed by IoLib and BaseLib.

Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2021-03-31 14:20:09 +08:00
Dandan Bi
0f835248d7 Drivers/DisplayLink: Consume MdeLibs.dsc.inc for RegisterFilterLib
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3246

MdeLibs.dsc.inc was added for some basic/default library
instances provided by MdePkg and RegisterFilterLibNull Library
was also added into it as the first version of MdeLibs.dsc.inc.

So update platform dsc to consume MdeLibs.dsc.inc for
RegisterFilterLibNull which will be consumed by IoLib and BaseLib.

Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Andy Hayes <andy.hayes@displaylink.com>
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2021-03-31 14:20:09 +08:00
Dandan Bi
ef18f0c711 Drivers/ASIX: Consume MdeLibs.dsc.inc for RegisterFilterLib
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3246

MdeLibs.dsc.inc was added for some basic/default library
instances provided by MdePkg and RegisterFilterLibNull Library
was also added into it as the first version of MdeLibs.dsc.inc.

So update platform dsc to consume MdeLibs.dsc.inc for
RegisterFilterLibNull which will be consumed by IoLib and BaseLib.

Cc: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
2021-03-31 14:20:08 +08:00
Ilias Apalodimas
daefcaae91 Drivers/OpTeeRpmb: Add an OP-TEE backed RPMB driver
A following patch is adding support for building StMM in order to run it
from OP-TEE.
OP-TEE in combination with a NS-world supplicant can use the RPMB
partition of an eMMC to store EFI variables. The supplicant
functionality is currently available in U-Boot only but can be ported
into EDK2. Assuming similar functionality is added in EDK2, this will
allow any hardware with an RPMB partition to store EFI variables
securely.

So let's add a driver that enables access of the RPMB partition through
OP-TEE. Since the upper layers expect a byte addressable interface,
the driver allocates memory and patches the PCDs, while syncing the
memory/hardware on read/write callbacks.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
2021-03-28 10:46:35 +01:00
Samer El-Haj-Mahmoud
d144cf7734 Drivers/OptionRomPkg: Remove old ASIX NIC drivers
Remove the old ASIX Ax88772 and Ax88772b USB networking drivers.
These are now replaced with the new version of the driver (Ax88772c)
under Drivers/ASIX/Bus/Usb/UsbNetworking/Ax88772c

Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2020-07-08 17:54:53 +03:00
Samer El-Haj-Mahmoud
8111053cd5 Drivers/ASIX: Add ASIX Ax88772c driver
This is the initial revision of ASIX USB networking UEFI driver
version 2.8.0 for Ax88772c / Ax88772b / Ax88772a
https://www.asix.com.tw/download.php?sub=driverdetail&PItemID=136

Original source code provided by ASIX is at:
https://github.com/samerhaj/uefi_drivers/blob/master/UsbNetworking/Asix/
zip/source/AX88772C_772B_772A_UEFI_v2.8.0_Source.zip

Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2020-07-08 17:53:54 +03:00
Samer El-Haj-Mahmoud
4c58113ae1 Drivers/ASIX: Add ASIX Ax88179 driver
This is the initial revision of ASIX USB networking UEFI driver
version 2.9.0 for Ax88179 and Ax88178a
https://www.asix.com.tw/products.php?op=pItemdetail&PItemID=131;71;112

Original source code provided by ASIX is at:
https://github.com/samerhaj/uefi_drivers/blob/master/UsbNetworking/Asix/
zip/source/AX88179_178a_UEFI_v2.9.0_Source.zip

Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2020-07-08 17:53:36 +03:00
Samer El-Haj-Mahmoud
ba26221f66 Drivers/ASIX: Create ASIX package
Create a new ASIX package for build verification of ASIX USB drivers.

Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2020-07-08 17:53:35 +03:00
Andy Hayes
958aaf6007 Drivers/DisplayLink/DisplayLinkPkg DisplayLinkGop
Corrected initialisation of one of data structures used to transmit USB
control messages. Mistake had no practical effects but fixing to be on safe
side.

Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Andy Hayes <andy.hayes@displaylink.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-09-17 16:25:50 +01:00
Andy Hayes
9df63499ea Drivers/DisplayLink: Add DisplayLinkPkg and GOP driver DisplayLinkGop
Add GOP driver for USB docking stations based on DisplayLink chips.

Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Andy Hayes <andy.hayes@displaylink.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2019-09-09 11:08:05 +01:00
Michael D Kinney
3a4a65a49a Drivers/OptionRomPkg: Import OptionRomPkg from edk2
https://bugzilla.tianocore.org/show_bug.cgi?id=1793

Import OptionRomPkg from edk2/master.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2019-05-13 15:13:47 -07:00