Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2466222rdb; Mon, 12 Feb 2024 06:02:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwtxB9INiDJxI3ypj+m7Tg46N/2SeRkRAlibCNxCBf8JZPHbJG1/AZZw9YDOrM0OZaWSIo X-Received: by 2002:a17:906:3b9a:b0:a3c:d053:1272 with SMTP id u26-20020a1709063b9a00b00a3cd0531272mr894313ejf.15.1707746568601; Mon, 12 Feb 2024 06:02:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707746568; cv=pass; d=google.com; s=arc-20160816; b=dTxlhZ8ftDxQSMtGc8Hf8hMxWZwp3CA6W7pU3JCr3DOCN3UGgH2vg2uuzP5kuFztzS ksOycqNzyH447rp2eM7lipLi1fdpDhWc9eBdhhdPUIJ1rzmoEAsTdx2cahDJV8LlsVhP YR/+HQfMQgLu1YfhKJBmHP1jtsa6T8kzvoiNbZy7q23U6mpyvDCNwCKf5dig3Vz640Jd b8U70sTeu834kBSPWBRCnq1fk6kVUMNpe/WRtz09p49lH1AufCQd/7rk2Kv+jmUace7T qZS6QbOTQv23k3ANAx3QgsfS/YIFCvQOA30vfjfWyPpE1/Qcys8PFT+qVfLRwVxsXgXA iF5g== ARC-Message-Signature: i=2; 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=nepK9/S3PvUYFkBSk3ayS3sP15UZveTig8m4Oij780o=; fh=Lf42hY7AoMvXYoMb8cLNPEUDM28wQyjCbwNenakn+Pk=; b=lGPoxcjdC/J0nPjxq1ZS5tV5jNIOm1Nni+h0nIQrP5F5CgYcESFnlvmH3wLuXnNjPG b59JPHvj9S+QDVkqYo3jjnaDn+ch/L6/QDmOsuReqZIxLTAmIsVSaqzfuYTRCXt9AA1s Y8rt4oAtnZQUXCnokarfyoI2XaoVO4RBzdJGgQzhvj0rSFhzvaGaG69mel+z0DGm5mhE YyCcHaSeQm/4QpJpqjFjg9k+VAGgZlN7Cpvty3qhUt+EmH7LTy3/rFYIlX5OFTEGLIaa Y/87TMgPC9xPSTUlVCtvPkdyLkadIAAJvJAhAWCO9+jcOWrFeB4PBnQsLJrK5reqaZU8 YHWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=ix33G0Sc; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-crypto+bounces-1980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com X-Forwarded-Encrypted: i=2; AJvYcCUaxD2aAs9pPmnQw8gDyz+WX+Uc5fhzhy5gqDUKwi7SeXVM+jSu7d7onsTXyNXb4aP/fwxsGouxXhdce/y54vrRuSnpt3b+ZHbfiltS6A== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i17-20020a170906265100b00a3bf369b8c5si210764ejc.1041.2024.02.12.06.02.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 06:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=ix33G0Sc; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-crypto+bounces-1980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1980-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 678781F25F2B for ; Mon, 12 Feb 2024 14:01:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0552546424; Mon, 12 Feb 2024 13:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="ix33G0Sc" X-Original-To: linux-crypto@vger.kernel.org Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) (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 C5B913EA83; Mon, 12 Feb 2024 13:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.89.224.132 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745911; cv=none; b=JYOStIwjZhMWZsdsuQZNTVzu7FF0EUTIcGCZRazPNmBhEjJwsNmH9RF1PKTAVH6gBgJ6E6VreQMYzFapcVg8dhPAp/WIAw/UrPd5S/tK/4IxdhabtEoV74m3o4WLTCF49lxza2d7iMHQRUnqvZwHL/83+kxsuUR/HRpl07c58Wo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707745911; c=relaxed/simple; bh=j/npYAldlvd9Qq3pg+DESbC3wWELF/8rKRlRxhrdEk4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Z2DgupL1utooBwrqB5lXHeCnH1O0g+HFncHl867lDOU15B3+Hd5cai3YevXZw3Rf5nfr8aXU/aT1C4jEYg2ZXprQonDUBlThQWmyB0PDztwAU+YBw5mfmV+ltrl8wO0cOSmDIRKE6k8EO9+bS3goPgu4ecs0w6NDf07HHWNOtb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=salutedevices.com; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=ix33G0Sc; arc=none smtp.client-ip=45.89.224.132 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-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 1A6C9120006; Mon, 12 Feb 2024 16:51:47 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 1A6C9120006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1707745907; bh=nepK9/S3PvUYFkBSk3ayS3sP15UZveTig8m4Oij780o=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=ix33G0Sc4bUmf3cMpdxGONoUOdlCN5tI1S5MHukh+aTiMdTqvTDfu28XJEKwowrAJ hbpZay9ekNkMSBZxqIQjpCYJEBReJwVcja5TPm1nkSYSTZ5WJXl0xthteoZqJdpyTO k6xx38Qj8F+5DFMYhsqPTDX7aJj/kk4HL0Bye2lCglZzlUrGxMeel5nJR9CHU4Dhhy jzUYGpU+WhHzbUWIX1kLFYxO/TtQiAGLd961Uz0aN2rfds/nx/MjmuJKc3LCJuiIN1 kg/37gvIiMts4xETfSVTaOnCkkMsmMtfWb70kgX8vnJB2UrAE6NZG781mBQuvU8AGx XSF0Qk/l+UT/Q== 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; Mon, 12 Feb 2024 16:51:46 +0300 (MSK) Received: from user-A520M-DS3H.sberdevices.ru (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; Mon, 12 Feb 2024 16:51:46 +0300 From: Alexey Romanov To: , , , , , , , , , , CC: , , , , , , Alexey Romanov Subject: [PATCH v4 15/20] drivers: crypto: meson: add support for AXG-series Date: Mon, 12 Feb 2024 16:51:03 +0300 Message-ID: <20240212135108.549755-16-avromanov@salutedevices.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240212135108.549755-1-avromanov@salutedevices.com> References: <20240212135108.549755-1-avromanov@salutedevices.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) 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: 183368 [Feb 12 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}, d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2;salutedevices.com:7.1.1;100.64.160.123:7.1.2;smtp.sberdevices.ru:5.0.1,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/02/12 07:49:00 #23556813 X-KSMG-AntiVirus-Status: Clean, skipped Tested via tcrypt module and with custom tests. Signed-off-by: Alexey Romanov --- drivers/crypto/amlogic/amlogic-gxl-core.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/crypto/amlogic/amlogic-gxl-core.c b/drivers/crypto/amlogic/amlogic-gxl-core.c index 2ffe5994b353..536ad438f713 100644 --- a/drivers/crypto/amlogic/amlogic-gxl-core.c +++ b/drivers/crypto/amlogic/amlogic-gxl-core.c @@ -226,6 +226,14 @@ 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, + .need_clk = false, + .setup_desc_cnt = 3, + .support_192bit_key = true, +}; + static const struct of_device_id meson_crypto_of_match_table[] = { { .compatible = "amlogic,gxl-crypto", @@ -243,6 +251,10 @@ static const struct of_device_id meson_crypto_of_match_table[] = { .compatible = "amlogic,s4-crypto", .data = &meson_g12a_pdata, }, + { + .compatible = "amlogic,axg-crypto", + .data = &meson_axg_pdata, + }, {}, }; MODULE_DEVICE_TABLE(of, meson_crypto_of_match_table); -- 2.34.1