Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2059193ybt; Sun, 21 Jun 2020 07:58:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOLFV9rH+KmfL8rX4xMHBVpoM56KSdd5+JqnzfsDIHZiiIUvY+cvHWrFJ/z0wRqHMm/6Yi X-Received: by 2002:a17:906:3945:: with SMTP id g5mr2572857eje.549.1592751480987; Sun, 21 Jun 2020 07:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592751480; cv=none; d=google.com; s=arc-20160816; b=GU3ty5vN9o9u6PEA8rTjYXZ+lM6FLPYkOWnf1S7Cs9gNA+NZuuR3Jvpa/WnL8i23uO McMqUr9MxqpDQG1UvnCyCWL3FNmdOp6a0Ru0j4WFsOobJGc/DJ3s0yMytdEFiBfgzo9P nz52uyKn7vAFe2DR/Pwmc8l/QKtcZhH9f3/u2ySP2YpyP3T8fXp4+5q+D3qwvOoI5YKw HXVCCApQjgm8oSm7IKqIp39W3Pb3tQIg/YftDPWMrAY9OMHf/gLRleLWbgfbJcYdKQXg 7DVly0jZMpLEec9pqpuTgrnhA9lckOleSEUllcQ6mARHNDYSVLdJiLbaFL9KyeYcSP8e KOcQ== 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=fWcU4Jc09lkG6TlAYPVzcJ6N8q5uA5fDnq21kaH5vPE=; b=C31MCfqLzXtzhDBAW/nutJQkvb7r1/GCQvnVVJDXMviDS0LRM3TVsAQcnwim16xFQk MnVJxQfWoHcPpud438r6Oe7t1lZW2giTLiGnf39XFRgwQ6ZdpYLX5J6osG2Z/q8Vsu3s /PG1D4FoafX/uDsHjQYnIAZQWakYIsZP9sjpk+WaPq4jCoGiBUhj8fzOk2TqTtyiodmY KWIK2I8Bh+Nhp4T+R+k79Ben/3My7cURK7dqgSHv3UGeYK5G6X/6/rSYV2snzsv2GUKb gBJyRlqzXjwor2S7eIxG5PvhSNz7TiwnBXCDQM3nQNiovD+AJHFMdKLMLNmmNLBYADOk 1j9w== 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 h23si2173950edv.18.2020.06.21.07.57.36; Sun, 21 Jun 2020 07:58:00 -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 S1730327AbgFUO5X (ORCPT + 99 others); Sun, 21 Jun 2020 10:57:23 -0400 Received: from inva021.nxp.com ([92.121.34.21]:49210 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730257AbgFUO5W (ORCPT ); Sun, 21 Jun 2020 10:57:22 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E0F642015E5; Sun, 21 Jun 2020 16:57:19 +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 D340E2004E6; Sun, 21 Jun 2020 16:57:19 +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 2B35F203C2; Sun, 21 Jun 2020 16:57:19 +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 , Franck Lenormand , Iuliana Prodan , Silvano Di Ninno , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/5] hwrng: imx-rngc: enable driver for i.MX6 Date: Sun, 21 Jun 2020 17:56:58 +0300 Message-Id: <20200621145658.12528-6-horia.geanta@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200621145658.12528-1-horia.geanta@nxp.com> References: <20200621145658.12528-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ă --- 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 0ad17efc96df..53f6a7e4392f 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -245,7 +245,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