Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751670AbcKGAOg (ORCPT ); Sun, 6 Nov 2016 19:14:36 -0500 Received: from mail-pf0-f181.google.com ([209.85.192.181]:32796 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbcKGAOP (ORCPT ); Sun, 6 Nov 2016 19:14:15 -0500 From: Moritz Fischer To: linux-kernel@vger.kernel.org Cc: moritz.fischer.private@gmail.com, atull@opensource.altera.com, michal.simek@xilinx.com, soren.brinkmann@xilinx.com, linux-arm-kernel@lists.infradead.org, julia@ni.com, Moritz Fischer Subject: [PATCH 4/4] fpga mgr: socfpga: Expose support for encrypted bitstreams Date: Sun, 6 Nov 2016 17:13:26 -0700 Message-Id: <20161107001326.7395-5-moritz.fischer@ettus.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161107001326.7395-1-moritz.fischer@ettus.com> References: <20161107001326.7395-1-moritz.fischer@ettus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1124 Lines: 39 Expose support for on the fly decryption of bitstreams. This needs no additional work or configuration, so just expose the new capability. Signed-off-by: Moritz Fischer Cc: Alan Tull Cc: Michal Simek Cc: Sören Brinkmann Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- Alan, can you please let me know if that works this way, or where to find information on encrypted bitstreams? I have a CycloneV SoCFPGA to test on ... Cheers, Moritz --- drivers/fpga/socfpga.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c index fd9760c..ab57ec0c 100644 --- a/drivers/fpga/socfpga.c +++ b/drivers/fpga/socfpga.c @@ -579,6 +579,7 @@ static int socfpga_fpga_probe(struct platform_device *pdev) fpga_mgr_cap_zero(&caps); fpga_mgr_cap_set(FPGA_MGR_CAP_FULL_RECONF, caps); + fpga_mgr_cap_set(FPGA_MGR_CAP_DECRYPT, caps); return fpga_mgr_register(dev, "Altera SOCFPGA FPGA Manager", &socfpga_fpga_ops, caps, priv); -- 2.10.0