From patchwork Wed Jan 1 17:50:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1008 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 526C13F0CC for ; Wed, 1 Jan 2020 18:50:15 +0100 (CET) Received: by mail-wr1-f72.google.com with SMTP id 90sf20521766wrq.6 for ; Wed, 01 Jan 2020 09:50:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577901015; cv=pass; d=google.com; s=arc-20160816; b=Car8MtmY7udgxucGZK2LX1rerKqySUuv/P9j02QkERNYuZIFKn2Leoc36sw94F0sAR xK/GL5t1eXXT9b73kED50eeQnpsQl2FXRM+DcE19bOI6ocFZoSjYXcsXwe5NKPLEgteu eSUFWTEFN21HeHLa5aSdZds93633rHSKEtnsf6Yj9AVoXKXN/jF7i47ZTo0lyTrsByvk FkrYJzpaEHXvaajimmN0TEQ6vD13X9fjoz2T1xbZ/FRpjf/iSms++uEnqwP/RzeK6iQM YNtBkpSuyOcmeHSwZJbb2Ngnx3sdFUrvvirBX0zzFyoCBKjBo/qBzDNd7jLvLJyE/YOs EWow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=7kYQl7Br/veP+DcRXmcDrKxr5/eofxcEJ0acAWuk60Y=; b=f4vtDgYEic7xqx3mKwfkzYmTsNWRLxLbI1PTMTBbjG0IfQUpBUEFLeSE8zSfpgSYB+ NdW6xrpxAbVOQj1IOZyzvJICzji4U3xWnQE7n6Earhv4tvTwPzkDEaCR/88O8mUspXN3 ti0Z/nSf2dTstMnybM0zhdnX8VSt9UBzAHtNzDIZ8XvO2jOZ16ze+VUsdxn7GkybM5+O 3XURddXyzdj5CSAgDpumg2w3c9kNw/nnQHgBOjpzEo/EY64Zlb+EJfQBTAcdcJIzWol4 TUvJeFQDgiCY+M+I9OMLSfPTFT2rv+74fuTmpmwzQXZWxIBoFZud8mwrGcj6LZN2eGX5 vpFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NXurigMw; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=7kYQl7Br/veP+DcRXmcDrKxr5/eofxcEJ0acAWuk60Y=; b=ChWBmz2YG0j2TRFbekdQJJej/v7sYnmvdoV7g60kdoh1AzNnMvDruJ0EAP1uQV8N6U DNwPWzjcVKRo+XCY3c8H4whHapl7gaM2YVHJ1XIULf2ECnDsa56Fa6T3Gc8ew/5rjOH/ 2KsfbTL+aj/fNCKuvee+8DxvIwZIizrZT/Yfw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=7kYQl7Br/veP+DcRXmcDrKxr5/eofxcEJ0acAWuk60Y=; b=J0Iv0zc/OEuSb6gajRWncApXV+aAGp6VvLIvr+qk5Ay6/si/4BAvFT4+CbksPbQphl hudvqXkmrDN2LX7kPLvG2y7DMzvYvcWn5m681W/2KQGq8hRsXF7UN6R4hT36eIQkZ2+u 8PCjCozKil3Ib8EDXHWGRauKUK7uPQo43uKx7pu9WY5cdABGBbMVmsaiMpKaNNytINea /OsOZJma9DtSo86DaTtZpjJYF1pi2a3PWinDO73APEkFO1z9hyknwLRZhVppmuzFOfRU +Mn1srQaVjPRoGPDNTavOO0sZEv2xjMmVHArR4DmYU5AyYCyRU+okeL7PmvzOrIqvJSW WI7w== X-Gm-Message-State: APjAAAUMzdqJ5DSu0EAtx5rZxlvT8mVa9HzeLIb+MkB1zWJDFRNnc/nU E5urTRyLsPRrL52xRXOiI2gL/UHs X-Google-Smtp-Source: APXvYqx3cW0GXiwBRPrNKFDcRnOHwO4qnIu0fPbUVpe/EfXFq2wBW4b85HVkzG0Wi5V3uSRNCLF4iQ== X-Received: by 2002:adf:8150:: with SMTP id 74mr81227090wrm.114.1577901015074; Wed, 01 Jan 2020 09:50:15 -0800 (PST) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a7b:c76b:: with SMTP id x11ls1395624wmk.3.gmail; Wed, 01 Jan 2020 09:50:14 -0800 (PST) X-Received: by 2002:a1c:a382:: with SMTP id m124mr10528233wme.90.1577901014371; Wed, 01 Jan 2020 09:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577901014; cv=none; d=google.com; s=arc-20160816; b=BfjqupiS5Rfe3aAbkKi7R0hhhGF0iWqctUahkSLXUKxHNhsE/W80t2RqJQG3V5xuUm 7PotpL+ZRHjelUYRY51xaStPOdzYe4gFjnBf5QkzmiT4vXmTZCFqHeEMu7TCMtXqic8v 7arebU51qfF4WHgm1iatd93ElKAwHu9L6R+D1lJBH3yX/6XIAmH0gJH/cBNNBsv0zvF+ DAOl1ObRt/6dMNmA3N2DrkrgG3o1+zYDERJBm8ypn+8hM8Xv89wSFMcv7R/M7MayMnwo l3Iu/y+/pEsFkgJd6MvZS9ySDGSQsfgVYqZNmhXhqPhPwruuBfKgHOcJqfGdFdYjAiLD beKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=No6+pF/29hbexfyxLIzSLoDPs3T39QBZzwsgULMLjzI=; b=cqc3vsS6yxJKb5xsnHwClLx5qYX5Hs4S3CoiR02ccLMDvAb0GtK/AAxwLGK7oMYJU0 gvJxN6/OBGgxtr0mpunP3BfgiKTMsOx6fnbCLWJuXPYdafHMKTUQcZRJUlXvMt7Izbz0 V7h5oUOfikF9pOS3Kw5rCRrbZl4NXd9g/jifM281lC6yUU4jm9p/Fa3lnswKsC3hxmF3 Nt2UKf08sPtW3kj59efkn3ENOgSkfXjF5nzot+qGXuKkQ2HsJY6fKazYwrc7eLgB0DfB i4dQJLuBU3P4EQcu0vQ40pWm2T+24W+eNsLuV0l0i6KkoRUZJ4UgC0rkcnpj+gvpegsW 8LaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NXurigMw; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id b9sor21984995wrm.5.2020.01.01.09.50.14 for (Google Transport Security); Wed, 01 Jan 2020 09:50:14 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a5d:480b:: with SMTP id l11mr36319687wrq.129.1577901014081; Wed, 01 Jan 2020 09:50:14 -0800 (PST) Received: from panicking.lan (93-46-124-24.ip107.fastwebnet.it. [93.46.124.24]) by smtp.gmail.com with ESMTPSA id r15sm6025085wmh.21.2020.01.01.09.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jan 2020 09:50:13 -0800 (PST) From: Michael Trimarchi To: Shawn Guo Cc: Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Estevam , Rob Herring , Mark Rutland , linux-amarula@amarulasolutions.com, Aymen Sghaier , Herbert Xu , linux-crypto@vger.kernel.org Subject: [PATCH 2/2] crypto: caam - add clock entry for i.MX8MM Date: Wed, 1 Jan 2020 18:50:11 +0100 Message-Id: <20200101175011.1875-2-michael@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200101175011.1875-1-michael@amarulasolutions.com> References: <20200101175011.1875-1-michael@amarulasolutions.com> X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=NXurigMw; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add clock entry needed to support i.MX8MM. [ 1.040682] caam 30900000.crypto: Entropy delay = 3200 [ 1.045935] caam 30900000.crypto: Entropy delay = 3600 [ 1.118813] caam 30900000.crypto: Instantiated RNG4 SH0 [ 1.186476] caam 30900000.crypto: Instantiated RNG4 SH1 [ 1.191726] caam 30900000.crypto: device ID = 0x0a16040100000000 (Era 9) [ 1.198434] caam 30900000.crypto: job rings = 3, qi = 0 [ 1.222717] caam algorithms registered in /proc/crypto [ 1.231297] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto Signed-off-by: Michael Trimarchi --- drivers/crypto/caam/ctrl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index d7c3c3805693..ab8df3b550a7 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c @@ -99,10 +99,11 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc, if (ctrlpriv->virt_en == 1 || /* - * Apparently on i.MX8MQ it doesn't matter if virt_en == 1 + * Apparently on i.MX8MQ and i.MX8MM 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,imx8mq") || + of_machine_is_compatible("fsl,imx8mm")) { clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0); while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) && @@ -509,6 +510,7 @@ static const struct soc_device_attribute caam_imx_soc_table[] = { { .soc_id = "i.MX6*", .data = &caam_imx6_data }, { .soc_id = "i.MX7*", .data = &caam_imx7_data }, { .soc_id = "i.MX8MQ", .data = &caam_imx7_data }, + { .soc_id = "i.MX8MM", .data = &caam_imx7_data }, { .family = "Freescale i.MX" }, { /* sentinel */ } };