driver: fpga: Adding Freeze Bridge for PR console support
PATCH 1/1 driver: fpga: Adding Freeze Bridge for PR console support
From: Chin Liang See <[email protected]>
Adding Partial Reconfiguration (pr) command at U-Boot console. The pr command will control the Freeze Controller which will freeze and unfreeze the Partial Reconfiguration region. The pr command also support multiple Partial Reconfiguration region by specifying the region ID.
Here are the example of expected steps for partial reconfiguration
$ bridge enable $ fatload mmc 0:1 100 pr_bitstream.rbf $ pr start 0 $ fpga load 0 100 $filesize $ pr end 0
Signed-off-by Chin Liang See <[email protected]>
Signed-off-by Jit Loon Lim <[email protected]>
--- drivers/fpga/Kconfig | 9 +++ drivers/fpga/Makefile | 1 + drivers/fpga/intel_pr.c | 141 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 drivers/fpga/intel_pr.c
drivers/fpga/Kconfig +9 -0
@@ -48,6 +48,15 @@ config FPGA_INTEL_SDM_MAILBOX Enable FPGA driver for writing full bitstream into Intel FPGA devices through SDM (Secure Device Manager) Mailbox. +config FPGA_INTEL_PR + bool "Enable Intel FPGA Partial Reconfiguration driver" + depends on FPGA_ALTERA + help + Say Y here to enable the Intel FPGA Partial Reconfiguration driver + + This provides basic functionality for partial reconfiguration which + include the freeze controller support. + config FPGA_XILINX bool "Enable Xilinx FPGA drivers" select FPGA
drivers/fpga/Makefile +1 -0
@@ -22,4 +22,5 @@ obj-$(CONFIG_FPGA_STRATIX_V) += stratixv.o obj-$(CONFIG_FPGA_SOCFPGA) += socfpga.o obj-$(CONFIG_TARGET_SOCFPGA_GEN5) += socfpga_gen5.o obj-$(CONFIG_TARGET_SOCFPGA_ARRIA10) += socfpga_arria10.o +obj-$(CONFIG_FPGA_INTEL_PR) += intel_pr.o endif
drivers/fpga/intel_pr.c new file +141 -0
141 lines not on this page · raw message
Signature · 1 line
2.26.2