On Windows IoT Core devices with ARM TrustZone capabilities,
EDK2 runs in normal world and we use OP-TEE to execute
secure world operations. The overall package will contain
client-side support to invoke EDK2 services implemented as
OP-TEE trusted applications that run in secure world.

This commit adds the initial dec file to add some PCD settings
needed by other packages.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Christopher Co <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Leif Lindholm <[email protected]>
Cc: Michael D Kinney <[email protected]>
---
 Platform/Microsoft/OpteeClientPkg/OpteeClientPkg.dec | 49 ++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/Platform/Microsoft/OpteeClientPkg/OpteeClientPkg.dec 
b/Platform/Microsoft/OpteeClientPkg/OpteeClientPkg.dec
new file mode 100644
index 000000000000..4752eab39ce3
--- /dev/null
+++ b/Platform/Microsoft/OpteeClientPkg/OpteeClientPkg.dec
@@ -0,0 +1,49 @@
+## @file
+#
+#  OP-TEE client package
+#
+#  OP-TEE client package contains the client-side interface to invoke OP-TEE 
TAs.
+#  Certain EDKII services are implemented in Trusted Applications running in
+#  the secure world OP-TEE OS.
+#
+#  Copyright (c) 2018 Microsoft Corporation. All rights reserved.
+#
+#  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.
+#
+##
+
+[Defines]
+  DEC_SPECIFICATION              = 0x0001001A
+  PACKAGE_NAME                   = OpteeClientPkg
+  PACKAGE_GUID                   = 77416fcb-10ec-4693-bdc0-1bdd74ec9595
+  PACKAGE_VERSION                = 0.01
+
+[Includes]
+
+[LibraryClasses]
+
+[Guids]
+  gOpteeClientPkgTokenSpaceGuid   = { 0x04ad34ca, 0xdd25, 0x4156, { 0x90, 
0xf5, 0x16, 0xf9, 0x40, 0xd0, 0x49, 0xe3 }}
+
+[PcdsFixedAtBuild]
+  gOpteeClientPkgTokenSpaceGuid.PcdTpm2AcpiBufferBase|0|UINT64|0x00000005
+  gOpteeClientPkgTokenSpaceGuid.PcdTpm2AcpiBufferSize|0|UINT32|0x00000006
+
+  ## The base address of the Trust Zone OpTEE OS private memory region
+  # This memory is manager privately by the OpTEE OS.
+  
gOpteeClientPkgTokenSpaceGuid.PcdTrustZonePrivateMemoryBase|0xDEAD1|UINT64|0x00000001
+
+  ## The size of the Trust Zone OpTEE OS private memory region
+  
gOpteeClientPkgTokenSpaceGuid.PcdTrustZonePrivateMemorySize|55|UINT64|0x00000002
+
+  ## The base address of the Trust Zone OpTEE OS shared memory region
+  
gOpteeClientPkgTokenSpaceGuid.PcdTrustZoneSharedMemoryBase|0xDEAD2|UINT64|0x00000003
+
+  ## The size of the Trust Zone OpTEE OS shared memory region
+  
gOpteeClientPkgTokenSpaceGuid.PcdTrustZoneSharedMemorySize|0xAA|UINT64|0x00000004
-- 
2.16.2.gvfs.1.33.gf5370f1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to