crypto: rockchip: add crypto v4 support

Change-Id: Id214c160efef0ba5bbf4c5a6cdbeeb04ef8cd138
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
This commit is contained in:
Lin Jinhan
2022-11-04 09:58:13 +08:00
parent 42c7305fbc
commit fa61a34f45
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ config CRYPTO_DEV_ROCKCHIP_V2
default y if CPU_RV1126 || CPU_RK1808 || CPU_RK3308 || CPU_PX30 || CPU_RK3568 || CPU_RK3588
config CRYPTO_DEV_ROCKCHIP_V3
bool "crypto v3 for RV1106"
default y if CPU_RV1106
bool "crypto v3/v4 for RV1106/RK3528"
default y if CPU_RV1106 || CPU_RK3528
endif
+6
View File
@@ -663,6 +663,12 @@ static const struct rk_crypto_soc_data rk3288_soc_data =
static const struct of_device_id crypto_of_id_table[] = {
#if IS_ENABLED(CONFIG_CRYPTO_DEV_ROCKCHIP_V3)
/* crypto v4 in belows same with crypto-v3*/
{
.compatible = "rockchip,crypto-v4",
.data = (void *)&cryto_v3_soc_data,
},
/* crypto v3 in belows */
{
.compatible = "rockchip,crypto-v3",