From: "Mario Bălănică" <mariobalanica02@gmail.com>
To: devel@edk2.groups.io
Cc: ardb+tianocore@kernel.org, leif@nuviainc.com, pete@akeo.ie,
samer.el-haj-mahmoud@arm.com, jeremy.linton@arm.com,
sunny.wang@arm.com
Subject: [edk2-platforms][PATCH v1 2/2] Platform/RaspberryPi: Add analog audio device in ACPI
Date: Fri, 5 Nov 2021 22:34:36 +0200 [thread overview]
Message-ID: <20211105203436.997-2-mariobalanica02@gmail.com> (raw)
In-Reply-To: <20211105203436.997-1-mariobalanica02@gmail.com>
The Windows audio driver now binds to this device.
Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>
---
Platform/RaspberryPi/AcpiTables/GpuDevs.asl | 28 ++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/Platform/RaspberryPi/AcpiTables/GpuDevs.asl b/Platform/RaspberryPi/AcpiTables/GpuDevs.asl
index b499620e089a..734547e5a806 100644
--- a/Platform/RaspberryPi/AcpiTables/GpuDevs.asl
+++ b/Platform/RaspberryPi/AcpiTables/GpuDevs.asl
@@ -440,6 +440,34 @@ Device (PWM1)
}
#endif
+// Analog Audio (PWM-driven)
+Device (AAUD)
+{
+ Name (_HID, "RPI73EA")
+#if (RPI_MODEL == 3)
+ Name (_DEP, Package() { \_SB.GDV0.PWM0 })
+#elif (RPI_MODEL == 4)
+ Name (_DEP, Package() { \_SB.GDV0.PWM1 })
+#endif
+ Method (_STA)
+ {
+ Return (0xf)
+ }
+ Name (_DSD, Package () {
+ ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
+ Package () {
+ Package () { "pwm-clock-source", "plld" },
+#if (RPI_MODEL == 3)
+ Package () { "pwm-clock-source-frequency", 500000000 },
+ Package () { "pwm-clock-max-frequency", 125000000 }, // higher may work, but it's untested
+#elif (RPI_MODEL == 4)
+ Package () { "pwm-clock-source-frequency", 750000000 },
+ Package () { "pwm-clock-max-frequency", 375000000 },
+#endif
+ }
+ })
+}
+
include ("Uart.asl")
include ("Rhpx.asl")
include ("Sdhc.asl")
--
2.29.2.windows.2
next prev parent reply other threads:[~2021-11-05 20:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-05 20:34 [edk2-platforms][PATCH v1 1/2] Platform/RaspberryPi: Add support for PWM1 in ACPI Mario Bălănică
2021-11-05 20:34 ` Mario Bălănică [this message]
2021-11-15 22:59 ` [edk2-devel] " Jeremy Linton
2021-11-16 17:30 ` Mario Bălănică
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=20211105203436.997-2-mariobalanica02@gmail.com \
--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