[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200831073101.3608-4-m.cerveny@computer.org>
Date: Mon, 31 Aug 2020 09:31:01 +0200
From: Martin Cerveny <m.cerveny@...puter.org>
To: Corentin Labbe <clabbe.montjoie@...il.com>
Cc: Martin Cerveny <m.cerveny@...puter.org>,
Chen-Yu Tsai <wens@...e.org>,
"David S. Miller" <davem@...emloft.net>,
devicetree@...r.kernel.org,
Herbert Xu <herbert@...dor.apana.org.au>,
linux-arm-kernel@...ts.infradead.org, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org, Maxime Ripard <mripard@...nel.org>,
Rob Herring <robh+dt@...nel.org>
Subject: [PATCH v2 3/3] crypto: sun4i-ss - add the V3s variant of SS
Like A33 "sun4i-ss" has a difference, it give SHA1 digest
directly in BE. So add new compatible.
Tested-by: Martin Cerveny <m.cerveny@...puter.org>
Signed-off-by: Martin Cerveny <m.cerveny@...puter.org>
---
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c
index a2b67f7f8..d24496cac 100644
--- a/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c
+++ b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c
@@ -31,6 +31,10 @@ static const struct ss_variant ss_a33_variant = {
.sha1_in_be = true,
};
+static const struct ss_variant ss_v3s_variant = {
+ .sha1_in_be = true,
+};
+
static struct sun4i_ss_alg_template ss_algs[] = {
{ .type = CRYPTO_ALG_TYPE_AHASH,
.mode = SS_OP_MD5,
@@ -505,6 +509,9 @@ static const struct of_device_id a20ss_crypto_of_match_table[] = {
{ .compatible = "allwinner,sun8i-a33-crypto",
.data = &ss_a33_variant
},
+ { .compatible = "allwinner,sun8i-v3s-crypto",
+ .data = &ss_v3s_variant
+ },
{}
};
MODULE_DEVICE_TABLE(of, a20ss_crypto_of_match_table);
--
2.17.1
Powered by blists - more mailing lists