]> git.proxmox.com Git - mirror_edk2.git/blob - QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/PCAL9555A.asi
QuarkPlatformPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / QuarkPlatformPkg / Acpi / AcpiTables / Dsdt / PCAL9555A.asi
1 /** @file
2 NXP PCAL9555A i2c-accessible I/O expander.
3
4 Copyright (c) 2013-2015 Intel Corporation.
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 Device(NIO1)
11 {
12 Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander.
13 Name(_CID, "INT3491")
14 Name(_UID, 1)
15
16 Name(RBUF, ResourceTemplate()
17 {
18 I2CSerialBus(0x25, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )
19 })
20 Method(_CRS, 0x0, NotSerialized)
21 {
22 Return(RBUF)
23 }
24 Method(_STA, 0x0, NotSerialized)
25 {
26 //
27 // Only Platform Type / Id 8 has this device.
28 //
29 If(LNotEqual(PTYP, 8))
30 {
31 return (0)
32 }
33 Return(0xf)
34 }
35 }
36
37 Device(NIO2)
38 {
39 Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander.
40 Name(_CID, "INT3491")
41 Name(_UID, 2)
42
43 Name(RBUF, ResourceTemplate()
44 {
45 I2CSerialBus(0x26, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )
46 })
47 Method(_CRS, 0x0, NotSerialized)
48 {
49 Return(RBUF)
50 }
51 Method(_STA, 0x0, NotSerialized)
52 {
53 //
54 // Only Platform Type / Id 8 has this device.
55 //
56 If(LNotEqual(PTYP, 8))
57 {
58 return (0)
59 }
60 Return(0xf)
61 }
62 }
63
64 Device(NIO3)
65 {
66 Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander.
67 Name(_CID, "INT3491")
68 Name(_UID, 3)
69
70 Name(RBUF, ResourceTemplate()
71 {
72 I2CSerialBus(0x27, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )
73 GpioInt (Level, ActiveLow, Exclusive, PullDefault, , "\\_SB.PCI0.GIP0.GPO", 0, ResourceConsumer, , ) {QUARK_GPIO1_MAPPING} /* GPIO<1> is EXP2_INT */
74 })
75 Method(_CRS, 0x0, NotSerialized)
76 {
77 Return(RBUF)
78 }
79 Method(_STA, 0x0, NotSerialized)
80 {
81 //
82 // Only Platform Type / Id 8 has this device.
83 //
84 If(LNotEqual(PTYP, 8))
85 {
86 return (0)
87 }
88 Return(0xf)
89 }
90 }