copper: Add function to enable secure mode
MDSS need secure mode to access VBIF related registers.
Change-Id: I1d11a8bfc5d2f4aaddad242bba17f1c55208ed74
diff --git a/platform/msm_shared/include/scm.h b/platform/msm_shared/include/scm.h
index 2b7903c..418574b 100644
--- a/platform/msm_shared/include/scm.h
+++ b/platform/msm_shared/include/scm.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -9,7 +9,7 @@
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
- * * Neither the name of Code Aurora Forum, Inc. nor the names of its
+ * * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -57,10 +57,20 @@
uint32 *img_len_ptr;
} img_req;
+typedef struct {
+ uint32 id;
+ uint32 spare;
+} tz_secure_cfg;
+
#define SCM_SVC_SSD 7
#define SSD_DECRYPT_ID 0x01
#define SSD_ENCRYPT_ID 0x02
+#define SCM_SVC_SSD 0x0C
+#define IOMMU_SECURE_CFG 0x02
+
+#define SECURE_DEVICE_MDSS 1
+
static uint32 smc(uint32 cmd_addr);
int decrypt_scm(uint32_t ** img_ptr, uint32_t * img_len_ptr);