1 /** @file 2 NXP PCAL9555A i2c-accessible I/O expander. 3 4 Copyright (c) 2013-2015 Intel Corporation. 5 6 This program and the accompanying materials 7 are licensed and made available under the terms and conditions of the BSD License 8 which accompanies this distribution. The full text of the license may be found at 9 http://opensource.org/licenses/bsd-license.php 10 11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 13 14 **/ 15 16 Device(NIO1) 17 { 18 Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander. 19 Name(_CID, "INT3491") 20 Name(_UID, 1) 21 22 Name(RBUF, ResourceTemplate() 23 { 24 I2CSerialBus(0x25, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , ) 25 }) 26 Method(_CRS, 0x0, NotSerialized) 27 { 28 Return(RBUF) 29 } 30 Method(_STA, 0x0, NotSerialized) 31 { 32 // 33 // Only Platform Type / Id 8 has this device. 34 // 35 If(LNotEqual(PTYP, 8)) 36 { 37 return (0) 38 } 39 Return(0xf) 40 } 41 } 42 43 Device(NIO2) 44 { 45 Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander. 46 Name(_CID, "INT3491") 47 Name(_UID, 2) 48 49 Name(RBUF, ResourceTemplate() 50 { 51 I2CSerialBus(0x26, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , ) 52 }) 53 Method(_CRS, 0x0, NotSerialized) 54 { 55 Return(RBUF) 56 } 57 Method(_STA, 0x0, NotSerialized) 58 { 59 // 60 // Only Platform Type / Id 8 has this device. 61 // 62 If(LNotEqual(PTYP, 8)) 63 { 64 return (0) 65 } 66 Return(0xf) 67 } 68 } 69 70 Device(NIO3) 71 { 72 Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander. 73 Name(_CID, "INT3491") 74 Name(_UID, 3) 75 76 Name(RBUF, ResourceTemplate() 77 { 78 I2CSerialBus(0x27, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , ) 79 GpioInt (Level, ActiveLow, Exclusive, PullDefault, , "\\_SB.PCI0.GIP0.GPO", 0, ResourceConsumer, , ) {QUARK_GPIO1_MAPPING} /* GPIO<1> is EXP2_INT */ 80 }) 81 Method(_CRS, 0x0, NotSerialized) 82 { 83 Return(RBUF) 84 } 85 Method(_STA, 0x0, NotSerialized) 86 { 87 // 88 // Only Platform Type / Id 8 has this device. 89 // 90 If(LNotEqual(PTYP, 8)) 91 { 92 return (0) 93 } 94 Return(0xf) 95 } 96 } 97