audk/QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/AD7298.asi

45 lines
1.4 KiB
Plaintext

/** @file
Analog devices AD7298 ADC.
Copyright (c) 2013-2015 Intel Corporation.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
Device(ADC1)
{
Name(_HID, "INT3494") // Galileo Version 1 Low-Speed ADC.
Name(_CID, "INT3494")
Name(RBUF, ResourceTemplate()
{
// SPI0: mode 2, 4Mhz, 16-bit data length
SpiSerialBus (0x0000, PolarityLow, FourWireMode, 16, ControllerInitiated, 4000000, ClockPolarityHigh, ClockPhaseFirst, "\\_SB_.PCI0.SPI0",0x00, ResourceConsumer, ,)
// GPIO<0> is SPI0_CS_N
GpioIO(Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.PCI0.GIP0.GPO_", 0, ResourceConsumer, , ) {QUARK_GPIO0_MAPPING}
})
Method(_CRS, 0x0, NotSerialized)
{
Return(RBUF)
}
Method(_STA, 0x0, NotSerialized)
{
//
// Only Galileo platform has this device.
// EFI_PLATFORM_TYPE enum value Galileo = 6.
//
If(LNotEqual(PTYP, 6))
{
return (0)
}
Return(0xf)
}
}