From 3f2467032e3e40cd456d2d9fe5120a60283784aa Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Mon, 25 Jan 2021 16:48:51 +0200 Subject: sb,soc/amd: Rename PMOD to PICM in ASL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the same variable name as soc/intel to implement a common _PIC method at top-level ASL. Change-Id: I48f9e224d6d0101c2101be99cd18ff382738f0dd Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/49903 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/soc/amd/picasso/acpi/globalnvs.asl | 2 +- src/soc/amd/picasso/acpi/pci_int.asl | 12 ++++++------ src/soc/amd/picasso/acpi/sb_fch.asl | 16 ++++++++-------- 3 files changed, 15 insertions(+), 15 deletions(-) (limited to 'src/soc/amd/picasso') diff --git a/src/soc/amd/picasso/acpi/globalnvs.asl b/src/soc/amd/picasso/acpi/globalnvs.asl index 709649211d..1c19059425 100644 --- a/src/soc/amd/picasso/acpi/globalnvs.asl +++ b/src/soc/amd/picasso/acpi/globalnvs.asl @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* Global variables */ -Name (PMOD, Zero) /* Interrupt Mode used by OS. Assume PIC. */ +Name (PICM, Zero) /* Interrupt Mode used by OS. Assume PIC. */ /* * NOTE: The layout of the GNVS structure below must match the layout in diff --git a/src/soc/amd/picasso/acpi/pci_int.asl b/src/soc/amd/picasso/acpi/pci_int.asl index 0a6dec8906..f95dcb0659 100644 --- a/src/soc/amd/picasso/acpi/pci_int.asl +++ b/src/soc/amd/picasso/acpi/pci_int.asl @@ -3,7 +3,7 @@ Method(\_PIC, 0x01, NotSerialized) { printf("PIC MODE: %o", Arg0) - PMOD = Arg0 + PICM = Arg0 } /* PIC Possible Resource Values */ @@ -26,7 +26,7 @@ Name(_UID, UID) \ \ Method(_STA, 0) { \ - If (PMOD) { \ + If (PICM) { \ local0=APIC_REG \ } Else { \ local0=PIC_REG \ @@ -44,7 +44,7 @@ } \ \ Method(_DIS ,0) { \ - If(PMOD) { \ + If(PICM) { \ printf("PCI: \\_SB.%s._DIS APIC", #DEV_NAME) \ APIC_REG=0x1f \ } Else { \ @@ -54,7 +54,7 @@ } \ \ Method(_PRS ,0) { \ - If(PMOD) { \ + If(PICM) { \ printf("PCI: \\_SB.%s._PRS => APIC", #DEV_NAME) \ Return(IRQI) \ } Else { \ @@ -73,7 +73,7 @@ { 0 } \ } \ CreateDWordField(local0, NUMB._INT, IRQN) \ - If(PMOD) { \ + If(PICM) { \ printf("PCI: \\_SB.%s._CRS APIC: %o", #DEV_NAME, APIC_REG) \ IRQN=APIC_REG \ } Else { \ @@ -90,7 +90,7 @@ Method(_SRS, 1) { \ CreateWordField(ARG0, 0x5, IRQN) \ \ - If(PMOD) { \ + If(PICM) { \ printf("PCI: \\_SB.%s._SRS APIC: %o", #DEV_NAME, IRQN) \ APIC_REG=IRQN \ } Else { \ diff --git a/src/soc/amd/picasso/acpi/sb_fch.asl b/src/soc/amd/picasso/acpi/sb_fch.asl index 69c8b1b89a..32268da998 100644 --- a/src/soc/amd/picasso/acpi/sb_fch.asl +++ b/src/soc/amd/picasso/acpi/sb_fch.asl @@ -38,7 +38,7 @@ Device (GPIO) Memory32Fixed (ReadWrite, ACPIMMIO_GPIO0_BASE, 0x400) } CreateDWordField (Local0, IRQR._INT, IRQN) - If (PMOD) { + If (PICM) { IRQN = IGPI } Else { IRQN = PGPI @@ -73,7 +73,7 @@ Device (MMC0) Memory32Fixed (ReadWrite, APU_EMMC_BASE, 0x1000) } CreateDWordField (Local0, IRQR._INT, IRQN) - If (PMOD) { + If (PICM) { IRQN = IMMC } Else { IRQN = PMMC @@ -109,7 +109,7 @@ Device (FUR0) Memory32Fixed (ReadWrite, APU_DMAC0_BASE, 0x1000) } CreateDWordField (Local0, IRQR._INT, IRQN) - If (PMOD) { + If (PICM) { IRQN = IUA0 } Else { IRQN = PUA0 @@ -142,7 +142,7 @@ Device (FUR1) { Memory32Fixed (ReadWrite, APU_DMAC1_BASE, 0x1000) } CreateDWordField (Local0, IRQR._INT, IRQN) - If (PMOD) { + If (PICM) { IRQN = IUA1 } Else { IRQN = PUA1 @@ -175,7 +175,7 @@ Device (FUR2) { Memory32Fixed (ReadWrite, APU_DMAC2_BASE, 0x1000) } CreateDWordField (Local0, IRQR._INT, IRQN) - If (PMOD) { + If (PICM) { IRQN = IUA2 } Else { IRQN = PUA2 @@ -208,7 +208,7 @@ Device (FUR3) { Memory32Fixed (ReadWrite, APU_DMAC3_BASE, 0x1000) } CreateDWordField (Local0, IRQR._INT, IRQN) - If (PMOD) { + If (PICM) { IRQN = IUA3 } Else { IRQN = PUA3 @@ -240,7 +240,7 @@ Device (I2C2) { Memory32Fixed (ReadWrite, APU_I2C2_BASE, 0x1000) } CreateDWordField (Local0, IRQR._INT, IRQN) - If (PMOD) { + If (PICM) { IRQN = II22 } Else { IRQN = PI22 @@ -277,7 +277,7 @@ Device (I2C3) Memory32Fixed (ReadWrite, APU_I2C3_BASE, 0x1000) } CreateDWordField (Local0, IRQR._INT, IRQN) - If (PMOD) { + If (PICM) { IRQN = II23 } Else { IRQN = PI23 -- cgit v1.2.3