]> git.proxmox.com Git - mirror_edk2.git/blob - QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/CY8C9540A.asi
b5a5f3b68046f4aa0fa3aa962ea7b87a6fc205fb
[mirror_edk2.git] / QuarkPlatformPkg / Acpi / AcpiTables / Dsdt / CY8C9540A.asi
1 /** @file
2
3 Copyright (c) 2013-2015 Intel Corporation.
4
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 CY8C9540A 40 Bit I/O Expander with EEPROM.
8
9 **/
10
11 Device(CY8C)
12 {
13 Name(_HID, "INT3490") // Cypress CY8C9540A Io Expander Function.
14 Name(_CID, "INT3490")
15
16 Name(RBUF, ResourceTemplate()
17 {
18 I2CSerialBus(0x20, ControllerInitiated, 100000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )
19 GpioInt (Level, ActiveLow, Exclusive, PullDefault, , "\\_SB.PCI0.GIP0.GPO", 0, ResourceConsumer, , ) {QUARK_GPIO5_MAPPING} /* GPIO<5> is INT_S0 */
20 })
21 Method(_CRS, 0x0, NotSerialized)
22 {
23 CreateByteField(RBUF, 16, OB1)
24 if (LEqual (ALTS, 0))
25 {
26 Store(0x20, OB1)
27 }
28 Else
29 {
30 Store(0x21, OB1)
31 }
32 Return(RBUF)
33 }
34 Method(_STA, 0x0, NotSerialized)
35 {
36 //
37 // Only Galileo platform has this device.
38 // EFI_PLATFORM_TYPE enum value Galileo = 6.
39 //
40 If(LNotEqual(PTYP, 6))
41 {
42 return (0)
43 }
44 Return(0xf)
45 }
46 }
47