From patchwork Wed Aug 15 17:07:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Hesselbarth X-Patchwork-Id: 1326501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id B7DB8DFFF9 for ; Wed, 15 Aug 2012 17:12:48 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T1h5k-00073M-MH; Wed, 15 Aug 2012 17:09:12 +0000 Received: from mail-bk0-f49.google.com ([209.85.214.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T1h5E-0006nb-GZ for linux-arm-kernel@lists.infradead.org; Wed, 15 Aug 2012 17:08:41 +0000 Received: by mail-bk0-f49.google.com with SMTP id ji2so673132bkc.36 for ; Wed, 15 Aug 2012 10:08:40 -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:x-mailer:in-reply-to:references; bh=aXZpsoFSdo2j9ACQN/YScivhS7hiBHGH0KD0OyDvxjk=; b=p+ZnTxGVyA43gQhzmKQTvb7H0mVBbJxG8duBBputdQWBlI0qT0DD32uV25SKI2tPjn xTVhPTBQ2o5JFlHwtC+NqGvFd8LC6scTzhfjccFSZxOfwcLI8voXdR+tDnsDlW3C5Ghi KQssEXlGFf4V8A2/uBkLYNsmySvXPH/I2b4McVDVaYsTD5wLH8oUw0Bjoq10UWMcMkVg hyzYJpRJuOD8p147JanF+uYjDCYmsDDVD7soxSQ8Oam0x53LW+4PlEKTRDs4LAILgkvH oM3n0f34I5YbxKsYSfqirP9wiEewCuD4eKPsk1Lr6wNDYOV8yVZH9qwqmNnrp6qS4NwJ m7ag== Received: by 10.204.130.10 with SMTP id q10mr8003107bks.90.1345050520035; Wed, 15 Aug 2012 10:08:40 -0700 (PDT) Received: from localhost.localdomain (dslc-082-083-232-154.pools.arcor-ip.net. [82.83.232.154]) by mx.google.com with ESMTPS id ht18sm1074962bkc.16.2012.08.15.10.08.36 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Aug 2012 10:08:39 -0700 (PDT) From: Sebastian Hesselbarth To: Sebastian Hesselbarth Subject: [PATCH v3 3/6] ARM: dove: add crypto engine Date: Wed, 15 Aug 2012 19:07:32 +0200 Message-Id: <1345050455-32643-4-git-send-email-sebastian.hesselbarth@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1345050455-32643-1-git-send-email-sebastian.hesselbarth@gmail.com> References: <1344681326-17946-1-git-send-email-sebastian.hesselbarth@gmail.com> <1345050455-32643-1-git-send-email-sebastian.hesselbarth@gmail.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sebastian.hesselbarth[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Andrew Lunn , Russell King , Jason Cooper , linux-kernel@vger.kernel.org, Rabeeh Khoury , Maen Suleiman , Olof Johansson , Ian Molton , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds a dove specific setup function for the Marvell CESA crypto engine available on orion based SoCs. Dove setup was just missing a function to call orion_crypto_init with dove specific setup. Signed-off-by: Sebastian Hesselbarth --- Cc: Russell King Cc: Jason Cooper Cc: Andrew Lunn Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: Rabeeh Khoury Cc: Ian Molton Cc: Maen Suleiman Cc: Olof Johansson --- arch/arm/mach-dove/common.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c index 9b2f961..66689ce 100644 --- a/arch/arm/mach-dove/common.c +++ b/arch/arm/mach-dove/common.c @@ -258,6 +258,15 @@ struct sys_timer dove_timer = { }; /***************************************************************************** + * Cryptographic Engines and Security Accelerator (CESA) + ****************************************************************************/ +void __init dove_crypto_init(void) +{ + orion_crypto_init(DOVE_CRYPT_PHYS_BASE, DOVE_CESA_PHYS_BASE, + DOVE_CESA_SIZE, IRQ_DOVE_CRYPTO); +} + +/***************************************************************************** * XOR 0 ****************************************************************************/ void __init dove_xor0_init(void)