+++ /dev/null
-/**************************************************************************;\r
-;* *;\r
-;* *;\r
-;* Intel Corporation - ACPI Reference Code for the Baytrail *;\r
-;* Family of Customer Reference Boards. *;\r
-;* *;\r
-;* *;\r
-;* Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved *;\r
-;\r
-; SPDX-License-Identifier: BSD-2-Clause-Patent\r
-;\r
-;* *;\r
-;* *;\r
-;**************************************************************************/\r
-\r
-Device(FWHD) // Firmware Hub Device\r
-{\r
- Name(_HID,EISAID("INT0800"))\r
-\r
- Name(_CRS,ResourceTemplate()\r
- {\r
- Memory32Fixed(ReadOnly,0xFF000000,0x1000000)\r
- })\r
-}\r
-\r
-Device(IPIC) // 8259 PIC\r
-{\r
- Name(_HID,EISAID("PNP0000"))\r
-\r
- Name(_CRS,ResourceTemplate()\r
- {\r
- IO(Decode16,0x20,0x20,0x01,0x02)\r
- IO(Decode16,0x24,0x24,0x01,0x02)\r
- IO(Decode16,0x28,0x28,0x01,0x02)\r
- IO(Decode16,0x2C,0x2C,0x01,0x02)\r
- IO(Decode16,0x30,0x30,0x01,0x02)\r
- IO(Decode16,0x34,0x34,0x01,0x02)\r
- IO(Decode16,0x38,0x38,0x01,0x02)\r
- IO(Decode16,0x3C,0x3C,0x01,0x02)\r
- IO(Decode16,0xA0,0xA0,0x01,0x02)\r
- IO(Decode16,0xA4,0xA4,0x01,0x02)\r
- IO(Decode16,0xA8,0xA8,0x01,0x02)\r
- IO(Decode16,0xAC,0xAC,0x01,0x02)\r
- IO(Decode16,0xB0,0xB0,0x01,0x02)\r
- IO(Decode16,0xB4,0xB4,0x01,0x02)\r
- IO(Decode16,0xB8,0xB8,0x01,0x02)\r
- IO(Decode16,0xBC,0xBC,0x01,0x02)\r
- IO(Decode16,0x4D0,0x4D0,0x01,0x02)\r
- IRQNoFlags() {2}\r
- })\r
-}\r
-\r
-Device(LDRC) // LPC Device Resource Consumption\r
-{\r
- Name(_HID,EISAID("PNP0C02"))\r
-\r
- Name(_UID,2)\r
-\r
- Name(_CRS,ResourceTemplate()\r
- {\r
- IO(Decode16,0x4E,0x4E,0x1,0x02) // LPC Slot Access.\r
- IO(Decode16,0x61,0x61,0x1,0x1) // NMI Status.\r
- IO(Decode16,0x63,0x63,0x1,0x1) // Processor I/F.\r
- IO(Decode16,0x65,0x65,0x1,0x1) // Processor I/F.\r
- IO(Decode16,0x67,0x67,0x1,0x1) // Processor I/F.\r
- IO(Decode16,0x70,0x70,0x1,0x1) // NMI Enable.\r
- IO(Decode16,0x80,0x80,0x1,0x10) // Postcode.\r
- IO(Decode16,0x92,0x92,0x1,0x1) // Processor I/F.\r
- IO(Decode16,0xB2,0xB2,0x01,0x02) // Software SMI.\r
- IO(Decode16,0x680,0x680,0x1,0x20) // 32 Byte I/O.\r
- IO(Decode16,0x400,0x400,0x1,0x80) // ACPI Base.\r
- IO(Decode16,0x500,0x500,0x1,0xFF) // GPIO Base.\r
- })\r
-}\r
-\r
-Device(TIMR) // 8254 Timer\r
-{\r
- Name(_HID,EISAID("PNP0100"))\r
-\r
- Name(_CRS,ResourceTemplate()\r
- {\r
- IO(Decode16,0x40,0x40,0x01,0x04)\r
- IO(Decode16,0x50,0x50,0x10,0x04)\r
- IRQNoFlags() {0}\r
- })\r
-}\r
-\r
-Device(IUR3) // Internal UART\r
-{\r
- Name(_HID, EISAID("PNP0501"))\r
-\r
- Name(_UID,1)\r
-\r
- // Status Method for internal UART\r
-\r
- Method(_STA,0,Serialized)\r
- {\r
- // Only report resources to the OS if internal UART is\r
- // not set to Disabled in BIOS Setup.\r
-\r
- If(LEqual(USEL,0))\r
- {\r
- If(LEqual(PU1E,1))\r
- {\r
- Store(1,UI3E) // Enable IRQ3 for UART\r
- Store(1,UI4E) // Enable IRQ4 for UART\r
- Store(1,C1EN) // Enable UART\r
- Return(0x000F)\r
- }\r
- }\r
-\r
- Return(0x0000)\r
- }\r
-\r
- // Disable Method for internal UART\r
-\r
- Method(_DIS,0,Serialized)\r
- {\r
- Store(0,UI3E)\r
- Store(0,UI4E)\r
- Store(0,C1EN)\r
- }\r
-\r
- // Current Resource Setting Method for internal UART\r
-\r
- Method(_CRS,0,Serialized)\r
- {\r
- // Create the Buffer that stores the Resources to\r
- // be returned.\r
-\r
- Name(BUF0,ResourceTemplate()\r
- {\r
- IO(Decode16,0x03F8,0x03F8,0x01,0x08)\r
- IRQNoFlags() {3}\r
- })\r
-\r
- Name(BUF1,ResourceTemplate()\r
- {\r
- IO(Decode16,0x03F8,0x03F8,0x01,0x08)\r
- IRQNoFlags() {4}\r
- })\r
-\r
- If (LLessEqual(SRID, 0x04))\r
- {\r
- Return(BUF0)\r
- } Else\r
- {\r
- Return(BUF1)\r
- }\r
- }\r
-}\r