Message ID | 20240110201216.18016-16-avromanov@salutedevices.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-22707-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1031725dyi; Wed, 10 Jan 2024 12:16:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzech4NSM2B2s2NUA8iDSxxmBwtVucrVd/cfSH7Akxc1vxpVyG1mfMOqnWLZfSnnYn0xMF X-Received: by 2002:a05:6870:8a23:b0:206:233:9234 with SMTP id p35-20020a0568708a2300b0020602339234mr144917oaq.15.1704917782255; Wed, 10 Jan 2024 12:16:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704917782; cv=none; d=google.com; s=arc-20160816; b=KnlykuvVYmOaQz78M+UytT2iymtkug2B+OTxDBwmGykrvYWwc+nrWMpsAhVoC7yvuO vuKKwzjnEs2ExbmOnwEIrguyLfaYBO5j/poMfchatMOecQxRrUTRpRFCRbtWuMAQ8/gW D00kFF4KTANriCZci21NKjlUUobzAYGgQEDH/RkYEnJE5AB4wNob/ixbbc0s9ZEp2L8T 7KM6afkApOXPOkmWLGXAz0gCXlKaVVD3OxrHZ/QqL/MK1+8hbcTiTx6h3GZ0udC+3Fv8 GkH+BlL/adOzNretVchXRgMdJUbtqILgzPa5Qq5+4zg+Z83Uf7cC6HWgxjRVuspNfg0+ IZwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=xnjsSj/NHZIQN4Q5gliPOaWFNM1HTjQ9jLhAT3UYi2Q=; fh=0p1Kpk55kVc6lC+al+CDnSnq4czU1u1X+MgcW9lnQNo=; b=smALISoQMxR66sy5Mm/A2pZWVL0x+A4vAYEfwpc1noKiZF6n+ypoh2H4sEASX6W+kY /BBJ2+vA6bt3+0hskqMxw7+nh1XxjQiHEW3sXrY/gDFvDbFvVOT4KiZM4RKfBIhf9IGA UeuDiNjt8OP7tC1LMcEnrLJ45dQvHAyGIp2v2jyAAWi/YflFEDBduQTEPVUKA6N+T1Yc 6GofKEWcQs3H/JHUSPOIzg1h1IoJ+6Z4CAF8iZFXC8DNSyP3iFnGDKK8V7TH4lQtDgFS 69Z5b04PGX6gSkbbEGWnacpYuCShXcPFoATLEi7/qFO8gVZJFkosW9KTEuIUtDBYRVlL WgQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=MRKqjZzM; spf=pass (google.com: domain of linux-kernel+bounces-22707-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22707-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fy6-20020a05622a5a0600b00429aa9ac847si3466951qtb.86.2024.01.10.12.16.22 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 12:16:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22707-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=MRKqjZzM; spf=pass (google.com: domain of linux-kernel+bounces-22707-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22707-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CC6E81C22A3D for <ouuuleilei@gmail.com>; Wed, 10 Jan 2024 20:16:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9370D55C1D; Wed, 10 Jan 2024 20:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="MRKqjZzM" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D365050256; Wed, 10 Jan 2024 20:12:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=salutedevices.com Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id E2C1510000B; Wed, 10 Jan 2024 23:12:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru E2C1510000B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1704917559; bh=xnjsSj/NHZIQN4Q5gliPOaWFNM1HTjQ9jLhAT3UYi2Q=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=MRKqjZzMZDNPIWsOCWwQSEW0fqbks52QK1yd/D3j02DD8ZX9TGETVZLakWak3gGe7 jnMmx6YxQEMtuSKG5r6E2HKbe5pmL5YCgDoBcg/6HlaP6iGg0iA5xSqjmzcJ0RaT0X vpcKYtA12Tx+aewRjhycC6VfzogUxMa9TSgslkKhXRaxHrEewDZNiL2jbAQtlO5tss nzu46DEp9JGYuurF6VpAJgFeo+JsrivjuRHKs7fc2FBXbwwQF0WpgVUyAvifSW48U5 obucZc/b5EYu38b4ZIp9Kq3u77H+3syM8rDHazCULw2GV1C6QH+Zm3wSC7xe20e12Q pFu/UNJBkQisQ== Received: from smtp.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Wed, 10 Jan 2024 23:12:39 +0300 (MSK) Received: from localhost.localdomain (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 10 Jan 2024 23:12:39 +0300 From: Alexey Romanov <avromanov@salutedevices.com> To: <narmstrong@baylibre.com>, <neil.armstrong@linaro.org>, <clabbe@baylibre.com>, <herbert@gondor.apana.org.au>, <davem@davemloft.net>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <khilman@baylibre.com>, <jbrunet@baylibre.com>, <artin.blumenstingl@googlemail.com> CC: <linux-crypto@vger.kernel.org>, <linux-amlogic@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <kernel@salutedevices.com>, Alexey Romanov <avromanov@salutedevices.com> Subject: [PATCH v1 15/24] drivers: crypto: meson: add support for AXG-series Date: Wed, 10 Jan 2024 23:11:31 +0300 Message-ID: <20240110201216.18016-16-avromanov@salutedevices.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240110201216.18016-1-avromanov@salutedevices.com> References: <20240110201216.18016-1-avromanov@salutedevices.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 182544 [Jan 10 2024] X-KSMG-AntiSpam-Version: 6.1.0.3 X-KSMG-AntiSpam-Envelope-From: avromanov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 7 0.3.7 6d6bf5bd8eea7373134f756a2fd73e9456bb7d1a, {Tracking_from_domain_doesnt_match_to}, 127.0.0.199:7.1.2;100.64.160.123:7.1.2;smtp.sberdevices.ru:5.0.1,7.1.1;salutedevices.com:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/01/10 17:01:00 #23071477 X-KSMG-AntiVirus-Status: Clean, skipped X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787735868195487935 X-GMAIL-MSGID: 1787735868195487935 |
Series |
Support more Amlogic SoC families in crypto driver
|
|
Commit Message
Alexey Romanov
Jan. 10, 2024, 8:11 p.m. UTC
Tested via tcrypt module and with custom tests.
Signed-off-by: Alexey Romanov <avromanov@salutedevices.com>
---
drivers/crypto/amlogic/amlogic-gxl-core.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/crypto/amlogic/amlogic-gxl-core.c b/drivers/crypto/amlogic/amlogic-gxl-core.c index 4826f15448f9..6b0ac2bf81ea 100644 --- a/drivers/crypto/amlogic/amlogic-gxl-core.c +++ b/drivers/crypto/amlogic/amlogic-gxl-core.c @@ -216,6 +216,13 @@ static const struct meson_pdata meson_g12a_pdata = { .support_192bit_key = false, }; +static const struct meson_pdata meson_axg_pdata = { + .descs_reg = 0x0, + .status_reg = 0x8, + .setup_desc_cnt = 3, + .support_192bit_key = true, +}; + static const struct of_device_id meson_crypto_of_match_table[] = { { .compatible = "amlogic,gxl-crypto", @@ -225,6 +232,10 @@ static const struct of_device_id meson_crypto_of_match_table[] = { .compatible = "amlogic,g12a-crypto", .data = &meson_g12a_pdata, }, + { + .compatible = "amlogic,axg-crypto", + .data = &meson_axg_pdata, + }, {}, };