From: "Ard Biesheuvel" <ard.biesheuvel@linaro.org>
To: devel@edk2.groups.io
Cc: leif.lindholm@linaro.org, graeme.gregory@linaro.org,
masahisa.kojima@linaro.org,
Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH edk2-platforms 1/3] Silicon/SynQuacer: describe 96boards LS connector GPIOs via ACPI
Date: Thu, 25 Apr 2019 14:32:52 +0200 [thread overview]
Message-ID: <20190425123254.16396-2-ard.biesheuvel@linaro.org> (raw)
In-Reply-To: <20190425123254.16396-1-ard.biesheuvel@linaro.org>
Describe the 96boards LS connector GPIO resources via a new LS96
device object.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
Silicon/Socionext/SynQuacer/AcpiTables/AcpiTables.inf | 14 ++++++++++++++
Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl | 20 ++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/Silicon/Socionext/SynQuacer/AcpiTables/AcpiTables.inf b/Silicon/Socionext/SynQuacer/AcpiTables/AcpiTables.inf
index 6fbdf4d67a88..0fef8b9ca05b 100644
--- a/Silicon/Socionext/SynQuacer/AcpiTables/AcpiTables.inf
+++ b/Silicon/Socionext/SynQuacer/AcpiTables/AcpiTables.inf
@@ -40,6 +40,7 @@ [Packages]
EmbeddedPkg/EmbeddedPkg.dec
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
+ Platform/96Boards/96Boards.dec
Silicon/Socionext/SynQuacer/Drivers/Net/NetsecDxe/NetsecDxe.dec
Silicon/Socionext/SynQuacer/SynQuacer.dec
@@ -63,3 +64,16 @@ [FixedPcd]
gSynQuacerTokenSpaceGuid.PcdNetsecEepromBase
gSynQuacerTokenSpaceGuid.PcdNetsecPhyAddress
gSynQuacerTokenSpaceGuid.PcdPcie0PresenceDetectGpioPin
+
+ g96BoardsTokenSpaceGuid.PcdGpioPinA
+ g96BoardsTokenSpaceGuid.PcdGpioPinB
+ g96BoardsTokenSpaceGuid.PcdGpioPinC
+ g96BoardsTokenSpaceGuid.PcdGpioPinD
+ g96BoardsTokenSpaceGuid.PcdGpioPinE
+ g96BoardsTokenSpaceGuid.PcdGpioPinF
+ g96BoardsTokenSpaceGuid.PcdGpioPinG
+ g96BoardsTokenSpaceGuid.PcdGpioPinH
+ g96BoardsTokenSpaceGuid.PcdGpioPinI
+ g96BoardsTokenSpaceGuid.PcdGpioPinJ
+ g96BoardsTokenSpaceGuid.PcdGpioPinK
+ g96BoardsTokenSpaceGuid.PcdGpioPinL
diff --git a/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl b/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl
index acb77739ded6..0702edc06f74 100644
--- a/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl
+++ b/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl
@@ -253,5 +253,25 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 1, "SNI", "SYNQUACR",
Return (0xF)
}
}
+
+ Device (LS96) {
+ Name (GPIO, ResourceTemplate () {
+ GpioIo (Exclusive, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPIO")
+ {
+ FixedPcdGet32 (PcdGpioPinA),
+ FixedPcdGet32 (PcdGpioPinB),
+ FixedPcdGet32 (PcdGpioPinC),
+ FixedPcdGet32 (PcdGpioPinD),
+ FixedPcdGet32 (PcdGpioPinE),
+ FixedPcdGet32 (PcdGpioPinF),
+ FixedPcdGet32 (PcdGpioPinG),
+ FixedPcdGet32 (PcdGpioPinH),
+ FixedPcdGet32 (PcdGpioPinI),
+ FixedPcdGet32 (PcdGpioPinJ),
+ FixedPcdGet32 (PcdGpioPinK),
+ FixedPcdGet32 (PcdGpioPinL),
+ }
+ })
+ }
} // Scope (_SB)
}
--
2.20.1
next prev parent reply other threads:[~2019-04-25 12:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-25 12:32 [PATCH edk2-platforms 0/3] enable Secure96 GPIO LEDs on ACPI systems Ard Biesheuvel
2019-04-25 12:32 ` Ard Biesheuvel [this message]
2019-04-25 12:32 ` [PATCH edk2-platforms 2/3] Platform/96Boards: add ACPI support to mezzanine/LS connector driver Ard Biesheuvel
2019-04-25 12:32 ` [PATCH edk2-platforms 3/3] Platform/Secure96Dxe: add ACPI description of the GPIO LEDs Ard Biesheuvel
2019-04-26 11:16 ` Leif Lindholm
2019-04-26 11:56 ` Ard Biesheuvel
2019-04-26 14:17 ` Leif Lindholm
2019-04-26 14:18 ` Ard Biesheuvel
2019-04-26 11:10 ` [PATCH edk2-platforms 0/3] enable Secure96 GPIO LEDs on ACPI systems Leif Lindholm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190425123254.16396-2-ard.biesheuvel@linaro.org \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox