public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH edk2-platforms v2 0/2] enable Secure96 mezzanine on ACPI systems
@ 2019-05-02  9:58 Ard Biesheuvel
  2019-05-02  9:58 ` [PATCH edk2-platforms v2 1/2] Platform/96Boards: add ACPI support to mezzanine/LS connector driver Ard Biesheuvel
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ard Biesheuvel @ 2019-05-02  9:58 UTC (permalink / raw)
  To: devel; +Cc: leif.lindholm, graeme.gregory, Ard Biesheuvel

This series plumbs in the support for describing 96boards mezzanines
via ACPI, and uses it to add a description of the Secure96. Note that
the TPM is still missing at the moment, but the I2C crypto accelerators
and the GPIO LEDs are covered.

Changes since v1:
- Don't rely on a ACPI device in the host platform's namespace to describe
  the GPIO lines - this prevents the mezzanine from using GPIOs as interrupts,
  and is generally far too restrictive. Since we need a hack (see below) for
  I2C anyway, just use the same method for the GPIO controller.
- I2C resources are described with a reference to the I2C controller via a
  string argument, which cannot be parameterized using PCDs like we do with
  GPIO interrupt numbers. (This is due to the fact that string PCDs are not
  expanded to true string literals by EDK2's AutoGen.h CPP magic). So add the
  default names (e.g., \_SB.I2C0) to Secure96.h, and permit a platform to
  override them if necessary by setting a scoped build option with a -D
  argument.

Ard Biesheuvel (2):
  Platform/96Boards: add ACPI support to mezzanine/LS connector driver
  Platform/Secure96Dxe: add ACPI description of the LEDs and I2C
    peripherals

 Platform/96Boards/Include/Protocol/Mezzanine.h      |  21 ++++
 Platform/96Boards/LsConnectorDxe/LsConnectorDxe.c   |  35 ++++--
 Platform/96Boards/LsConnectorDxe/LsConnectorDxe.inf |   1 +
 Platform/96Boards/Secure96Dxe/Secure96.asl          | 116 ++++++++++++++++++++
 Platform/96Boards/Secure96Dxe/Secure96.h            |   8 ++
 Platform/96Boards/Secure96Dxe/Secure96Dxe.c         |  59 +++++++++-
 Platform/96Boards/Secure96Dxe/Secure96Dxe.inf       |   1 +
 7 files changed, 225 insertions(+), 16 deletions(-)
 create mode 100644 Platform/96Boards/Secure96Dxe/Secure96.asl

-- 
2.20.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-05-03 14:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-02  9:58 [PATCH edk2-platforms v2 0/2] enable Secure96 mezzanine on ACPI systems Ard Biesheuvel
2019-05-02  9:58 ` [PATCH edk2-platforms v2 1/2] Platform/96Boards: add ACPI support to mezzanine/LS connector driver Ard Biesheuvel
2019-05-02  9:58 ` [PATCH edk2-platforms v2 2/2] Platform/Secure96Dxe: add ACPI description of the LEDs and I2C peripherals Ard Biesheuvel
2019-05-02 15:40 ` [PATCH edk2-platforms v2 0/2] enable Secure96 mezzanine on ACPI systems Leif Lindholm
2019-05-03 14:06   ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox