summaryrefslogtreecommitdiff
path: root/ChvRefCodePkg/CherryViewSoc/SouthCluster/Include/Library/SpiHostPlatform.h
diff options
context:
space:
mode:
Diffstat (limited to 'ChvRefCodePkg/CherryViewSoc/SouthCluster/Include/Library/SpiHostPlatform.h')
-rw-r--r--ChvRefCodePkg/CherryViewSoc/SouthCluster/Include/Library/SpiHostPlatform.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/ChvRefCodePkg/CherryViewSoc/SouthCluster/Include/Library/SpiHostPlatform.h b/ChvRefCodePkg/CherryViewSoc/SouthCluster/Include/Library/SpiHostPlatform.h
new file mode 100644
index 0000000000..4067edf138
--- /dev/null
+++ b/ChvRefCodePkg/CherryViewSoc/SouthCluster/Include/Library/SpiHostPlatform.h
@@ -0,0 +1,33 @@
+/** @file
+ Declare the platform requirements for the SPI controller
+
+ Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
+
+ 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.
+
+**/
+
+#ifndef _SPI_PORT_H
+#define _SPI_PORT_H
+
+//------------------------------------------------------------------------------
+// Types
+//------------------------------------------------------------------------------
+
+//
+// Context passed from platform (board) layer to the SPI port driver.
+//
+typedef struct {
+ EFI_PHYSICAL_ADDRESS BaseAddress;
+ UINT32 InputFrequencyHertz;
+} SPI_PLATFORM_CONTEXT;
+
+//------------------------------------------------------------------------------
+
+#endif // _SPI_PORT_H