From patchwork Thu Jun 23 00:27:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9194289 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0DB2C60890 for ; Thu, 23 Jun 2016 00:29:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F09EF2841C for ; Thu, 23 Jun 2016 00:29:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3FDD28423; Thu, 23 Jun 2016 00:29:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2036A28420 for ; Thu, 23 Jun 2016 00:29:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFsUi-0003zW-Id; Thu, 23 Jun 2016 00:27:44 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bFsUX-0003wB-QO for linux-arm-kernel@lists.infradead.org; Thu, 23 Jun 2016 00:27:34 +0000 Received: by mail-pf0-x241.google.com with SMTP id c74so5245505pfb.0 for ; Wed, 22 Jun 2016 17:27:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZgFtw2vlcIV30n5rbeHrN3WOs2rNphZFA5wSu8Tzw6E=; b=0HMjzty4soYD/omftcJUQPN4S4m6wAK4WPrx6aFSz21df1p3H6Pux2wi2U/KFIjbvx v7UwZ5OlmACv9Le/Lb5Rxlxw2NY5f7GLVMSWSWsxZAGupeT62s/6EsHrzZGCbfEB3BZ7 tSAyUiAYwFYAgPU2bZvYhnQ0eFcRH1ocQIpzwtFExJawkSywwNELwka/oULmM77dqiw+ A3lHta95+DUCVXtSQBTOEmUqFQqNTsilfF2cL6r+FGkoxo518kFMUD6pvrG3fU4V1sxf IgrOs2uBPKvl5V1unLtrrGzd2cIdMfDphoOwiYp05YIIcVk5V++nXatiHp1U7SqEmopN /SlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZgFtw2vlcIV30n5rbeHrN3WOs2rNphZFA5wSu8Tzw6E=; b=ik/P7hb1bv2lv4+56O0Y65bWUNmPTSQx0+kWpw4KC5aTQ9YJHyTcS/hy/FaYjcbeXS 6DlstdMtldTSqk0lIyl8sw/lu51ci+Yzv1eZPZkwSLMM+F9lx/Evn8wM3b0R/42lgzDO 39QXisYdphN4oZqik7GPxvmTbnE/4GelVOCCKk170d3ARRGh0Yo9e5k/hqv9UHHgTXME COwicbPiZzkoLzuXqu5eXJ0+KjYil3O98+tNUJr9I9u55GfmU7hUMPrQaidetn4kqye4 26eLXJ44UuK/aR7gDs1Z0iG/fDivmvO2iersBQSIxABy2pn7vYJ5Z4sdotQhd5xVbE5s GZMA== X-Gm-Message-State: ALyK8tJT+9cPxrHYAcWbSVw/Q5C2N5aim8lEK9Kzt5dDw4OH6wQXX7kIudq8HtrIrHhfjw== X-Received: by 10.98.19.77 with SMTP id b74mr38847923pfj.145.1466641634204; Wed, 22 Jun 2016 17:27:14 -0700 (PDT) Received: from fainelli-desktop.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by smtp.gmail.com with ESMTPSA id bm8sm2484392pad.10.2016.06.22.17.27.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Jun 2016 17:27:13 -0700 (PDT) From: Florian Fainelli To: linux-crypto@vger.kernel.org Subject: [PATCH 2/3] hw_random: bcm2835: Add support for Broadcom BCM5301x Date: Wed, 22 Jun 2016 17:27:02 -0700 Message-Id: <1466641623-3491-3-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466641623-3491-1-git-send-email-f.fainelli@gmail.com> References: <1466641623-3491-1-git-send-email-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160622_172733_964390_ED369A9A X-CRM114-Status: GOOD ( 12.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Florian Fainelli , herbert@gondor.apana.org.au, hauke@hauke-m.de, zajec5@gmail.com, eric@anholt.net, yendapally.reddy@broadcom.com, bcm-kernel-feedback-list@broadcom.com, devicetre@vger.kernel.org, mpm@selenic.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Broadcom BCM5301x SoCs (Northstar) utilize the same random number generator peripheral as Northstar Plus and BCM2835, but just like the NSP SoC, we need to enable the interrupt. Signed-off-by: Florian Fainelli --- drivers/char/hw_random/Kconfig | 2 +- drivers/char/hw_random/bcm2835-rng.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 51401100466b..56ad5a5936a9 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -90,7 +90,7 @@ config HW_RANDOM_BCM63XX config HW_RANDOM_BCM2835 tristate "Broadcom BCM2835 Random Number Generator support" - depends on ARCH_BCM2835 || ARCH_BCM_NSP + depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X default HW_RANDOM ---help--- This driver provides kernel-side support for the Random Number diff --git a/drivers/char/hw_random/bcm2835-rng.c b/drivers/char/hw_random/bcm2835-rng.c index 75ca820730be..af2149273fe0 100644 --- a/drivers/char/hw_random/bcm2835-rng.c +++ b/drivers/char/hw_random/bcm2835-rng.c @@ -70,6 +70,7 @@ static struct hwrng bcm2835_rng_ops = { static const struct of_device_id bcm2835_rng_of_match[] = { { .compatible = "brcm,bcm2835-rng"}, { .compatible = "brcm,bcm-nsp-rng", .data = nsp_rng_init}, + { .compatible = "brcm,bcm5301x-rng", .data = nsp_rng_init}, {}, };