Skip to content

Commit 9e9a615

Browse files
MikeLooijmansgregkh
authored andcommitted
zynq-fpga: Only route PR via PCAP when required
The Xilinx Zynq FPGA driver takes ownership of the PR interface, making it impossible to use the ICAP interface for partial reconfiguration. This patch changes the driver to only activate PR over PCAP while the device is actively being accessed by the driver for programming. This allows both PCAP and ICAP interfaces to be used for PR. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Reviewed-by: Moritz Fischer <mdf@kernel.org> Acked-by: Alan Tull <atull@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 68f6053 commit 9e9a615

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎drivers/fpga/zynq-fpga.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ static int zynq_fpga_ops_write_complete(struct fpga_manager *mgr,
501501
if (err)
502502
return err;
503503

504+
/* Release 'PR' control back to the ICAP */
505+
zynq_fpga_write(priv, CTRL_OFFSET,
506+
zynq_fpga_read(priv, CTRL_OFFSET) & ~CTRL_PCAP_PR_MASK);
507+
504508
err = zynq_fpga_poll_timeout(priv, INT_STS_OFFSET, intr_status,
505509
intr_status & IXR_PCFG_DONE_MASK,
506510
INIT_POLL_DELAY,

0 commit comments

Comments
 (0)