From patchwork Fri Feb 4 13:35:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12735070 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B898C433FE for ; Fri, 4 Feb 2022 13:36:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=SGy4/FI9slOdsYBJuo9I80/Yoa7R+HaPHmOiv2vwI+o=; b=vva0rY8iVj5r0e yQmVeEre4U7DNJ/Zh0zp3dZK1tKfXtI1EdifBjV2P3shw1HAPzzfsWhbVBnFhdcwgTq2ZNbr1CU9j SFcVuzYu3PeK1EWcfPRvIjrAYrgh8Fc0qBtHRk/iIG5odUh1/HdYFZ04pnKAn4KYaFR3/+WBS1+G0 /Ph2aQ8arwM9QGhG3bhydVbuyqfb6gutEgLSoUivkTj5R90hN9gjMaPHIBV9VdWmJm3UUru6Xbzmt s43iojn+s5T7S9Ctn6al6UXM/Te86eBnMSDQYfbGSNuKglG4gbveemAYbqc60+l+wiYeTUGeoyWkF 5rztMSzGnwDUR+4lj8Dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFykS-004PJP-NA; Fri, 04 Feb 2022 13:35:36 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFykN-004PIC-5P for linux-arm-kernel@lists.infradead.org; Fri, 04 Feb 2022 13:35:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1643981731; x=1675517731; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IoStn4DVmu98unEojJq/9FbPgC7txAU64kKBw7DDTL0=; b=BAUJpjzujUlrMtU1o6XFq2sfc4aRuRuPHQ8hI1VGrwoe5HGURWjViupL rGSRml99FAok8sVk4J17PpWORht9HhIzDQUBceFhct0BxLgqaE2HxooiW YHdfQMDQeE3yLZ1hvqxZ0CqtqM59HlHhuFg5U1S6mV5q9XzX8rX3jDacT SnBmFeHjyKQOGxIqqGX7CUHc1Agfr+Blb9W/TnjTpy+JhaznW6IGw/sIn hZb7jxxIpiz8uXnJji5BbhyoOubg+6CF1TS3H/kfEml9zmYBg96imGJDY cLL0BIa0GIdqUhFBQeiy/ZItLdm4OLcIz1dgjGe4TVY4RCdB7fRAb0xK7 Q==; IronPort-SDR: bQiJFDJTWGJ+vJW5Om2VIWR+4ssi1NDmVcD6CoXPejWtOuqEzDC6AL1qOuvKg7ghwhKn+rzGbn Ppm5v0ZWtq/2FS5+vzvJb3dWzoRlQ1X8cNc6rhIcnatpj+63qx9kD3DSfKJjy+oRZn3dm8AC40 DvVN8ypkB8BXiQqi6iYkAghFLBbFqZdUbbSctl71I23E/gdTFdswBBsTzpHINffIwtZPi38kh0 4BTz6dsekaUgBYapiImGavrrzmp3z5t+ZThLXW4PIMq2Bn8W8RB6W4KSLqINzHYl4eAYqmBsZh qdu1u8tMgPZVLoy7DXD3Www7 X-IronPort-AV: E=Sophos;i="5.88,342,1635231600"; d="scan'208";a="161111958" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Feb 2022 06:35:28 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 4 Feb 2022 06:35:28 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 4 Feb 2022 06:35:24 -0700 From: Tudor Ambarus To: Subject: [PATCH] crypto: atmel-tdes: Add support for the TDES IP available on sama7g5 SoC Date: Fri, 4 Feb 2022 15:35:22 +0200 Message-ID: <20220204133522.498387-1-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_053531_296162_0E233892 X-CRM114-Status: UNSURE ( 7.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.belloni@bootlin.com, Tudor Ambarus , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, kavyasree.kotagiri@microchip.com, claudiu.beznea@microchip.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for the TDES IP found on sama7g5. Signed-off-by: Tudor Ambarus --- drivers/crypto/atmel-tdes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/atmel-tdes.c b/drivers/crypto/atmel-tdes.c index e30786ec9f2d..9fd7b8e439d2 100644 --- a/drivers/crypto/atmel-tdes.c +++ b/drivers/crypto/atmel-tdes.c @@ -1130,6 +1130,7 @@ static void atmel_tdes_get_cap(struct atmel_tdes_dev *dd) /* keep only major version number */ switch (dd->hw_version & 0xf00) { + case 0x800: case 0x700: dd->caps.has_dma = 1; dd->caps.has_cfb_3keys = 1;