]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/CY8C9540A.asi
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Acpi / AcpiTables / Dsdt / CY8C9540A.asi
CommitLineData
b303605e
MK
1/** @file\r
2\r
3Copyright (c) 2013-2015 Intel Corporation.\r
4\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13CY8C9540A 40 Bit I/O Expander with EEPROM.\r
14\r
15**/\r
16\r
17Device(CY8C)\r
18{\r
19 Name(_HID, "INT3490") // Cypress CY8C9540A Io Expander Function.\r
20 Name(_CID, "INT3490")\r
21\r
22 Name(RBUF, ResourceTemplate()\r
23 {\r
24 I2CSerialBus(0x20, ControllerInitiated, 100000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )\r
25 GpioInt (Level, ActiveLow, Exclusive, PullDefault, , "\\_SB.PCI0.GIP0.GPO", 0, ResourceConsumer, , ) {QUARK_GPIO5_MAPPING} /* GPIO<5> is INT_S0 */\r
26 })\r
27 Method(_CRS, 0x0, NotSerialized)\r
28 {\r
29 CreateByteField(RBUF, 16, OB1)\r
30 if (LEqual (ALTS, 0))\r
31 {\r
32 Store(0x20, OB1)\r
33 }\r
34 Else\r
35 {\r
36 Store(0x21, OB1)\r
37 }\r
38 Return(RBUF)\r
39 }\r
40 Method(_STA, 0x0, NotSerialized)\r
41 {\r
42 //\r
43 // Only Galileo platform has this device.\r
44 // EFI_PLATFORM_TYPE enum value Galileo = 6.\r
45 //\r
46 If(LNotEqual(PTYP, 6))\r
47 {\r
48 return (0)\r
49 }\r
50 Return(0xf)\r
51 }\r
52}\r
53\r