From patchwork Mon Oct 19 04:37:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 7432841 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0BF5E9F37F for ; Mon, 19 Oct 2015 04:39:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B16420741 for ; Mon, 19 Oct 2015 04:39:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 660312073B for ; Mon, 19 Oct 2015 04:39:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752892AbbJSEiu (ORCPT ); Mon, 19 Oct 2015 00:38:50 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:33618 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752485AbbJSEiH (ORCPT ); Mon, 19 Oct 2015 00:38:07 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NWG00CM2A7HZT50@mailout4.w1.samsung.com>; Mon, 19 Oct 2015 05:38:05 +0100 (BST) X-AuditID: cbfec7f5-f794b6d000001495-db-562473adfe0e Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id CA.D3.05269.DA374265; Mon, 19 Oct 2015 05:38:05 +0100 (BST) Received: from localhost.localdomain ([10.252.80.64]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NWG00GZTA6Y7Q50@eusync3.samsung.com>; Mon, 19 Oct 2015 05:38:05 +0100 (BST) From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Matt Mackall , Herbert Xu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Cc: Heiner Kallweit Subject: [PATCH 4/4] hwrng: exynos - Add Device Tree support Date: Mon, 19 Oct 2015 13:37:42 +0900 Message-id: <1445229462-32395-5-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1445229462-32395-1-git-send-email-k.kozlowski@samsung.com> References: <1445229462-32395-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFLMWRmVeSWpSXmKPExsVy+t/xq7pri1XCDBZME7KYf+Qcq0X3KxmL Re9nsFq8fmFo0f/4NbPFpsfXWC3u3/vJZHF51xw2ixnn9zFZLNjWx+jA5bFz1l12j20HVD02 repk89i8pN6jb8sqRo++lxsYPT5vkgtgj+KySUnNySxLLdK3S+DK2DpvPnvBHM6K1RvWsDYw XmDvYuTkkBAwkXj3/AoThC0mceHeerYuRi4OIYGljBI3zq5lhXD+M0ocmf6OGaSKTcBYYvPy JWBVIgKHmSS2zTvMApJgFtCSePR5CiuILSxgI/F89j+wOIuAqsTv7XPAVvAKuEvcuNEOtVpO 4uSxyWD1nAIeEjN7j7CB2EJANXeX/GWewMi7gJFhFaNoamlyQXFSeq6RXnFibnFpXrpecn7u JkZICH7dwbj0mNUhRgEORiUe3gdHlMKEWBPLiitzDzFKcDArifBmH1YOE+JNSaysSi3Kjy8q zUktPsQozcGiJM47c9f7ECGB9MSS1OzU1ILUIpgsEwenVAPjFC72NNbdJxxCDrTEJGwM6N69 Yhtfx/aqhoQ/wf8v3Yr5ILvmkqPhnqeaU4RPK6vw8YUtjlx3ZsPr3GkOYd2htwtCjOqDrI/2 H8xnvKKjpjJP8ozynoBbWorT962WY+d4y/9UUCakbk/98X/bLpsW8Tvzvtpsuywl7EJe/H/J m3NSBay1d51XYinOSDTUYi4qTgQAL8TNoz0CAAA= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add Device Tree support for the driver. The Pseudo Random Number Generator module is the same in almost all of Exynos SoCs, since Exynos4210 (however the tests were done only on Trats2 board with Exynos4412). There are some differences on newer Exynos Octa (Exynos542x) SoCs. Signed-off-by: Krzysztof Kozlowski --- drivers/char/hw_random/exynos-rng.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/char/hw_random/exynos-rng.c b/drivers/char/hw_random/exynos-rng.c index 162adbda1b70..7077c7741dae 100644 --- a/drivers/char/hw_random/exynos-rng.c +++ b/drivers/char/hw_random/exynos-rng.c @@ -188,10 +188,19 @@ static const struct dev_pm_ops exynos_rng_pm_ops = { exynos_rng_runtime_resume, NULL) }; +static const struct of_device_id exynos_rng_dt_match[] = { + { + .compatible = "samsung,exynos4-rng", + }, + { }, +}; +MODULE_DEVICE_TABLE(of, exynos_rng_dt_match); + static struct platform_driver exynos_rng_driver = { .driver = { .name = "exynos-rng", .pm = &exynos_rng_pm_ops, + .of_match_table = exynos_rng_dt_match, }, .probe = exynos_rng_probe, };