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