target: msm8996: Initialize RPMB before loading secapp

The secure app needs rpmb access and in some cases there is a possibility
that the access may fail if rpmb is not initalized before loading the
secure app

Change-Id: I62feb1ab3ce4bd3423721286afd557623afad02e
diff --git a/target/msm8996/init.c b/target/msm8996/init.c
index f55b71c..1965859 100644
--- a/target/msm8996/init.c
+++ b/target/msm8996/init.c
@@ -323,6 +323,12 @@
 		ASSERT(0);
 	}
 
+	if (rpmb_init() < 0)
+	{
+		dprintf(CRITICAL, "RPMB init failed\n");
+		ASSERT(0);
+	}
+
 	/*
 	 * Load the sec app for first time
 	 */
@@ -331,12 +337,6 @@
 		dprintf(CRITICAL, "Failed to load App for verified\n");
 		ASSERT(0);
 	}
-
-	if (rpmb_init() < 0)
-	{
-		dprintf(CRITICAL, "RPMB init failed\n");
-		ASSERT(0);
-	}
 }
 
 unsigned board_machtype(void)