drivers/stm32_hash: register resources as secure or not

Register in the shared resources driver the secure or non-secure state
of the HASH instances. Note that only BL32 needs to register the
shared peripheral because BL2 does not embed the shared resources
driver.

Change-Id: I7f78fa8e47da71d48ef8b1dfe4d6f040fe918d8b
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
This commit is contained in:
Etienne Carriere 2019-12-02 10:13:12 +01:00
parent 66de6f3c30
commit 3d0d0a1b4c
1 changed files with 2 additions and 0 deletions

View File

@ -300,7 +300,9 @@ int stm32_hash_register(void)
break;
}
#else
/* BL32 uses hash if it is assigned only to secure world */
if (hash_info.status == DT_SECURE) {
stm32mp_register_secure_periph_iomem(hash_info.base);
break;
}
#endif