ADC108S102.asi 766 B

123456789101112131415161718192021222324252627282930313233
  1. /** @file
  2. TI ADC108S102 ADC.
  3. Copyright (c) 2013-2015 Intel Corporation.
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. Device(ADC2)
  7. {
  8. Name(_HID, "INT3495") // GalileoGen2 Low-Speed ADC.
  9. Name(_CID, "INT3495")
  10. Name(RBUF, ResourceTemplate()
  11. {
  12. SPISerialBus(0x0000, PolarityLow, ThreeWireMode, 0x10, ControllerInitiated, 0x1E8480, ClockPolarityLow, ClockPhaseFirst, "\\_SB.PCI0.SPI0", 0x00, 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. }