From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from zg8tmtyylji0my4xnjqumte4.icoremail.net (zg8tmtyylji0my4xnjqumte4.icoremail.net [162.243.164.118]) by mx.groups.io with SMTP id smtpd.web10.6619.1685969319126596545 for ; Mon, 05 Jun 2023 05:48:39 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: phytium.com.cn, ip: 162.243.164.118, mailfrom: wangyuquan1236@phytium.com.cn) Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-6 (Coremail) with SMTP id AQAAfwAHztOl2n1kBcG2AQ--.57892S2; Mon, 05 Jun 2023 20:52:53 +0800 (CST) Received: from phytium.com.cn (unknown [123.150.8.50]) by mail (Coremail) with SMTP id AQAAfwBXgyOI2X1kQagAAA--.994S6; Mon, 05 Jun 2023 20:48:16 +0800 (CST) From: "wangyuquan1236" To: ardb+tianocore@kernel.org, quic_llindhol@quicinc.com Cc: quic_ggregory@quicinc.com, rad@semihalf.com, devel@edk2.groups.io, chenbaozi@phytium.com.cn, marcin.juszkiewicz@linaro.org, peter.maydell@linaro.org, Yuquan Wang Subject: [PATCH v1 3/3] SbsaQemu: AcpiTables: Add XHCI info into DSDT Date: Mon, 5 Jun 2023 20:47:26 +0800 Message-Id: <20230605124726.124268-4-wangyuquan1236@phytium.com.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230605124726.124268-1-wangyuquan1236@phytium.com.cn> References: <20230605124726.124268-1-wangyuquan1236@phytium.com.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAfwBXgyOI2X1kQagAAA--.994S6 X-CM-SenderInfo: 5zdqw5pxtxt0arstlqxsk13x1xpou0fpof0/1tbiAQABAWR84icFiAAAsR Authentication-Results: hzbj-icmmx-6; spf=neutral smtp.mail=wangyuquan 1236@phytium.com.cn; X-Coremail-Antispam: 1Uk129KBjvJXoWxXFW5WFyUCFyfXFy5Aw47urg_yoWrCrW7pr 17ZFWfCr4kCrn8tr1Ygw10vrn3AFy0yF4qkwnFqr1UJws7KF4UXr45Ga48KFyUJanxZF1j 9Fn2vFWqvF1kWw7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj DUYxn0WfASr-VFAU7a7-sFnT9fnUUIcSsGvfJ3UbIYCTnIWIevJa73UjIFyTuYvj4RJUUU UUUUU Content-Transfer-Encoding: quoted-printable As sbsa-ref board uses xhci to replace ehci, the DSDT is updated to match=0D the platform xhci controller. This also removes previous ehci structure.=0D =0D Signed-off-by: Yuquan Wang =0D ---=0D .../Qemu/SbsaQemu/AcpiTables/AcpiTables.inf | 4 +-=0D Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl | 125 ++----------------=0D 2 files changed, 15 insertions(+), 114 deletions(-)=0D =0D diff --git a/Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf b/Silicon/Qemu= /SbsaQemu/AcpiTables/AcpiTables.inf=0D index 176d8fab..f9caca96 100644=0D --- a/Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf=0D +++ b/Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf=0D @@ -72,5 +72,5 @@=0D =0D gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformAhciBase=0D gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformAhciSize=0D - gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformEhciBase=0D - gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformEhciSize=0D + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformXhciBase=0D + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformXhciSize=0D diff --git a/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl b/Silicon/Qemu/SbsaQ= emu/AcpiTables/Dsdt.asl=0D index 33579165..b4ef2c1f 100644=0D --- a/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl=0D +++ b/Silicon/Qemu/SbsaQemu/AcpiTables/Dsdt.asl=0D @@ -68,120 +68,21 @@ DefinitionBlock ("DsdtTable.aml", "DSDT",=0D }=0D }=0D =0D - // USB EHCI Host Controller=0D - Device (USB0) {=0D - Name (_HID, "LNRO0D20")=0D - Name (_CID, "PNP0D20")=0D + // USB XHCI Host Controller=0D + Device (XHCI) {=0D + Name (_HID, "PNP0D10") // _HID: Hardware ID=0D + Name (_UID, 0x00) // _UID: Unique ID=0D + Name (_CCA, 0x01) // _CCA: Cache Coherency Attribute=0D + Name (_CRS, ResourceTemplate() {=0D + Memory32Fixed (ReadWrite,=0D + FixedPcdGet32 (PcdPlatformXhciBase),=0D + FixedPcdGet32 (PcdPlatformXhciSize))=0D + Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 4= 3 }=0D + })=0D Method (_STA) {=0D - Return (0xF)=0D - }=0D - Method (_CRS, 0x0, Serialized) {=0D - Name (RBUF, ResourceTemplate() {=0D - Memory32Fixed (ReadWrite,=0D - FixedPcdGet32 (PcdPlatformEhciBase),=0D - FixedPcdGet32 (PcdPlatformEhciSize))=0D - Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive)= { 43 }=0D - })=0D - Return (RBUF)=0D + Return (0xF)=0D }=0D -=0D - // Root Hub=0D - Device (RHUB) {=0D - Name (_ADR, 0x00000000) // Address of Root Hub should be 0 as= per ACPI 5.0 spec=0D - Method (_STA) {=0D - Return (0xF)=0D - }=0D -=0D - // Ports connected to Root Hub=0D - Device (HUB1) {=0D - Name (_ADR, 0x00000001)=0D - Name (_UPC, Package() {=0D - 0x00, // Port is NOT connectable=0D - 0xFF, // Don't care=0D - 0x00000000, // Reserved 0 must be zero=0D - 0x00000000 // Reserved 1 must be zero=0D - })=0D - Method (_STA) {=0D - Return (0xF)=0D - }=0D -=0D - Device (PRT1) {=0D - Name (_ADR, 0x00000001)=0D - Name (_UPC, Package() {=0D - 0xFF, // Port is connectable=0D - 0x00, // Port connector is A=0D - 0x00000000,=0D - 0x00000000=0D - })=0D - Name (_PLD, Package() {=0D - Buffer(0x10) {=0D - 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00= ,=0D - 0x31, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00= =0D - }=0D - })=0D - Method (_STA) {=0D - Return (0xF)=0D - }=0D - } // USB0_RHUB_HUB1_PRT1=0D - Device (PRT2) {=0D - Name (_ADR, 0x00000002)=0D - Name (_UPC, Package() {=0D - 0xFF, // Port is connectable=0D - 0x00, // Port connector is A=0D - 0x00000000,=0D - 0x00000000=0D - })=0D - Name (_PLD, Package() {=0D - Buffer(0x10) {=0D - 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00= ,=0D - 0x31, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00= =0D - }=0D - })=0D - Method (_STA) {=0D - Return (0xF)=0D - }=0D - } // USB0_RHUB_HUB1_PRT2=0D -=0D - Device (PRT3) {=0D - Name (_ADR, 0x00000003)=0D - Name (_UPC, Package() {=0D - 0xFF, // Port is connectable=0D - 0x00, // Port connector is A=0D - 0x00000000,=0D - 0x00000000=0D - })=0D - Name (_PLD, Package() {=0D - Buffer (0x10) {=0D - 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00= ,=0D - 0x31, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00= =0D - }=0D - })=0D - Method (_STA) {=0D - Return (0xF)=0D - }=0D - } // USB0_RHUB_HUB1_PRT3=0D -=0D - Device (PRT4) {=0D - Name (_ADR, 0x00000004)=0D - Name (_UPC, Package() {=0D - 0xFF, // Port is connectable=0D - 0x00, // Port connector is A=0D - 0x00000000,=0D - 0x00000000=0D - })=0D - Name (_PLD, Package() {=0D - Buffer (0x10){=0D - 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00= ,=0D - 0x31, 0x1C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00= =0D - }=0D - })=0D - Method (_STA) {=0D - Return (0xF)=0D - }=0D - } // USB0_RHUB_HUB1_PRT4=0D - } // USB0_RHUB_HUB1=0D - } // USB0_RHUB=0D - } // USB0=0D + }=0D =0D Device (PCI0)=0D {=0D -- =0D 2.34.1=0D =0D