1/** @file
2NXP PCA9685 i2c-accessible PWM/LED controller.
3
4Copyright (c) 2013-2015 Intel Corporation.
5
6This program and the accompanying materials
7are licensed and made available under the terms and conditions of the BSD License
8which accompanies this distribution.  The full text of the license may be found at
9http://opensource.org/licenses/bsd-license.php
10
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14**/
15
16Device(PWM1)
17{
18    Name(_HID, "INT3492") // NXP PCA9685 i2c-accessible PWM/LED controller.
19    Name(_CID, "INT3492")
20
21    Name(RBUF, ResourceTemplate()
22    {
23        I2CSerialBus(0x47, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )
24    })
25    Method(_CRS, 0x0, NotSerialized)
26    {
27        Return(RBUF)
28    }
29    Method(_STA, 0x0, NotSerialized)
30    {
31        //
32        // Only Platform Type / Id 8 has this device.
33        //
34        If(LNotEqual(PTYP, 8))
35        {
36          return (0)
37        }
38        Return(0xf)
39    }
40}
41