diff --git a/core/drivers/crypto/caam/caam_ctrl.c b/core/drivers/crypto/caam/caam_ctrl.c index b72508fca59..02aebdf01d7 100644 --- a/core/drivers/crypto/caam/caam_ctrl.c +++ b/core/drivers/crypto/caam/caam_ctrl.c @@ -4,6 +4,7 @@ * * Brief CAAM Global Controller. */ +#include #include #include #include @@ -21,6 +22,14 @@ #include #include +/* + * If the CAAM DMA only supports 32 bits physical addresses, OPTEE must + * be located within the 32 bits address space. + */ +#ifndef CFG_CAAM_64BIT +static_assert((CFG_TZDRAM_START + CFG_TZDRAM_SIZE) < UINT32_MAX); +#endif + /* Crypto driver initialization */ static TEE_Result crypto_driver_init(void) {