target: msm8996: Enable HW crypto
Update 8996 crypto to use HW crypto and update the apps EE (execution env)
to 0.
Change-Id: I25d08f73fc245e0e88176fac9fa4fabc6bbc4c6c
diff --git a/target/msm8996/init.c b/target/msm8996/init.c
index e9e8eea..e413b8c 100644
--- a/target/msm8996/init.c
+++ b/target/msm8996/init.c
@@ -63,7 +63,7 @@
#endif
#define CE_INSTANCE 1
-#define CE_EE 1
+#define CE_EE 0
#define CE_FIFO_SIZE 64
#define CE_READ_PIPE 3
#define CE_WRITE_PIPE 2
@@ -155,6 +155,13 @@
pm_appsbl_set_dcin_suspend(1);
#endif
+
+ if (crypto_initialized())
+ {
+ crypto_eng_cleanup();
+ clock_ce_disable(CE_INSTANCE);
+ }
+
/* Tear down glink channels */
rpm_glink_uninit();
@@ -441,7 +448,7 @@
crypto_engine_type board_ce_type(void)
{
- return CRYPTO_ENGINE_TYPE_SW;
+ return CRYPTO_ENGINE_TYPE_HW;
}
/* Set up params for h/w CE. */