part-enc: derive key from bl31 when mrk is ACRK [1/1]

PD#SWPL-173265

Problem:
1. When mrk is ACRK, key should be derived in TEE

Solution:
1. Derive key in bl31 when mrk is ACRK

Verify:
s1a + bg209

Change-Id: Iba7e5328be1ab4484746b89e2125332a115ef7bd
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
diff --git a/include/amlogic/partition_encryption.h b/include/amlogic/partition_encryption.h
index 54160eb..f3f132d 100644
--- a/include/amlogic/partition_encryption.h
+++ b/include/amlogic/partition_encryption.h
@@ -6,6 +6,29 @@
 #ifndef __PARTITION_ENCRYPTION_H__
 #define __PARTITION_ENCRYPTION_H__
 
+#if 1
+//typedef u32 mkl_ek128_t[4];
+typedef struct {
+	s32 kte;
+#if 0
+	s32 mrk;
+	s32 func_id;
+	u32 flag;
+	s32 userid;
+	u32 usage;
+	u32 mode;
+	u32 stage;
+	u32 level;
+	u32 tee_priv;
+	u32 tee_sep;
+	mkl_ek128_t ek3[4];
+	mkl_ek128_t ek2[4];
+	mkl_ek128_t ek1[4];
+	s32 depth;
+#endif
+} partition_enc_kl_derive_params;
+#endif
+
 typedef enum {
     ENCRYPT = 0,
     DECRYPT = 1
@@ -15,7 +38,7 @@
         u8 *out, u64 out_sz,
         u64 off);
 
-int32_t find_enc_parts(const char* part_name);
+s32 find_enc_parts(const char *part_name);
 
 #endif//#ifndef __PARTITION_ENCRYPTION_H__