From patchwork Wed Oct 23 20:05:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 177353 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1216030ill; Wed, 23 Oct 2019 13:07:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzA9Dgtz+SzcZExQRHN1y7lsPWHBJJTzBzJgVT1ZZ1JWR1Y51C5t8F+kDxEMwmRvwIR8LKo X-Received: by 2002:a17:907:10d3:: with SMTP id rv19mr33224075ejb.301.1571861156646; Wed, 23 Oct 2019 13:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861156; cv=none; d=google.com; s=arc-20160816; b=P1tbdbmmQn1pxg22e6ucdi/wZP1ZKNl6pEWoTObam967DCp/51qoL5ROpTkErao9MA jENUk+yeaRHrczIlLynpZbYXhmXLVGsCd4oI1rxadtUzbq4KK4VudbUHUkBWa4k/YKTK ta9HzlaLKRWhPP0ZYKHX5DRHTvjf291GQrmaHwY3agbjGgOKaB2UpWNvVbIsgKZ6rD+v BqRHEX0XH7pQyQv3KFK7TH1x4GffFb2QnvF5ExTdobg//asOcB+fhLydxZrQe1oBBTum iKZI6rx15BppY+QoIC/9AvNY8Eg45LsslzwFdLgv9CvVDlPoCm8fdlPc8kwS3AIvuZ9o Z3gQ== 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 :dkim-signature; bh=1LcPRSweYpxW+Ru1oGSa20C29+Rhu7RNAj0ZxbDdCTI=; b=pFEiVZhOdPOO5SsiFGX9+iTrJpBhMcHjSLrAQUkjNsUgEBaT0Vs4QwBRcDznIsyNJF B5obzwaiHE3Ww/BF7QshrouGuIX7nIuVB6cPGZKmJ54CXH4XY+GXD9YMbmElIN84vEnC dYsi1Dmj3ASFNcKAoQKEkt9PaDpjUse1iVmXH2dm7bcYo6n6P59rwH7sGDolkf8ogdTf 4/T+/AmIePcUZqLx9RAPHi6yzQZj6bWmVoXIx6E7O6UPjDVZI0Chq5WXHqboT8zanYCx odB6SEDGD1an89Lnmp/VV11yotxz+HnIvTiLODwh38RJn2JbJ0MX/kgxoJRmkxMifjOr Guvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U66CqiY4; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si15605205edc.50.2019.10.23.13.05.56; Wed, 23 Oct 2019 13:05:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U66CqiY4; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407349AbfJWUFa (ORCPT + 3 others); Wed, 23 Oct 2019 16:05:30 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43005 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407338AbfJWUF3 (ORCPT ); Wed, 23 Oct 2019 16:05:29 -0400 Received: by mail-wr1-f66.google.com with SMTP id r1so13657590wrs.9; Wed, 23 Oct 2019 13:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1LcPRSweYpxW+Ru1oGSa20C29+Rhu7RNAj0ZxbDdCTI=; b=U66CqiY4+lFNvwG903V5JZTA1ctJodLAwwNzXswZ6B2C1OIJetWoDLLz2fCLY+enHt tEQGsyVyHxrvDRAzotOg1hArtf+PmvY/UELd1/J5G0NWQ1VPHZyJvgpyPHSyNrsKvVpB urILbX7Vy6HtUiuunGEETFxBfVKMTY0tL7JtCg/R5ahcVdopNaVtj+tWyHOnU+9+sVl2 p3qb6uj6kEZonvYAklSXjKjldqKxEjLrwmbVzYGI2mlsgqOXlpklbfv96U0HZkDvnKY0 rTSRd8apocs3dlPXkGzZppqkC1k4Bx9VLaWgxMWB+AFc79sieDKZqkYLNtcmxCaEpAWC CWLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1LcPRSweYpxW+Ru1oGSa20C29+Rhu7RNAj0ZxbDdCTI=; b=dlAxwfLrHDwSjIqWRGcxQn4b69WoEdk9EusTEQIyOTu5LG7J1Ns7c+Jnv6REbVJ2OJ U22vyWu7gbMenAlGZopwl2oXtGc/vFBaVD5WEIQtK8JFXgagxgX7IeZppVylozL06UH2 rB1jFl5FJE0dBr0swpw/aYh1xsqAhc5VT1EVm0G14uNWCC4GTDWZaM5zCbyvA8RbhiJX lNJZ5G+gm2bII262N9eNvlC2golb3c9+uf1RmeDTEeV03AttsTKYFnuVS0PkD/NwUvV0 f9q6q5QZoHssmKSHfo8PoAjQmAk4UglBOAlp8FLzxoGgisIAPBINL8R6JjBjTPDEtRtX AAeA== X-Gm-Message-State: APjAAAX1RJ/oUQQleK0vTLHB8HTlIiosExDldXNIf0lSs208UEDYHbQ5 XtRj+ZuHJ6LTc+9vYLuZTu4= X-Received: by 2002:adf:828c:: with SMTP id 12mr446863wrc.40.1571861126143; Wed, 23 Oct 2019 13:05:26 -0700 (PDT) Received: from Red.localdomain (lfbn-1-7036-79.w90-116.abo.wanadoo.fr. [90.116.209.79]) by smtp.googlemail.com with ESMTPSA id b5sm177555wmj.18.2019.10.23.13.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 13:05:25 -0700 (PDT) From: Corentin Labbe To: catalin.marinas@arm.com, davem@davemloft.net, herbert@gondor.apana.org.au, linux@armlinux.org.uk, mark.rutland@arm.com, mripard@kernel.org, robh+dt@kernel.org, wens@csie.org, will@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe Subject: [PATCH v6 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node Date: Wed, 23 Oct 2019 22:05:07 +0200 Message-Id: <20191023200513.22630-6-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191023200513.22630-1-clabbe.montjoie@gmail.com> References: <20191023200513.22630-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.21.0 diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index e37c30e811d3..78356db14fbb 100644 --- a/arch/arm/boot/dts/sun8i-h3.dtsi +++ b/arch/arm/boot/dts/sun8i-h3.dtsi @@ -153,6 +153,15 @@ allwinner,sram = <&ve_sram 1>; }; + crypto: crypto@1c15000 { + compatible = "allwinner,sun8i-h3-crypto"; + reg = <0x01c15000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; + clock-names = "bus", "mod"; + resets = <&ccu RST_BUS_CE>; + }; + mali: gpu@1c40000 { compatible = "allwinner,sun8i-h3-mali", "arm,mali-400"; reg = <0x01c40000 0x10000>; From patchwork Wed Oct 23 20:05:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 177349 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp1213858ill; Wed, 23 Oct 2019 13:05:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxth7JmHz6AXJoYL7bwJ82gh5VNhFtP6Abu80+EazQH0p0D8RsPJHwTFEOaTVEMtv4KfBAf X-Received: by 2002:aa7:dd89:: with SMTP id g9mr23607086edv.100.1571861142666; Wed, 23 Oct 2019 13:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861142; cv=none; d=google.com; s=arc-20160816; b=OombJAL1T1TR7a3Ic6kbIrurhcClHG1nLrC4jdmHS0+7anDQ39DIDUxDOU5OCBc5n9 9XlNBRGFJHdfkny59QwVmjdWIgJ9wEU/NVkUhkACoITIRBYAv9UWBO/pfAVA7E4tJBlR Sv33fxyG1P3eb9NY26izPoa2JF7eQTtjwCP1SDLCx8g279S5SW8lEe4HAARVDEbGa1/x Ro3NbAsaCluXRgvPUI17aP+e4MulxJWlM0Ro+knkNAnOMf/Zgb06tVKdRZdZKI43ONVk lWBycCMOdjKCNUKa0YiX+Nzl3mp8uTgdrKIIDTNPPXHS0K+fWo4x7erc3W8ilChH6EUb XABA== 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 :dkim-signature; bh=e457YyDFVfE5IUj3AWYMM47UgnP78lQnD30EkuZGvV4=; b=jCkV69tHowF4bdab2LTeytkjcgXKLnASMw0mxVzmJsZBUFcifjxl2GrkFlGLLd8TgL 0plWrS3s11FRg9mfs09os/fdBmmW6hE7SLP70l1EuU7Fn4qqJFUqwX2He/PJxhcXQgkc 4n1OcXWKRZb5yXRglcsiKVKDvbKDmRxfC1m2L1X1R5CBbasU371tdYQul6pGJVoR7ofm hzCqgETtxKpcrZfQekpBuOQKtZSwwvnfVp5dpCGLqmAlYuVsqzQSx+iF04VXV6yvGBmV BNOJYN8OFfyAnHvWFGoTb468G0VyzVwqypkiqPX4Tp6Lcb2x1ar+3engR3fO7UWNqA7q zoVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nd5+8Wyf; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qo6si13965331ejb.386.2019.10.23.13.05.42; Wed, 23 Oct 2019 13:05:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nd5+8Wyf; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405532AbfJWUFi (ORCPT + 3 others); Wed, 23 Oct 2019 16:05:38 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51095 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407364AbfJWUFi (ORCPT ); Wed, 23 Oct 2019 16:05:38 -0400 Received: by mail-wm1-f66.google.com with SMTP id q13so285791wmj.0; Wed, 23 Oct 2019 13:05:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e457YyDFVfE5IUj3AWYMM47UgnP78lQnD30EkuZGvV4=; b=Nd5+8WyfUvMvrRGpAoQzAIWF3RPRPKytP45I3c6Eu9F5W6Y/MRlrceT/kdCy7vg6bq EtLJJIpSHXC52vNPUadKytkaujNUGUMZhst5iZI3nvSdB4PBUcUHlyzKeUBgDhJ3jJeE nShz+HHFspjQddQifOtG+y0axO+D0UMJiOSkNLppnLqGas8fxrqvObMGYAA02GDFfXic FUBX3IFSt9CNSBpLTa2bfRcRwTIRRSyzxJw7LeXGrKkGTnguNec70OpSSUJwzozMEDN0 uQqNS84h5TriKM05W2Gxw4xIkQ6pb1I/FfLY7Pb3F+fOWj6EmySQFJ+JZjIM7VuSWIcH suSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e457YyDFVfE5IUj3AWYMM47UgnP78lQnD30EkuZGvV4=; b=jgJoBtHHEKT2C7sxoqpDVj1nYM9jK8Ej7wHAX+U8KRz0VhKb0JR41PFWt075r/N9t3 0dK4GcTURP8/+fpLMhEOGzCP7ZIsOTaJSu9+pcude14lsV+OeTvuDehzyhKjGL2LzGKn V82C+pobcBTSACMsslWIszmkP6RyU7gX0fJxJZCujheeeN7zxWIpifyGG/pQbxfZPYt/ f+r2176xX4RPKlB5qeAYgpEHcehi8X/xlcy11cRnWWY33fOXUVIzTpvm/Zas+HIUogOY U4SXih4KoSdh9IG6jDtn3+/NBDbbImpLhSoGjO3Tx5gvCBn+3DTK8GC1ncsVifVynj/S 65Bw== X-Gm-Message-State: APjAAAUf/t+eXFlITZP0iNkRHcQJVwBMn1HbF6/K6ofLpQVyUZipZ+Zb cbyGgCgMzxGqUJ6J1CD7mMFuAtA3 X-Received: by 2002:a05:600c:21d7:: with SMTP id x23mr1497043wmj.6.1571861134886; Wed, 23 Oct 2019 13:05:34 -0700 (PDT) Received: from Red.localdomain (lfbn-1-7036-79.w90-116.abo.wanadoo.fr. [90.116.209.79]) by smtp.googlemail.com with ESMTPSA id b5sm177555wmj.18.2019.10.23.13.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 13:05:34 -0700 (PDT) From: Corentin Labbe To: catalin.marinas@arm.com, davem@davemloft.net, herbert@gondor.apana.org.au, linux@armlinux.org.uk, mark.rutland@arm.com, mripard@kernel.org, robh+dt@kernel.org, wens@csie.org, will@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe Subject: [PATCH v6 11/11] crypto: sun4i-ss: Move to Allwinner directory Date: Wed, 23 Oct 2019 22:05:13 +0200 Message-Id: <20191023200513.22630-12-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191023200513.22630-1-clabbe.montjoie@gmail.com> References: <20191023200513.22630-1-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Since we have a dedicated Allwinner directory for crypto driver, move the sun4i-ss driver in it. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ----- drivers/crypto/Kconfig | 26 ------------------ drivers/crypto/Makefile | 1 - drivers/crypto/allwinner/Kconfig | 27 +++++++++++++++++++ drivers/crypto/allwinner/Makefile | 1 + .../{sunxi-ss => allwinner/sun4i-ss}/Makefile | 0 .../sun4i-ss}/sun4i-ss-cipher.c | 0 .../sun4i-ss}/sun4i-ss-core.c | 0 .../sun4i-ss}/sun4i-ss-hash.c | 0 .../sun4i-ss}/sun4i-ss-prng.c | 0 .../sun4i-ss}/sun4i-ss.h | 0 11 files changed, 28 insertions(+), 33 deletions(-) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/Makefile (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss-cipher.c (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss-core.c (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss-hash.c (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss-prng.c (100%) rename drivers/crypto/{sunxi-ss => allwinner/sun4i-ss}/sun4i-ss.h (100%) -- 2.21.0 diff --git a/MAINTAINERS b/MAINTAINERS index 9153c02e1f63..2120c74f476a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -684,12 +684,6 @@ S: Maintained F: Documentation/devicetree/bindings/opp/sun50i-nvmem-cpufreq.txt F: drivers/cpufreq/sun50i-cpufreq-nvmem.c -ALLWINNER SECURITY SYSTEM -M: Corentin Labbe -L: linux-crypto@vger.kernel.org -S: Maintained -F: drivers/crypto/sunxi-ss/ - ALLWINNER CRYPTO DRIVERS M: Corentin Labbe L: linux-crypto@vger.kernel.org diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 610bb52d77d6..9f08ed72eae8 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -659,32 +659,6 @@ config CRYPTO_DEV_IMGTEC_HASH hardware hash accelerator. Supporting MD5/SHA1/SHA224/SHA256 hashing algorithms. -config CRYPTO_DEV_SUN4I_SS - tristate "Support for Allwinner Security System cryptographic accelerator" - depends on ARCH_SUNXI && !64BIT - depends on PM - select CRYPTO_MD5 - select CRYPTO_SHA1 - select CRYPTO_AES - select CRYPTO_LIB_DES - select CRYPTO_BLKCIPHER - help - Some Allwinner SoC have a crypto accelerator named - Security System. Select this if you want to use it. - The Security System handle AES/DES/3DES ciphers in CBC mode - and SHA1 and MD5 hash algorithms. - - To compile this driver as a module, choose M here: the module - will be called sun4i-ss. - -config CRYPTO_DEV_SUN4I_SS_PRNG - bool "Support for Allwinner Security System PRNG" - depends on CRYPTO_DEV_SUN4I_SS - select CRYPTO_RNG - help - Select this option if you want to provide kernel-side support for - the Pseudo-Random Number Generator found in the Security System. - config CRYPTO_DEV_ROCKCHIP tristate "Rockchip's Cryptographic Engine driver" depends on OF && ARCH_ROCKCHIP diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index 90d60eff5ecc..79e2da4a51e4 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -40,7 +40,6 @@ obj-$(CONFIG_CRYPTO_DEV_ROCKCHIP) += rockchip/ obj-$(CONFIG_CRYPTO_DEV_S5P) += s5p-sss.o obj-$(CONFIG_CRYPTO_DEV_SAHARA) += sahara.o obj-$(CONFIG_ARCH_STM32) += stm32/ -obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sunxi-ss/ obj-$(CONFIG_CRYPTO_DEV_TALITOS) += talitos.o obj-$(CONFIG_CRYPTO_DEV_UX500) += ux500/ obj-$(CONFIG_CRYPTO_DEV_VIRTIO) += virtio/ diff --git a/drivers/crypto/allwinner/Kconfig b/drivers/crypto/allwinner/Kconfig index a3e5781fa95e..9c445973ca08 100644 --- a/drivers/crypto/allwinner/Kconfig +++ b/drivers/crypto/allwinner/Kconfig @@ -5,6 +5,33 @@ config CRYPTO_DEV_ALLWINNER help Say Y here to get to see options for Allwinner hardware crypto devices +config CRYPTO_DEV_SUN4I_SS + tristate "Support for Allwinner Security System cryptographic accelerator" + depends on ARCH_SUNXI && !64BIT + depends on PM + depends on CRYPTO_DEV_ALLWINNER + select CRYPTO_MD5 + select CRYPTO_SHA1 + select CRYPTO_AES + select CRYPTO_LIB_DES + select CRYPTO_BLKCIPHER + help + Some Allwinner SoC have a crypto accelerator named + Security System. Select this if you want to use it. + The Security System handle AES/DES/3DES ciphers in CBC mode + and SHA1 and MD5 hash algorithms. + + To compile this driver as a module, choose M here: the module + will be called sun4i-ss. + +config CRYPTO_DEV_SUN4I_SS_PRNG + bool "Support for Allwinner Security System PRNG" + depends on CRYPTO_DEV_SUN4I_SS + select CRYPTO_RNG + help + Select this option if you want to provide kernel-side support for + the Pseudo-Random Number Generator found in the Security System. + config CRYPTO_DEV_SUN8I_CE tristate "Support for Allwinner Crypto Engine cryptographic offloader" select CRYPTO_BLKCIPHER diff --git a/drivers/crypto/allwinner/Makefile b/drivers/crypto/allwinner/Makefile index 11f02db9ee06..fdb720c5bcc7 100644 --- a/drivers/crypto/allwinner/Makefile +++ b/drivers/crypto/allwinner/Makefile @@ -1 +1,2 @@ +obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss/ obj-$(CONFIG_CRYPTO_DEV_SUN8I_CE) += sun8i-ce/ diff --git a/drivers/crypto/sunxi-ss/Makefile b/drivers/crypto/allwinner/sun4i-ss/Makefile similarity index 100% rename from drivers/crypto/sunxi-ss/Makefile rename to drivers/crypto/allwinner/sun4i-ss/Makefile diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-cipher.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-core.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss-core.c rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-hash.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss-hash.c rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-prng.c b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss-prng.c rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c diff --git a/drivers/crypto/sunxi-ss/sun4i-ss.h b/drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h similarity index 100% rename from drivers/crypto/sunxi-ss/sun4i-ss.h rename to drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h