mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
![Ye Li](/assets/img/avatar_default.png)
Previous patch "MLK-18044-4: crypto: caam: Fix pointer size to 32bit for i.MX8M" breaks the 64 bits CAAM. Since i.MX CAAM are all 32 bits no matter the ARM arch (32 or 64), to adapt and not break 64 bits CAAM support, add a new config CONFIG_CAAM_64BIT and new relevant type "caam_dma_addr_t". This config is default enabled when CONFIG_PHYS_64BIT is set except for iMX8M. Signed-off-by: Ye Li <ye.li@nxp.com> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
17 lines
245 B
C
17 lines
245 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2020 NXP
|
|
*
|
|
*/
|
|
|
|
#ifndef CRYPTO_FSL_TYPE_H
|
|
#define CRYPTO_FSL_TYPE_H
|
|
|
|
#ifdef CONFIG_CAAM_64BIT
|
|
typedef unsigned long long caam_dma_addr_t;
|
|
#else
|
|
typedef u32 caam_dma_addr_t;
|
|
#endif
|
|
|
|
#endif
|