Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1218841rdd; Wed, 10 Jan 2024 12:20:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtitP29KxWgMI+VD+zkQ0EeepZz/cSAKJETTZi7V5dYi5vjbI90BuetZCJx15x5cmeYu0h X-Received: by 2002:a05:6358:7211:b0:170:ec2e:4367 with SMTP id h17-20020a056358721100b00170ec2e4367mr228872rwa.1.1704918018917; Wed, 10 Jan 2024 12:20:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704918018; cv=none; d=google.com; s=arc-20160816; b=PTfoA/DQMTpLgKePcfmm/s+haB91wCbN5xDPIH0VKOHiRSHZoWDv96zQUQqSUlkvJh MBxdxdKrfIDgXIoVp9FH1oSZu2mpSec6bdmDCFi1OpL+tJtD9VdTtjWzuMAaoJIw65sV 6SZbNnzih4WdD4d/yeDUDEZCkK3jnJVrn961X13ziYZ6UKxKbTENZQyB0rnk7NXKC3dj 26Nho0xfkLJgQGAhXjMqSJ4mDK5ZV4k/IhvVlxrl/mLJ9ghCnCP1DNzPWz4DMfUpVCGf cD+6GI4LUIQdLcacoKP9MHM2RbUtt2R6bCNIutaFt+upf33tbXaiTlV74l5DzLVUAQEW EFuw== 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=n4zBSxESc8xvj8R3IPkw0ws/kedF4EI1B0WkTGswCxk=; fh=0p1Kpk55kVc6lC+al+CDnSnq4czU1u1X+MgcW9lnQNo=; b=IwpKwnjfYWZxA5A3f2WoVNhXGx56FhpC1epsPly8r3KGbwgMe9iTb+laesk1H/T429 XdMKbmNnK6aPj/uqhTONJpU1eih3RhSYrDSYfDzXJnlrhJMoalVVqx7sq6x97W+i7ylB YXlIL1R/KJ40bJMXJ5QaJGLW3tXrHaLv5iHLnupBgAC2WoikoHJOAsXun3M1KSWnmsMG y2QWJBQo9Jyaf/L71axsEiN6wu7qcyiBi873bXRBcruA7aCrHAGiLvN5KapqWoC1pR3T rZMBvvfOZMhCuplU8/3cgHQZNgSUCWmzICKF0Zln/s18XBz8mOZs6b3CDBC1+3rgdFwM MMNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=WGBo2jcT; spf=pass (google.com: domain of linux-crypto+bounces-1347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1347-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s19-20020a056a00195300b006db05ff13f9si4611325pfk.374.2024.01.10.12.20.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 12:20:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-1347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=WGBo2jcT; spf=pass (google.com: domain of linux-crypto+bounces-1347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-1347-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F3FAB28981F for ; Wed, 10 Jan 2024 20:14:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33C9951C33; Wed, 10 Jan 2024 20:12:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="WGBo2jcT" 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 0356E4F8AF; Wed, 10 Jan 2024 20:12:40 +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-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 0C51012001F; Wed, 10 Jan 2024 23:12:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 0C51012001F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1704917559; bh=n4zBSxESc8xvj8R3IPkw0ws/kedF4EI1B0WkTGswCxk=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=WGBo2jcTpEE4E7Lhont3JDGwoznaImAfcCZItBhqKQw5JpV8D8d5Qc9BhQmNFrH9w vMWZZSHifPGiGqFwGWfCGiPe27Om3uex4uoBUOcDSwgsqSUCBJCeAHwt3W8WpwDOnf XgmiYX+yQSJx76wOUnSUOw+Yn6wNbA6GOnkrtsjypu2mnkUbajriq6jvhQEzfYqOka OtRF8HYnFWzv/03zRlCW13W2NmGaS8zYQ7wodEbWDLi6V3sdbUx0LaSB0Zsny0lX2t LVUPraVeccIsckzPLSsVHxIs8yPIQVNW9nFGRrfWFTxP959fLwIAcrFbHkn18KcC6L SRdbMHM6bDP0A== 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:38 +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:38 +0300 From: Alexey Romanov To: , , , , , , , , , , CC: , , , , , , Alexey Romanov Subject: [PATCH v1 14/24] drivers: crypto: meson: add support for G12-series Date: Wed, 10 Jan 2024 23:11:30 +0300 Message-ID: <20240110201216.18016-15-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-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-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}, 100.64.160.123:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;salutedevices.com:7.1.1;127.0.0.199: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/01/10 17:01:00 #23071477 X-KSMG-AntiVirus-Status: Clean, skipped This platform data also can be used for SM1, A1 and S4. Tested via tcrypt module and with custom tests. Signed-off-by: Alexey Romanov --- 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 202dd9f73e55..4826f15448f9 100644 --- a/drivers/crypto/amlogic/amlogic-gxl-core.c +++ b/drivers/crypto/amlogic/amlogic-gxl-core.c @@ -209,11 +209,22 @@ static const struct meson_pdata meson_gxl_pdata = { .support_192bit_key = true, }; +static const struct meson_pdata meson_g12a_pdata = { + .descs_reg = 0x0, + .status_reg = 0x8, + .setup_desc_cnt = 1, + .support_192bit_key = false, +}; + static const struct of_device_id meson_crypto_of_match_table[] = { { .compatible = "amlogic,gxl-crypto", .data = &meson_gxl_pdata, }, + { + .compatible = "amlogic,g12a-crypto", + .data = &meson_g12a_pdata, + }, {}, }; -- 2.30.1