From patchwork Mon Oct 10 09:46:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Ferre X-Patchwork-Id: 118669 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 90E80B70B7 for ; Mon, 10 Oct 2011 20:47:09 +1100 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RDCRo-0001M6-LR; Mon, 10 Oct 2011 09:47:00 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RDCRo-0003KS-CK; Mon, 10 Oct 2011 09:47:00 +0000 Received: from newsmtp5.atmel.com ([204.2.163.5] helo=sjogate2.atmel.com) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RDCRl-0003Jx-Rg for linux-arm-kernel@lists.infradead.org; Mon, 10 Oct 2011 09:46:58 +0000 Received: from meyreuil.atmel.fr ([10.159.254.132]) by sjogate2.atmel.com (8.13.6/8.13.6) with ESMTP id p9A9gmT3028951; Mon, 10 Oct 2011 02:42:55 -0700 (PDT) Received: from [10.159.245.112] ([10.159.245.112]) by meyreuil.atmel.fr (8.11.7p1+Sun/8.11.7) with ESMTP id p9A9kHe13501; Mon, 10 Oct 2011 11:46:17 +0200 (MEST) Message-ID: <4E92BEE9.5090604@atmel.com> Date: Mon, 10 Oct 2011 11:46:17 +0200 From: Nicolas Ferre Organization: atmel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Arnd Bergmann , "'linux-arm-kernel@lists.infradead.org'" Subject: [GIT PULL] at91: driver for Atmel true hardware random number generator X-Enigmail-Version: 1.3.2 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20111010_054658_072310_D52ACA13 X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.5 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: Peter Korsgaard , Jean-Christophe PLAGNIOL-VILLARD , Linux Kernel list , herbert@gondor.hengli.com.au X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hi Arnd, Here is a couple of patches for adding the True Random Number Generator that can be find on some AT91SAM SoCs. Herbert Xu told me that this material can go through the ARM SoC tree. They may conflict with future work on at91 gpio that can be found on at91-next branch. We will recall you this during the "pull request" that we will send you for those bits... The following changes since commit 976d167615b64e14bc1491ca51d424e2ba9a5e84: Linux 3.1-rc9 (2011-10-04 18:11:50 -0700) are available in the git repository at: git://github.com/at91linux/linux-at91.git for-arnd/at91-trng Peter Korsgaard (2): ARM: at91: at91sam9g45: add trng clock and platform device hw_random: add driver for atmel true hardware random number generator arch/arm/mach-at91/at91sam9g45.c | 7 ++ arch/arm/mach-at91/at91sam9g45_devices.c | 29 ++++++ drivers/char/hw_random/Kconfig | 13 +++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/atmel-rng.c | 158 ++++++++++++++++++++++++++++++ 5 files changed, 208 insertions(+), 0 deletions(-) create mode 100644 drivers/char/hw_random/atmel-rng.c Thanks, cheers,