Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9114632ybl; Fri, 17 Jan 2020 06:35:52 -0800 (PST) X-Google-Smtp-Source: APXvYqy0H8D4TyTi9WRD51FKr5nQ6KOOaGn2yI++w06zRs1M0Aj7ctBZjNohC9xzdktZCNcrBDRM X-Received: by 2002:a05:6830:1e67:: with SMTP id m7mr6379168otr.262.1579271752647; Fri, 17 Jan 2020 06:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579271752; cv=none; d=google.com; s=arc-20160816; b=EAyQDqw3ilmAx3o8X9jHil1pgOM4Wp0oLQlE8ElIvuW3Ga3YAWuRsrvppCzirAKJco FKPkLfmuAV3z5qdN2Ll2AMyzuj3VhpH4lOwNY/aJynuYNuTXhV4lQwFbtD7zDCxBzeIv FqQDn12YYtDqHAauZ9yf1GmH/Knxz7yTIeRZHM/1U2kQckTXRzcy021ORgraf8Lw9Vvu EQ6o08uUFWBOHDuGcThbB75C+HYZ3vGccGQGRr+yhWz35MD4TJ/FEGmQjtkxOHh3iIyk J9CNO2eVigzymH9Fv+bZYq719umbBRY3l0/Nq4LC1NE7YXJ25E5IuD4YeTaS1rDdmZsd BESA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=G+fRQv+AoTNbDspotvxysMHQ2kDy7K76+WVWiZJlP4w=; b=THsatUEgkCiws/vdKXppxeT+JF8OevrLKNlDqwbzCfYN9pOA+3TGMkflAPcpGMiJSC c2HYqMNJK5b4aNBJR0lpjtwst5xbpHh6zeCT+IwkUpy4XFP3QJYEbsLrOrC+1ZWjp92t b0UGJ9iXCjBO+yW+smI7bEWO3OTwRQ77cn2KEJ6JAk0dRZ042ukv8ghlSdEM6NmhePJG bMeDQRn7U4E3wX46xlwHeZR7TZ/SWP0avjxvBIN5uiEjn9W/fllRfGg4KXPivdx5CaFL p9Igl/7hjfPLbjq8qlD96okYfkuvUx6wt7KGeUQfEHGhWnpGez1vVuraYpQWDfHlH/as EG2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h138si13516637oib.6.2020.01.17.06.35.31; Fri, 17 Jan 2020 06:35:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728767AbgAQOfZ (ORCPT + 99 others); Fri, 17 Jan 2020 09:35:25 -0500 Received: from inva021.nxp.com ([92.121.34.21]:36300 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726890AbgAQOfZ (ORCPT ); Fri, 17 Jan 2020 09:35:25 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6C905200DE5; Fri, 17 Jan 2020 15:35:23 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 57034200DDB; Fri, 17 Jan 2020 15:35:23 +0100 (CET) Received: from fsr-ub1864-014.ea.freescale.net (fsr-ub1864-014.ea.freescale.net [10.171.95.219]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 07E6B2048C; Fri, 17 Jan 2020 15:35:22 +0100 (CET) From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Herbert Xu Cc: "David S. Miller" , Aymen Sghaier , linux-crypto@vger.kernel.org, NXP Linux Team , linux-kernel@vger.kernel.org Subject: [PATCH] crypto: caam - add support for i.MX8M Plus Date: Fri, 17 Jan 2020 16:35:13 +0200 Message-Id: <20200117143513.7652-1-horia.geanta@nxp.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add support for the crypto engine used in i.mx8mp (i.MX 8M "Plus"), which is very similar to the one used in i.mx8mq, i.mx8mm, i.mx8mn. Signed-off-by: Horia Geantă --- drivers/crypto/caam/ctrl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index 88a58a8fc533..7139366da016 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -99,12 +99,13 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc, if (ctrlpriv->virt_en == 1 || /* - * Apparently on i.MX8MQ, 8MM, 8MN it doesn't matter if virt_en == 1 + * Apparently on i.MX8M{Q,M,N,P} it doesn't matter if virt_en == 1 * and the following steps should be performed regardless */ of_machine_is_compatible("fsl,imx8mq") || of_machine_is_compatible("fsl,imx8mm") || - of_machine_is_compatible("fsl,imx8mn")) { + of_machine_is_compatible("fsl,imx8mn") || + of_machine_is_compatible("fsl,imx8mp")) { clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0); while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) && -- 2.17.1