From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) by mx.groups.io with SMTP id smtpd.web09.11172.1636144494630087083 for ; Fri, 05 Nov 2021 13:34:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QdP8CneF; spf=pass (domain: gmail.com, ip: 209.85.208.45, mailfrom: mariobalanica02@gmail.com) Received: by mail-ed1-f45.google.com with SMTP id o8so37001889edc.3 for ; Fri, 05 Nov 2021 13:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qKWpdaMFlkSDTxq31K+2g0s/47wem5UVvgO9GIeTE4A=; b=QdP8CneFe66wMpYGN3XYd+gMbcaVGqnuhi9d2hCa2qPrNesyj+Z1XCPMycmKPqxpNU haZNrM6yhA/cl/Nz63x9yx46kwdMeHnhoF9Fg/6GOppptInYXV7/Zb8M+ZJbnNkn23N6 5c7nxO+RqCbuedUEr3db3jpu/y83SA3YBrdzieSAMP5VvAYjl9YdzQ2L0/KAeCjSBMUy WKJFFXzWQ0uwv9TaBPJ8eH5fi9jbuNbDd6Fiu+mJu6BTMQhhqXI8oL7dtYkVF1BUgrzY Z3fVls8adIaViBWSLlYjFrwm/mGc2jqH3eDbsASTS8v5Wep6sJdeiSzJyeT3hi0fk1eD Su+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qKWpdaMFlkSDTxq31K+2g0s/47wem5UVvgO9GIeTE4A=; b=qlbpXZPAA6XJYkoW3FUIf5chaUG99eUTFgCY5W8J4L70mzLla7ckHN5TNgRWaEjex+ WAzRVkvwczkuaqHaK36Y6xcY4811802qKQO99PFHbsWXiw3KB6nMUjvLQD0HOWBTt/CM Ywsj+kgkKUmh32/6YvaS8j/1ciWLTeUXrXQyYhcRz2aQp6CP4dG0pwAJXJmORIOe8ZFm nxD7zMcHMav7I4X6RCATZXXIosYWVFqHFFPfOJqeTdgU8vqI5Q31i4FgJ3y5nvsSRurG rcyGO9Tl9WGvRqXTvM4+KGNwLYkcVUlpBiVaBJ/q9ib0BcnBhj4MCGUeVPOCLceA+e6E 5COg== X-Gm-Message-State: AOAM533tn6mnqtkygERjSoos4Ca1ftm8tP8WWO3Nj6TlH1E+8UOhKeoy SpJpf60cfUYXJF/528pHo7f7Mh29JVKzkA== X-Google-Smtp-Source: ABdhPJy7V0WQcV/bltM8DlfTZPwVAzLgx+Dn/1supT1QjbZxb5lbKHDb3R+aIgvDx5TPT/gMTx8JTQ== X-Received: by 2002:aa7:cc88:: with SMTP id p8mr21784685edt.37.1636144493123; Fri, 05 Nov 2021 13:34:53 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2a02:2f0e:c00e:9100:4cef:cfe6:232e:a0d2]) by smtp.gmail.com with ESMTPSA id sh33sm4681399ejc.56.2021.11.05.13.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Nov 2021 13:34:52 -0700 (PDT) From: =?UTF-8?B?TWFyaW8gQsSDbMSDbmljxIM=?= 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 Message-Id: <20211105203436.997-2-mariobalanica02@gmail.com> X-Mailer: git-send-email 2.29.2.windows.2 In-Reply-To: <20211105203436.997-1-mariobalanica02@gmail.com> References: <20211105203436.997-1-mariobalanica02@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The Windows audio driver now binds to this device. Signed-off-by: Mario B=C4=83l=C4=83nic=C4=83 --- Platform/RaspberryPi/AcpiTables/GpuDevs.asl | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Platform/RaspberryPi/AcpiTables/GpuDevs.asl b/Platform/Raspber= ryPi/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) }=0D #endif=0D =0D +// Analog Audio (PWM-driven)=0D +Device (AAUD)=0D +{=0D + Name (_HID, "RPI73EA")=0D +#if (RPI_MODEL =3D=3D 3)=0D + Name (_DEP, Package() { \_SB.GDV0.PWM0 })=0D +#elif (RPI_MODEL =3D=3D 4)=0D + Name (_DEP, Package() { \_SB.GDV0.PWM1 })=0D +#endif=0D + Method (_STA)=0D + {=0D + Return (0xf)=0D + }=0D + Name (_DSD, Package () {=0D + ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),=0D + Package () {=0D + Package () { "pwm-clock-source", "plld" },=0D +#if (RPI_MODEL =3D=3D 3)=0D + Package () { "pwm-clock-source-frequency", 500000000 },=0D + Package () { "pwm-clock-max-frequency", 125000000 }, // higher may w= ork, but it's untested=0D +#elif (RPI_MODEL =3D=3D 4)=0D + Package () { "pwm-clock-source-frequency", 750000000 },=0D + Package () { "pwm-clock-max-frequency", 375000000 },=0D +#endif=0D + }=0D + })=0D +}=0D +=0D include ("Uart.asl")=0D include ("Rhpx.asl")=0D include ("Sdhc.asl")=0D --=20 2.29.2.windows.2