From: Bin Meng Date: Thu, 26 May 2016 02:19:06 +0000 (-0700) Subject: x86: acpi: Create a common irqlinks ASL file X-Git-Tag: v2016.07-rc1~68^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0d71511a2ae03aeb3794a0461bd8c14752438c7f;p=u-boot x86: acpi: Create a common irqlinks ASL file Move the irqlinks.asl file currently in the BayTrail directory to a common place to be shared among all x86 platforms. As the PIRQ routing control programming interface is common to Intel chipsets, leave the common part in the common file, and move the platform specific part to the platform files. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/arch/x86/include/asm/acpi/irqlinks.asl b/arch/x86/include/asm/acpi/irqlinks.asl new file mode 100644 index 0000000000..84c1e53c7d --- /dev/null +++ b/arch/x86/include/asm/acpi/irqlinks.asl @@ -0,0 +1,486 @@ +/* + * Copyright (C) 2007-2009 coresystems GmbH + * Copyright (C) 2016 Bin Meng + * + * Modified from coreboot src/soc/intel/baytrail/acpi/irqlinks.asl + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/* + * Intel chipset PIRQ routing control ASL description + * + * The programming interface is common to most Intel chipsets. But the PRTx + * registers may be mapped to different blocks. Some chipsets map them to LPC + * device (00:1f:00) PCI configuration space (like TunnelCreek, Quark), while + * some newer Atom SoCs (like BayTrail, Braswell) map them to Intel Legacy + * Block (ILB) memory space. + * + * This file defines 8 PCI IRQ link devices which corresponds to 8 PIRQ lines + * PIRQ A/B/C/D/E/F/G/H. To incorperate this file, the PRTx registers must be + * defined somewhere else in the platform's ASL files. + */ + +Device (LNKA) +{ + Name(_HID, EISAID("PNP0C0F")) + Name(_UID, 1) + + /* Disable method */ + Method(_DIS, 0, Serialized) + { + Store(0x80, PRTA) + } + + /* Possible Resource Settings for this Link */ + Name(_PRS, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } + }) + + /* Current Resource Settings for this link */ + Method(_CRS, 0, Serialized) + { + Name(RTLA, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) {} + }) + CreateWordField(RTLA, 1, IRQ0) + + /* Clear the WordField */ + Store(Zero, IRQ0) + + /* Set the bit from PRTA */ + ShiftLeft(1, And(PRTA, 0x0f), IRQ0) + + Return (RTLA) + } + + /* Set Resource Setting for this IRQ link */ + Method(_SRS, 1, Serialized) + { + CreateWordField(Arg0, 1, IRQ0) + + /* Which bit is set? */ + FindSetRightBit(IRQ0, Local0) + + Decrement(Local0) + Store(Local0, PRTA) + } + + /* Status */ + Method(_STA, 0, Serialized) + { + If (And(PRTA, 0x80)) { + Return (STA_DISABLED) + } Else { + Return (STA_INVISIBLE) + } + } +} + +Device (LNKB) +{ + Name(_HID, EISAID("PNP0C0F")) + Name(_UID, 2) + + /* Disable method */ + Method(_DIS, 0, Serialized) + { + Store(0x80, PRTB) + } + + /* Possible Resource Settings for this Link */ + Name(_PRS, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } + }) + + /* Current Resource Settings for this link */ + Method(_CRS, 0, Serialized) + { + Name(RTLB, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) {} + }) + CreateWordField(RTLB, 1, IRQ0) + + /* Clear the WordField */ + Store(Zero, IRQ0) + + /* Set the bit from PRTB */ + ShiftLeft(1, And(PRTB, 0x0f), IRQ0) + + Return (RTLB) + } + + /* Set Resource Setting for this IRQ link */ + Method(_SRS, 1, Serialized) + { + CreateWordField(Arg0, 1, IRQ0) + + /* Which bit is set? */ + FindSetRightBit(IRQ0, Local0) + + Decrement(Local0) + Store(Local0, PRTB) + } + + /* Status */ + Method(_STA, 0, Serialized) + { + If (And(PRTB, 0x80)) { + Return (STA_DISABLED) + } Else { + Return (STA_INVISIBLE) + } + } +} + +Device (LNKC) +{ + Name(_HID, EISAID("PNP0C0F")) + Name(_UID, 3) + + /* Disable method */ + Method(_DIS, 0, Serialized) + { + Store(0x80, PRTC) + } + + /* Possible Resource Settings for this Link */ + Name(_PRS, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } + }) + + /* Current Resource Settings for this link */ + Method(_CRS, 0, Serialized) + { + Name(RTLC, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) {} + }) + CreateWordField(RTLC, 1, IRQ0) + + /* Clear the WordField */ + Store(Zero, IRQ0) + + /* Set the bit from PRTC */ + ShiftLeft(1, And(PRTC, 0x0f), IRQ0) + + Return (RTLC) + } + + /* Set Resource Setting for this IRQ link */ + Method(_SRS, 1, Serialized) + { + CreateWordField(Arg0, 1, IRQ0) + + /* Which bit is set? */ + FindSetRightBit(IRQ0, Local0) + + Decrement(Local0) + Store(Local0, PRTC) + } + + /* Status */ + Method(_STA, 0, Serialized) + { + If (And(PRTC, 0x80)) { + Return (STA_DISABLED) + } Else { + Return (STA_INVISIBLE) + } + } +} + +Device (LNKD) +{ + Name(_HID, EISAID("PNP0C0F")) + Name(_UID, 4) + + /* Disable method */ + Method(_DIS, 0, Serialized) + { + Store(0x80, PRTD) + } + + /* Possible Resource Settings for this Link */ + Name(_PRS, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } + }) + + /* Current Resource Settings for this link */ + Method(_CRS, 0, Serialized) + { + Name(RTLD, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) {} + }) + CreateWordField(RTLD, 1, IRQ0) + + /* Clear the WordField */ + Store(Zero, IRQ0) + + /* Set the bit from PRTD */ + ShiftLeft(1, And(PRTD, 0x0f), IRQ0) + + Return (RTLD) + } + + /* Set Resource Setting for this IRQ link */ + Method(_SRS, 1, Serialized) + { + CreateWordField(Arg0, 1, IRQ0) + + /* Which bit is set? */ + FindSetRightBit(IRQ0, Local0) + + Decrement(Local0) + Store(Local0, PRTD) + } + + /* Status */ + Method(_STA, 0, Serialized) + { + If (And(PRTD, 0x80)) { + Return (STA_DISABLED) + } Else { + Return (STA_INVISIBLE) + } + } +} + +Device (LNKE) +{ + Name(_HID, EISAID("PNP0C0F")) + Name(_UID, 5) + + /* Disable method */ + Method(_DIS, 0, Serialized) + { + Store(0x80, PRTE) + } + + /* Possible Resource Settings for this Link */ + Name(_PRS, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } + }) + + /* Current Resource Settings for this link */ + Method(_CRS, 0, Serialized) + { + Name(RTLE, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) {} + }) + CreateWordField(RTLE, 1, IRQ0) + + /* Clear the WordField */ + Store(Zero, IRQ0) + + /* Set the bit from PRTE */ + ShiftLeft(1, And(PRTE, 0x0f), IRQ0) + + Return (RTLE) + } + + /* Set Resource Setting for this IRQ link */ + Method(_SRS, 1, Serialized) + { + CreateWordField(Arg0, 1, IRQ0) + + /* Which bit is set? */ + FindSetRightBit(IRQ0, Local0) + + Decrement(Local0) + Store(Local0, PRTE) + } + + /* Status */ + Method(_STA, 0, Serialized) + { + If (And(PRTE, 0x80)) { + Return (STA_DISABLED) + } Else { + Return (STA_INVISIBLE) + } + } +} + +Device (LNKF) +{ + Name(_HID, EISAID("PNP0C0F")) + Name(_UID, 6) + + /* Disable method */ + Method(_DIS, 0, Serialized) + { + Store(0x80, PRTF) + } + + /* Possible Resource Settings for this Link */ + Name(_PRS, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } + }) + + /* Current Resource Settings for this link */ + Method(_CRS, 0, Serialized) + { + Name(RTLF, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) {} + }) + CreateWordField(RTLF, 1, IRQ0) + + /* Clear the WordField */ + Store(Zero, IRQ0) + + /* Set the bit from PRTF */ + ShiftLeft(1, And(PRTF, 0x0f), IRQ0) + + Return (RTLF) + } + + /* Set Resource Setting for this IRQ link */ + Method(_SRS, 1, Serialized) + { + CreateWordField(Arg0, 1, IRQ0) + + /* Which bit is set? */ + FindSetRightBit(IRQ0, Local0) + + Decrement(Local0) + Store(Local0, PRTF) + } + + /* Status */ + Method(_STA, 0, Serialized) + { + If (And(PRTF, 0x80)) { + Return (STA_DISABLED) + } Else { + Return (STA_INVISIBLE) + } + } +} + +Device (LNKG) +{ + Name(_HID, EISAID("PNP0C0F")) + Name(_UID, 7) + + /* Disable method */ + Method(_DIS, 0, Serialized) + { + Store(0x80, PRTG) + } + + /* Possible Resource Settings for this Link */ + Name(_PRS, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } + }) + + /* Current Resource Settings for this link */ + Method(_CRS, 0, Serialized) + { + Name(RTLG, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) {} + }) + CreateWordField(RTLG, 1, IRQ0) + + /* Clear the WordField */ + Store(Zero, IRQ0) + + /* Set the bit from PRTG */ + ShiftLeft(1, And(PRTG, 0x0f), IRQ0) + + Return (RTLG) + } + + /* Set Resource Setting for this IRQ link */ + Method(_SRS, 1, Serialized) + { + CreateWordField(Arg0, 1, IRQ0) + + /* Which bit is set? */ + FindSetRightBit(IRQ0, Local0) + + Decrement(Local0) + Store(Local0, PRTG) + } + + /* Status */ + Method(_STA, 0, Serialized) + { + If (And(PRTG, 0x80)) { + Return (STA_DISABLED) + } Else { + Return (STA_INVISIBLE) + } + } +} + +Device (LNKH) +{ + Name(_HID, EISAID("PNP0C0F")) + Name(_UID, 8) + + /* Disable method */ + Method(_DIS, 0, Serialized) + { + Store(0x80, PRTH) + } + + /* Possible Resource Settings for this Link */ + Name(_PRS, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } + }) + + /* Current Resource Settings for this link */ + Method(_CRS, 0, Serialized) + { + Name(RTLH, ResourceTemplate() + { + IRQ(Level, ActiveLow, Shared) {} + }) + CreateWordField(RTLH, 1, IRQ0) + + /* Clear the WordField */ + Store(Zero, IRQ0) + + /* Set the bit from PRTH */ + ShiftLeft(1, And(PRTH, 0x0f), IRQ0) + + Return (RTLH) + } + + /* Set Resource Setting for this IRQ link */ + Method(_SRS, 1, Serialized) + { + CreateWordField(Arg0, 1, IRQ0) + + /* Which bit is set? */ + FindSetRightBit(IRQ0, Local0) + + Decrement(Local0) + Store(Local0, PRTH) + } + + /* Status */ + Method(_STA, 0, Serialized) + { + If (And(PRTH, 0x80)) { + Return (STA_DISABLED) + } Else { + Return (STA_INVISIBLE) + } + } +} diff --git a/arch/x86/include/asm/arch-baytrail/acpi/irqlinks.asl b/arch/x86/include/asm/arch-baytrail/acpi/irqlinks.asl deleted file mode 100644 index 0affa2335c..0000000000 --- a/arch/x86/include/asm/arch-baytrail/acpi/irqlinks.asl +++ /dev/null @@ -1,493 +0,0 @@ -/* - * Copyright (C) 2007-2009 coresystems GmbH - * Copyright (C) 2016 Bin Meng - * - * Modified from coreboot src/soc/intel/baytrail/acpi/irqlinks.asl - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -Scope (\) -{ - /* Intel Legacy Block */ - OperationRegion(ILBS, SystemMemory, ILB_BASE_ADDRESS, ILB_BASE_SIZE) - Field(ILBS, AnyAcc, NoLock, Preserve) { - Offset (0x8), - PRTA, 8, - PRTB, 8, - PRTC, 8, - PRTD, 8, - PRTE, 8, - PRTF, 8, - PRTG, 8, - PRTH, 8, - Offset (0x88), - , 3, - UI3E, 1, - UI4E, 1 - } -} - -Device (LNKA) -{ - Name(_HID, EISAID("PNP0C0F")) - Name(_UID, 1) - - /* Disable method */ - Method(_DIS, 0, Serialized) - { - Store(0x80, PRTA) - } - - /* Possible Resource Settings for this Link */ - Name(_PRS, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } - }) - - /* Current Resource Settings for this link */ - Method(_CRS, 0, Serialized) - { - Name(RTLA, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) {} - }) - CreateWordField(RTLA, 1, IRQ0) - - /* Clear the WordField */ - Store(Zero, IRQ0) - - /* Set the bit from PRTA */ - ShiftLeft(1, And(PRTA, 0x0f), IRQ0) - - Return (RTLA) - } - - /* Set Resource Setting for this IRQ link */ - Method(_SRS, 1, Serialized) - { - CreateWordField(Arg0, 1, IRQ0) - - /* Which bit is set? */ - FindSetRightBit(IRQ0, Local0) - - Decrement(Local0) - Store(Local0, PRTA) - } - - /* Status */ - Method(_STA, 0, Serialized) - { - If (And(PRTA, 0x80)) { - Return (STA_DISABLED) - } Else { - Return (STA_INVISIBLE) - } - } -} - -Device (LNKB) -{ - Name(_HID, EISAID("PNP0C0F")) - Name(_UID, 2) - - /* Disable method */ - Method(_DIS, 0, Serialized) - { - Store(0x80, PRTB) - } - - /* Possible Resource Settings for this Link */ - Name(_PRS, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } - }) - - /* Current Resource Settings for this link */ - Method(_CRS, 0, Serialized) - { - Name(RTLB, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) {} - }) - CreateWordField(RTLB, 1, IRQ0) - - /* Clear the WordField */ - Store(Zero, IRQ0) - - /* Set the bit from PRTB */ - ShiftLeft(1, And(PRTB, 0x0f), IRQ0) - - Return (RTLB) - } - - /* Set Resource Setting for this IRQ link */ - Method(_SRS, 1, Serialized) - { - CreateWordField(Arg0, 1, IRQ0) - - /* Which bit is set? */ - FindSetRightBit(IRQ0, Local0) - - Decrement(Local0) - Store(Local0, PRTB) - } - - /* Status */ - Method(_STA, 0, Serialized) - { - If (And(PRTB, 0x80)) { - Return (STA_DISABLED) - } Else { - Return (STA_INVISIBLE) - } - } -} - -Device (LNKC) -{ - Name(_HID, EISAID("PNP0C0F")) - Name(_UID, 3) - - /* Disable method */ - Method(_DIS, 0, Serialized) - { - Store(0x80, PRTC) - } - - /* Possible Resource Settings for this Link */ - Name(_PRS, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } - }) - - /* Current Resource Settings for this link */ - Method(_CRS, 0, Serialized) - { - Name(RTLC, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) {} - }) - CreateWordField(RTLC, 1, IRQ0) - - /* Clear the WordField */ - Store(Zero, IRQ0) - - /* Set the bit from PRTC */ - ShiftLeft(1, And(PRTC, 0x0f), IRQ0) - - Return (RTLC) - } - - /* Set Resource Setting for this IRQ link */ - Method(_SRS, 1, Serialized) - { - CreateWordField(Arg0, 1, IRQ0) - - /* Which bit is set? */ - FindSetRightBit(IRQ0, Local0) - - Decrement(Local0) - Store(Local0, PRTC) - } - - /* Status */ - Method(_STA, 0, Serialized) - { - If (And(PRTC, 0x80)) { - Return (STA_DISABLED) - } Else { - Return (STA_INVISIBLE) - } - } -} - -Device (LNKD) -{ - Name(_HID, EISAID("PNP0C0F")) - Name(_UID, 4) - - /* Disable method */ - Method(_DIS, 0, Serialized) - { - Store(0x80, PRTD) - } - - /* Possible Resource Settings for this Link */ - Name(_PRS, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } - }) - - /* Current Resource Settings for this link */ - Method(_CRS, 0, Serialized) - { - Name(RTLD, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) {} - }) - CreateWordField(RTLD, 1, IRQ0) - - /* Clear the WordField */ - Store(Zero, IRQ0) - - /* Set the bit from PRTD */ - ShiftLeft(1, And(PRTD, 0x0f), IRQ0) - - Return (RTLD) - } - - /* Set Resource Setting for this IRQ link */ - Method(_SRS, 1, Serialized) - { - CreateWordField(Arg0, 1, IRQ0) - - /* Which bit is set? */ - FindSetRightBit(IRQ0, Local0) - - Decrement(Local0) - Store(Local0, PRTD) - } - - /* Status */ - Method(_STA, 0, Serialized) - { - If (And(PRTD, 0x80)) { - Return (STA_DISABLED) - } Else { - Return (STA_INVISIBLE) - } - } -} - -Device (LNKE) -{ - Name(_HID, EISAID("PNP0C0F")) - Name(_UID, 5) - - /* Disable method */ - Method(_DIS, 0, Serialized) - { - Store(0x80, PRTE) - } - - /* Possible Resource Settings for this Link */ - Name(_PRS, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } - }) - - /* Current Resource Settings for this link */ - Method(_CRS, 0, Serialized) - { - Name(RTLE, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) {} - }) - CreateWordField(RTLE, 1, IRQ0) - - /* Clear the WordField */ - Store(Zero, IRQ0) - - /* Set the bit from PRTE */ - ShiftLeft(1, And(PRTE, 0x0f), IRQ0) - - Return (RTLE) - } - - /* Set Resource Setting for this IRQ link */ - Method(_SRS, 1, Serialized) - { - CreateWordField(Arg0, 1, IRQ0) - - /* Which bit is set? */ - FindSetRightBit(IRQ0, Local0) - - Decrement(Local0) - Store(Local0, PRTE) - } - - /* Status */ - Method(_STA, 0, Serialized) - { - If (And(PRTE, 0x80)) { - Return (STA_DISABLED) - } Else { - Return (STA_INVISIBLE) - } - } -} - -Device (LNKF) -{ - Name(_HID, EISAID("PNP0C0F")) - Name(_UID, 6) - - /* Disable method */ - Method(_DIS, 0, Serialized) - { - Store(0x80, PRTF) - } - - /* Possible Resource Settings for this Link */ - Name(_PRS, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } - }) - - /* Current Resource Settings for this link */ - Method(_CRS, 0, Serialized) - { - Name(RTLF, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) {} - }) - CreateWordField(RTLF, 1, IRQ0) - - /* Clear the WordField */ - Store(Zero, IRQ0) - - /* Set the bit from PRTF */ - ShiftLeft(1, And(PRTF, 0x0f), IRQ0) - - Return (RTLF) - } - - /* Set Resource Setting for this IRQ link */ - Method(_SRS, 1, Serialized) - { - CreateWordField(Arg0, 1, IRQ0) - - /* Which bit is set? */ - FindSetRightBit(IRQ0, Local0) - - Decrement(Local0) - Store(Local0, PRTF) - } - - /* Status */ - Method(_STA, 0, Serialized) - { - If (And(PRTF, 0x80)) { - Return (STA_DISABLED) - } Else { - Return (STA_INVISIBLE) - } - } -} - -Device (LNKG) -{ - Name(_HID, EISAID("PNP0C0F")) - Name(_UID, 7) - - /* Disable method */ - Method(_DIS, 0, Serialized) - { - Store(0x80, PRTG) - } - - /* Possible Resource Settings for this Link */ - Name(_PRS, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } - }) - - /* Current Resource Settings for this link */ - Method(_CRS, 0, Serialized) - { - Name(RTLG, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) {} - }) - CreateWordField(RTLG, 1, IRQ0) - - /* Clear the WordField */ - Store(Zero, IRQ0) - - /* Set the bit from PRTG */ - ShiftLeft(1, And(PRTG, 0x0f), IRQ0) - - Return (RTLG) - } - - /* Set Resource Setting for this IRQ link */ - Method(_SRS, 1, Serialized) - { - CreateWordField(Arg0, 1, IRQ0) - - /* Which bit is set? */ - FindSetRightBit(IRQ0, Local0) - - Decrement(Local0) - Store(Local0, PRTG) - } - - /* Status */ - Method(_STA, 0, Serialized) - { - If (And(PRTG, 0x80)) { - Return (STA_DISABLED) - } Else { - Return (STA_INVISIBLE) - } - } -} - -Device (LNKH) -{ - Name(_HID, EISAID("PNP0C0F")) - Name(_UID, 8) - - /* Disable method */ - Method(_DIS, 0, Serialized) - { - Store(0x80, PRTH) - } - - /* Possible Resource Settings for this Link */ - Name(_PRS, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) { 5, 6, 7, 10, 11, 12, 14, 15 } - }) - - /* Current Resource Settings for this link */ - Method(_CRS, 0, Serialized) - { - Name(RTLH, ResourceTemplate() - { - IRQ(Level, ActiveLow, Shared) {} - }) - CreateWordField(RTLH, 1, IRQ0) - - /* Clear the WordField */ - Store(Zero, IRQ0) - - /* Set the bit from PRTH */ - ShiftLeft(1, And(PRTH, 0x0f), IRQ0) - - Return (RTLH) - } - - /* Set Resource Setting for this IRQ link */ - Method(_SRS, 1, Serialized) - { - CreateWordField(Arg0, 1, IRQ0) - - /* Which bit is set? */ - FindSetRightBit(IRQ0, Local0) - - Decrement(Local0) - Store(Local0, PRTH) - } - - /* Status */ - Method(_STA, 0, Serialized) - { - If (And(PRTH, 0x80)) { - Return (STA_DISABLED) - } Else { - Return (STA_INVISIBLE) - } - } -} diff --git a/arch/x86/include/asm/arch-baytrail/acpi/lpc.asl b/arch/x86/include/asm/arch-baytrail/acpi/lpc.asl index 385671c968..22f0d68f4d 100644 --- a/arch/x86/include/asm/arch-baytrail/acpi/lpc.asl +++ b/arch/x86/include/asm/arch-baytrail/acpi/lpc.asl @@ -10,6 +10,27 @@ /* Intel LPC Bus Device - 0:1f.0 */ +Scope (\) +{ + /* Intel Legacy Block */ + OperationRegion(ILBS, SystemMemory, ILB_BASE_ADDRESS, ILB_BASE_SIZE) + Field(ILBS, AnyAcc, NoLock, Preserve) { + Offset (0x8), + PRTA, 8, + PRTB, 8, + PRTC, 8, + PRTD, 8, + PRTE, 8, + PRTF, 8, + PRTG, 8, + PRTH, 8, + Offset (0x88), + , 3, + UI3E, 1, + UI4E, 1 + } +} + Device (LPCB) { Name(_ADR, 0x001f0000) @@ -23,7 +44,7 @@ Device (LPCB) Offset(0x84) } - #include "irqlinks.asl" + #include /* Firmware Hub */ Device (FWH)