+++ /dev/null
-/** @file\r
-NXP PCAL9555A i2c-accessible I/O expander.\r
-\r
-Copyright (c) 2013-2015 Intel Corporation.\r
-\r
-SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-Device(NIO1)\r
-{\r
- Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander.\r
- Name(_CID, "INT3491")\r
- Name(_UID, 1)\r
-\r
- Name(RBUF, ResourceTemplate()\r
- {\r
- I2CSerialBus(0x25, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )\r
- })\r
- Method(_CRS, 0x0, NotSerialized)\r
- {\r
- Return(RBUF)\r
- }\r
- Method(_STA, 0x0, NotSerialized)\r
- {\r
- //\r
- // Only Platform Type / Id 8 has this device.\r
- //\r
- If(LNotEqual(PTYP, 8))\r
- {\r
- return (0)\r
- }\r
- Return(0xf)\r
- }\r
-}\r
-\r
-Device(NIO2)\r
-{\r
- Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander.\r
- Name(_CID, "INT3491")\r
- Name(_UID, 2)\r
-\r
- Name(RBUF, ResourceTemplate()\r
- {\r
- I2CSerialBus(0x26, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )\r
- })\r
- Method(_CRS, 0x0, NotSerialized)\r
- {\r
- Return(RBUF)\r
- }\r
- Method(_STA, 0x0, NotSerialized)\r
- {\r
- //\r
- // Only Platform Type / Id 8 has this device.\r
- //\r
- If(LNotEqual(PTYP, 8))\r
- {\r
- return (0)\r
- }\r
- Return(0xf)\r
- }\r
-}\r
-\r
-Device(NIO3)\r
-{\r
- Name(_HID, "INT3491") // NXP PCAL9555A i2c-accessible I/O expander.\r
- Name(_CID, "INT3491")\r
- Name(_UID, 3)\r
-\r
- Name(RBUF, ResourceTemplate()\r
- {\r
- I2CSerialBus(0x27, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )\r
- GpioInt (Level, ActiveLow, Exclusive, PullDefault, , "\\_SB.PCI0.GIP0.GPO", 0, ResourceConsumer, , ) {QUARK_GPIO1_MAPPING} /* GPIO<1> is EXP2_INT */\r
- })\r
- Method(_CRS, 0x0, NotSerialized)\r
- {\r
- Return(RBUF)\r
- }\r
- Method(_STA, 0x0, NotSerialized)\r
- {\r
- //\r
- // Only Platform Type / Id 8 has this device.\r
- //\r
- If(LNotEqual(PTYP, 8))\r
- {\r
- return (0)\r
- }\r
- Return(0xf)\r
- }\r
-}\r