diff options
author | Rytkonen, Teemu S <teemu.s.rytkonen@intel.com> | 2017-11-15 01:16:05 +0800 |
---|---|---|
committer | zwei4 <david.wei@intel.com> | 2017-11-15 13:12:47 +0800 |
commit | fb26da182091a7fd547af208363314b8e21464fc (patch) | |
tree | b9a2a8d64b5f0f1d6ca8ea04433ba8f441c79464 /Platform/BroxtonPlatformPkg/Common | |
parent | ea234bbec77b843748f08e490ddb70fe2787281c (diff) | |
download | edk2-platforms-fb26da182091a7fd547af208363314b8e21464fc.tar.xz |
BensonGlacier: Enable generic SPI device
-Enable generic SPI device for BensonGlacier config to be
used with SenseHat board.
-Enable GPIO config to enable SenseHat board programming
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Teemu Rytkonen <teemu.s.rytkonen@intel.com>
Diffstat (limited to 'Platform/BroxtonPlatformPkg/Common')
-rw-r--r-- | Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/PlatformSsdt/PlatformSsdt.asl | 2 | ||||
-rw-r--r-- | Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/PlatformSsdt/Sensors/GenericSpi3.asl | 38 |
2 files changed, 40 insertions, 0 deletions
diff --git a/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/PlatformSsdt/PlatformSsdt.asl b/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/PlatformSsdt/PlatformSsdt.asl index a967a84073..9cd50ae7f4 100644 --- a/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/PlatformSsdt/PlatformSsdt.asl +++ b/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/PlatformSsdt/PlatformSsdt.asl @@ -31,6 +31,7 @@ DefinitionBlock ( External(\_SB.PCI0.URT2, DeviceObj)
External(\_SB.PCI0.SDIO, DeviceObj)
External(\_SB.PCI0.SPI1, DeviceObj)
+ External(\_SB.PCI0.SPI3, DeviceObj)
External(\_SB.GPO0.CWLE, IntObj)
External(\_SB.GPO0.AVBL, IntObj)
External(\_SB.PCI0.SDIO.PSTS, IntObj)
@@ -68,5 +69,6 @@ DefinitionBlock ( include ("Fingerprint/Fingerprint_FPC.asl")
include ("SueCreek/SueCreek.asl")
+ include ("Sensors/GenericSpi3.asl")
}
diff --git a/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/PlatformSsdt/Sensors/GenericSpi3.asl b/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/PlatformSsdt/Sensors/GenericSpi3.asl new file mode 100644 index 0000000000..830765bf39 --- /dev/null +++ b/Platform/BroxtonPlatformPkg/Common/Acpi/AcpiTablesPCAT/PlatformSsdt/Sensors/GenericSpi3.asl @@ -0,0 +1,38 @@ +/** @file
+
+Copyright (c) 2017 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.
+
+**/
+
+Scope (\_SB.PCI0.SPI3) {
+ Device (TP0) {
+ Name (_HID, "SPT0001")
+ Name (_DDN, "Sensor - SPI3, CS0")
+ Name (_CRS, ResourceTemplate () {
+ SpiSerialBus (
+ 0, // Chip select (0, 1, 2)
+ PolarityLow, // Chip select is active low
+ FourWireMode, // Full duplex
+ 8, // Bits per word is 8 (byte)
+ ControllerInitiated, // Don't care
+ 1000000, // 1 MHz
+ ClockPolarityLow, // SPI mode 0
+ ClockPhaseFirst, // SPI mode 0
+ "\\_SB.PCI0.SPI3", // SPI host controller
+ 0 // Must be 0
+ )
+ })
+ Method (_STA, 0x0, NotSerialized) {
+ Return (0xF)
+ }
+ }
+}
+
|