Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1718792ybh; Tue, 14 Jul 2020 05:42:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHnbOXC0Yrmndx9WGvkHm6GNGPyIHPdLlMcUP7XEPhmuZRZDj07zAWsgezgEdiOtq/uYiX X-Received: by 2002:a05:6402:337:: with SMTP id q23mr4381084edw.63.1594730528809; Tue, 14 Jul 2020 05:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594730528; cv=none; d=google.com; s=arc-20160816; b=oFno7/jW8PGOSj1Hi57QJnfI88VsRfXZKDUNTjmfckJcXG+v5CWj8DxsvusGctMW87 3c2F6N0tqNt2sDzGbfXKJBjvyhf2KNEuvgGNdL3OnJRX1rbX1PHpY51qjwDGyAjNcRqM Y4aYT7GrE3RXacLxlE5fs9wgSAtXd0WWO1ioqO3iEkxilpxovWGFc6fAEv01WkjKWjfU C4LCLcUbA6zh8zZr0jCVlHCLmxz3apPjJKkAtArjxrNhNUYLfitB6IWLtrrTThCNXbV9 mT8FU4mDV5j1QGRsfeVQv/TNPJWeBfS4Lnc37ZWufArhR9olnoF8A0lw8itLDZO6OYXP wxfA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bf/g/OlZLnZ0NkKlPLQiDR8GZWDms+6NdXr1r7qrgOY=; b=PCO86BqkxzwzniPv9GhsJNH+DhzAnWa45EL6AhMESqradOrO2txQYtkg+bpg8xVivI +hXDPhcibtwKqAjLetU9co0/gLS7Sy6cSV4BADe5vPSlE75FfR0mF9MEV6bVCtXLQee3 R5/nWylphasJhFV0Bq8sEI3FJA14vMsLLzr2F4nKNMN95mNHaPBZFcjca0BRGqTYHZ8u UjFz9343tc4zOb3k2OCkvLouHcxnM6tYKFy//rivA+BRqyS/stKEpxH0DxcATvrwyBgy Wpky02jXQStpX0xwucn1be7CoID0a/lTU+3RrK9SFgeCW+bDejAPBXtKGiGvr9ETEvS+ hKiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id w18si10278901ejk.216.2020.07.14.05.41.45; Tue, 14 Jul 2020 05:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 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 S1728085AbgGNMkT (ORCPT + 99 others); Tue, 14 Jul 2020 08:40:19 -0400 Received: from inva021.nxp.com ([92.121.34.21]:52080 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728300AbgGNMjk (ORCPT ); Tue, 14 Jul 2020 08:39:40 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 36540200FFF; Tue, 14 Jul 2020 14:39:38 +0200 (CEST) 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 2903A20018F; Tue, 14 Jul 2020 14:39:38 +0200 (CEST) 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 6CBAB205A4; Tue, 14 Jul 2020 14:39:37 +0200 (CEST) From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Rob Herring , Shawn Guo , Sascha Hauer , Matt Mackall , Herbert Xu Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Greg Kroah-Hartman , Martin Kaiser , Marco Felsch , Franck Lenormand , Iuliana Prodan , Silvano Di Ninno , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 5/5] hwrng: imx-rngc: enable driver for i.MX6 Date: Tue, 14 Jul 2020 15:39:20 +0300 Message-Id: <20200714123920.23711-6-horia.geanta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200714123920.23711-1-horia.geanta@nxp.com> References: <20200714123920.23711-1-horia.geanta@nxp.com> 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 i.MX6 SL, SLL, ULL, ULZ SoCs have an RNGB block. Since imx-rngc driver supports also rngb, let's enable it for these SoCs too. Signed-off-by: Horia Geantă Reviewed-by: Martin Kaiser Reviewed-by: Marco Felsch --- drivers/char/hw_random/Kconfig | 2 +- drivers/char/hw_random/imx-rngc.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 8478eb757f3c..98f95a09ce55 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -255,7 +255,7 @@ config HW_RANDOM_MXC_RNGA config HW_RANDOM_IMX_RNGC tristate "Freescale i.MX RNGC Random Number Generator" depends on HAS_IOMEM && HAVE_CLK - depends on SOC_IMX25 || COMPILE_TEST + depends on SOC_IMX25 || SOC_IMX6SL || SOC_IMX6SLL || SOC_IMX6UL || COMPILE_TEST default HW_RANDOM help This driver provides kernel-side support for the Random Number diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c index 9c47e431ce90..84576d2fbf8c 100644 --- a/drivers/char/hw_random/imx-rngc.c +++ b/drivers/char/hw_random/imx-rngc.c @@ -350,6 +350,9 @@ static SIMPLE_DEV_PM_OPS(imx_rngc_pm_ops, imx_rngc_suspend, imx_rngc_resume); static const struct of_device_id imx_rngc_dt_ids[] = { { .compatible = "fsl,imx25-rngb", .data = NULL, }, + { .compatible = "fsl,imx6sl-rngb", .data = NULL, }, + { .compatible = "fsl,imx6sll-rngb", .data = NULL, }, + { .compatible = "fsl,imx6ull-rngb", .data = NULL, }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, imx_rngc_dt_ids); -- 2.17.1