M2351: Fix CRYPTO_MODBASE() when crypto module is configured to secure

This bug results from BSP update:

-   CRPT: Base address of secure or non-secure crypto module, dependent on partition
-   CRPT_S: Base address of secure crypto module
-   CRPT_NS: Base address of non-secured crypto module
pull/12424/head
Chun-Chieh Li 2020-02-13 09:41:44 +08:00
parent 834e1aad60
commit 9f9ca0acaa
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ __STATIC_INLINE CRPT_T *CRYPTO_MODBASE(void)
#if defined(SCU_INIT_PNSSET1_VAL) && (SCU_INIT_PNSSET1_VAL & (1<<18))
return CRPT_NS;
#else
return CRPT;
return CRPT_S;
#endif
}