Platform: Get device lifecycle from CC312 on Musca-B1

CryptoCell lifecycle includes:
 - CM: Chip manufacture lifecycle, belongs to IC vendor
 - DM: Device manufacture lifecycle, belongs to OEM
 - SE: Secure enable lifecycle, belongs to end user
 - RMA: Return to manufacture and analyze, belongs to ICV or OEM debug

Mapping PSA lifecycle to CryptoCell lifecycle:
 - TFM_SLC_ASSEMBLY_AND_TEST    – CM
 - TFM_SLC_PSA_ROT_PROVISIONING - DM
 - TFM_SLC_SECURED              – SE
 - TFM_SLC_DECOMMISSIONED       – RMA

If the chip is not yet provisioned, it is CM lifecycle.

Change-Id: I7d39c7f0d5b09be7a669a1970fcafc669763ebfb
Signed-off-by: Xu Yong <yong.xu@arm.com>
Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/platform/ext/common/cc312/cc312.c b/platform/ext/common/cc312/cc312.c
index 7dc8556..a5c417d 100644
--- a/platform/ext/common/cc312/cc312.c
+++ b/platform/ext/common/cc312/cc312.c
@@ -13,6 +13,7 @@
 #include "mbedtls/platform.h"
 #include "mbedtls/ctr_drbg.h"
 #include "mbedtls/entropy.h"
+#include "mbedtls_cc_mng_int.h"
 #include "arm_cmse.h"
 
 CCRndContext_t*           CC312_pRndCtx         = NULL;
@@ -96,3 +97,8 @@
 
     return 0;
 }
+
+int crypto_hw_accelerator_get_lcs(uint32_t *lcs)
+{
+    return mbedtls_mng_lcsGet(lcs);
+}