CAT24C08.asi 736 B

12345678910111213141516171819202122232425262728293031323334
  1. /** @file
  2. ONSEMI CAT24C08 I2C 8KB EEPROM.
  3. Copyright (c) 2013-2015 Intel Corporation.
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. Device(EEP2)
  7. {
  8. Name(_HID, "INT3499") // ONSEMI CAT24C08 I2C 8KB EEPROM.
  9. Name(_CID, "INT3499")
  10. Name(RBUF, ResourceTemplate()
  11. {
  12. I2CSerialBus(0x54, ControllerInitiated, 400000, AddressingMode7Bit, "\\_SB.PCI0.GIP0.I2C_", 0, ResourceConsumer, , )
  13. })
  14. Method(_CRS, 0x0, NotSerialized)
  15. {
  16. Return(RBUF)
  17. }
  18. Method(_STA, 0x0, NotSerialized)
  19. {
  20. //
  21. // Only Platform Type / Id 8 has this device.
  22. //
  23. If(LNotEqual(PTYP, 8))
  24. {
  25. return (0)
  26. }
  27. Return(0xf)
  28. }
  29. }