[PATCH v3 22/26] crypto: rockchip: add support for rk3328

Corentin Labbe
2022-03-21T20:09:28Z

Add compatible and variant for rk3328.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
drivers/crypto/rockchip/rk3288_crypto.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/drivers/crypto/rockchip/rk3288_crypto.c b/drivers/crypto/rockchip/rk3288_crypto.c
index 5f1422094a7f..bb1adbe947f9 100644
--- a/drivers/crypto/rockchip/rk3288_crypto.c
+++ b/drivers/crypto/rockchip/rk3288_crypto.c
@@ -19,6 +19,10 @@
#include <linux/crypto.h>
#include <linux/reset.h>

+static const struct rk_variant rk3328_variant = {
+ .num_instance = 1,
+};
+
static const struct rk_variant rk3288_variant = {
.num_instance = 1
};
@@ -215,6 +219,9 @@ static const struct of_device_id crypto_of_id_table[] = {
{ .compatible = "rockchip,rk3288-crypto",
.data = &rk3288_variant,
},
+ { .compatible = "rockchip,rk3328-crypto",
+ .data = &rk3328_variant,
+ },
{ .compatible = "rockchip,rk3399-crypto",
.data = &rk3399_variant,
},
--
2.34.1