]> git.proxmox.com Git - mirror_edk2.git/blob - QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/AD7298.asi
ea59fb08609ab534e70f02caa5f15911ff9d971e
[mirror_edk2.git] / QuarkPlatformPkg / Acpi / AcpiTables / Dsdt / AD7298.asi
1 /** @file
2 Analog devices AD7298 ADC.
3
4 Copyright (c) 2013-2015 Intel Corporation.
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 Device(ADC1)
11 {
12 Name(_HID, "INT3494") // Galileo Version 1 Low-Speed ADC.
13 Name(_CID, "INT3494")
14 Name(RBUF, ResourceTemplate()
15 {
16 // SPI0: mode 2, 4Mhz, 16-bit data length
17 SpiSerialBus (0x0000, PolarityLow, FourWireMode, 16, ControllerInitiated, 4000000, ClockPolarityHigh, ClockPhaseFirst, "\\_SB_.PCI0.SPI0",0x00, ResourceConsumer, ,)
18
19 // GPIO<0> is SPI0_CS_N
20 GpioIO(Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.PCI0.GIP0.GPO_", 0, ResourceConsumer, , ) {QUARK_GPIO0_MAPPING}
21 })
22 Method(_CRS, 0x0, NotSerialized)
23 {
24 Return(RBUF)
25 }
26 Method(_STA, 0x0, NotSerialized)
27 {
28 //
29 // Only Galileo platform has this device.
30 // EFI_PLATFORM_TYPE enum value Galileo = 6.
31 //
32 If(LNotEqual(PTYP, 6))
33 {
34 return (0)
35 }
36 Return(0xf)
37 }
38 }