]> git.proxmox.com Git - mirror_edk2.git/blame - QuarkPlatformPkg/Acpi/AcpiTables/Dsdt/AD7298.asi
QuarkPlatformPkg: Add new package for Galileo boards
[mirror_edk2.git] / QuarkPlatformPkg / Acpi / AcpiTables / Dsdt / AD7298.asi
CommitLineData
b303605e
MK
1/** @file\r
2Analog devices AD7298 ADC.\r
3\r
4Copyright (c) 2013-2015 Intel Corporation.\r
5\r
6This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16Device(ADC1)\r
17{\r
18 Name(_HID, "INT3494") // Galileo Version 1 Low-Speed ADC.\r
19 Name(_CID, "INT3494")\r
20 Name(RBUF, ResourceTemplate()\r
21 {\r
22 // SPI0: mode 2, 4Mhz, 16-bit data length\r
23 SpiSerialBus (0x0000, PolarityLow, FourWireMode, 16, ControllerInitiated, 4000000, ClockPolarityHigh, ClockPhaseFirst, "\\_SB_.PCI0.SPI0",0x00, ResourceConsumer, ,)\r
24\r
25 // GPIO<0> is SPI0_CS_N\r
26 GpioIO(Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.PCI0.GIP0.GPO_", 0, ResourceConsumer, , ) {QUARK_GPIO0_MAPPING}\r
27 })\r
28 Method(_CRS, 0x0, NotSerialized)\r
29 {\r
30 Return(RBUF)\r
31 }\r
32 Method(_STA, 0x0, NotSerialized)\r
33 {\r
34 //\r
35 // Only Galileo platform has this device.\r
36 // EFI_PLATFORM_TYPE enum value Galileo = 6.\r
37 //\r
38 If(LNotEqual(PTYP, 6))\r
39 {\r
40 return (0)\r
41 }\r
42 Return(0xf)\r
43 }\r
44}\r