Home
last modified time | relevance | path

Searched full:fpga (Results 1 – 25 of 571) sorted by relevance

12345678910>>...23

/Linux-v5.10/Documentation/devicetree/bindings/fpga/
Dfpga-region.txt1 FPGA Region Device Tree Binding
9 - FPGA Region
18 FPGA Regions represent FPGA's and partial reconfiguration regions of FPGA's in
19 the Device Tree. FPGA Regions provide a way to program FPGAs under device tree
22 This device tree binding document hits some of the high points of FPGA usage and
23 attempts to include terminology used by both major FPGA manufacturers. This
24 document isn't a replacement for any manufacturers specifications for FPGA
32 * The entire FPGA is programmed.
35 * A section of an FPGA is reprogrammed while the rest of the FPGA is not
37 * Not all FPGA's support PR.
[all …]
/Linux-v5.10/drivers/fpga/
DKconfig3 # FPGA framework configuration
6 menuconfig FPGA config
7 tristate "FPGA Configuration Framework"
10 kernel. The FPGA framework adds a FPGA manager class and FPGA
13 if FPGA
16 tristate "Altera SOCFPGA FPGA Manager"
19 FPGA manager driver support for Altera SOCFPGA.
26 FPGA manager driver support for Altera Arria10 SoCFPGA.
41 tristate "Altera FPGA Passive Serial over SPI"
45 FPGA manager driver support for Altera Arria/Cyclone/Stratix
[all …]
Dfpga-mgr.c3 * FPGA Manager Core
12 #include <linux/fpga/fpga-mgr.h>
25 * fpga_image_info_alloc - Allocate a FPGA image info struct
49 * fpga_image_info_free - Free a FPGA image info struct
50 * @info: FPGA image info struct to free
70 * device-specific things to get the FPGA into the state where it is ready to
71 * receive an FPGA image. The low level driver only gets to see the first
88 dev_err(&mgr->dev, "Error preparing FPGA for writing\n"); in fpga_mgr_write_init_buf()
137 * After all the FPGA image has been written, do the device specific steps to
138 * finish and set the FPGA into operating mode.
[all …]
Dof-fpga-region.c3 * FPGA Region - Device Tree support for FPGA programming under Linux
8 #include <linux/fpga/fpga-bridge.h>
9 #include <linux/fpga/fpga-mgr.h>
10 #include <linux/fpga/fpga-region.h>
20 { .compatible = "fpga-region", },
26 * of_fpga_region_find - find FPGA region
27 * @np: device node of FPGA Region
31 * Returns FPGA Region struct or NULL
39 * of_fpga_region_get_mgr - get reference for FPGA manager
40 * @np: device node of FPGA region
[all …]
Dfpga-bridge.c3 * FPGA Bridge Framework Driver
8 #include <linux/fpga/fpga-bridge.h>
25 * @bridge: FPGA bridge
43 * @bridge: FPGA bridge
88 * of_fpga_bridge_get - get an exclusive reference to a fpga bridge
90 * @np: node pointer of a FPGA bridge
91 * @info: fpga image specific information
95 * Return -ENODEV if @np is not a FPGA Bridge.
116 * fpga_bridge_get - get an exclusive reference to a fpga bridge
117 * @dev: parent device that fpga bridge was registered with
[all …]
Dfpga-region.c3 * FPGA Region - Support for FPGA programming under Linux
8 #include <linux/fpga/fpga-bridge.h>
9 #include <linux/fpga/fpga-mgr.h>
10 #include <linux/fpga/fpga-region.h>
36 * fpga_region_get - get an exclusive reference to a fpga region
37 * @region: FPGA Region struct
43 * Return -ENODEV if @np is not a FPGA Region.
50 dev_dbg(dev, "%s: FPGA Region already in use\n", __func__); in fpga_region_get()
69 * @region: FPGA region
83 * fpga_region_program_fpga - program FPGA
[all …]
DMakefile3 # Makefile for the fpga framework and fpga manager drivers.
6 # Core FPGA Manager Framework
7 obj-$(CONFIG_FPGA) += fpga-mgr.o
9 # FPGA Manager Drivers
17 obj-$(CONFIG_FPGA_MGR_TS73XX) += ts73xx-fpga.o
19 obj-$(CONFIG_FPGA_MGR_ZYNQ_FPGA) += zynq-fpga.o
20 obj-$(CONFIG_FPGA_MGR_ZYNQMP_FPGA) += zynqmp-fpga.o
24 # FPGA Bridge Drivers
25 obj-$(CONFIG_FPGA_BRIDGE) += fpga-bridge.o
31 obj-$(CONFIG_FPGA_REGION) += fpga-region.o
[all …]
/Linux-v5.10/Documentation/driver-api/fpga/
Dfpga-region.rst1 FPGA Region
7 This document is meant to be a brief overview of the FPGA region API usage. A
12 an FPGA Manager and a bridge (or bridges) with a reprogrammable region of an
13 FPGA or the whole FPGA. The API provides a way to register a region and to
16 Currently the only layer above fpga-region.c in the kernel is the Device Tree
17 support (of-fpga-region.c) described in [#f1]_. The DT support layer uses regions
18 to program the FPGA and then DT to handle enumeration. The common region code
22 An fpga-region can be set up to know the following things:
24 * which FPGA manager to use to do the programming
28 Additional info needed to program the FPGA image is passed in the struct
[all …]
Dfpga-programming.rst1 In-kernel API for FPGA Programming
7 The in-kernel API for FPGA programming is a combination of APIs from
8 FPGA manager, bridge, and regions. The actual function used to
9 trigger FPGA programming is fpga_region_program_fpga().
12 the FPGA manager and bridges. It will:
15 * lock the mutex of the region's FPGA manager
16 * build a list of FPGA bridges if a method has been specified to do so
18 * program the FPGA using info passed in :c:expr:`fpga_region->info`.
22 The struct fpga_image_info specifies what FPGA image to program. It is
26 How to program an FPGA using a region
[all …]
Dintro.rst4 The FPGA subsystem supports reprogramming FPGAs dynamically under
5 Linux. Some of the core intentions of the FPGA subsystems are:
7 * The FPGA subsystem is vendor agnostic.
9 * The FPGA subsystem separates upper layers (userspace interfaces and
11 FPGA.
16 other users. Write the linux-fpga mailing list and maintainers and
23 FPGA Manager
26 If you are adding a new FPGA or a new method of programming an FPGA,
27 this is the subsystem for you. Low level FPGA manager drivers contain
29 includes the framework in fpga-mgr.c and the low level drivers that
[all …]
Dfpga-mgr.rst1 FPGA Manager
7 The FPGA manager core exports a set of functions for programming an FPGA with
10 The FPGA image data itself is very manufacturer specific, but for our purposes
11 it's just binary data. The FPGA manager core won't parse it.
13 The FPGA image to be programmed can be in a scatter gather list, a single
20 FPGA image as well as image-specific particulars such as whether the image was
23 How to support a new FPGA device
26 To add another FPGA manager, write a driver that implements a set of ops. The
52 mgr = devm_fpga_mgr_create(dev, "Altera SOCFPGA FPGA Manager",
73 do the programming sequence for this particular FPGA. These ops return 0 for
[all …]
Dfpga-bridge.rst1 FPGA Bridge
4 API to implement a new FPGA bridge
7 * struct fpga_bridge — The FPGA Bridge structure
13 .. kernel-doc:: include/linux/fpga/fpga-bridge.h
16 .. kernel-doc:: include/linux/fpga/fpga-bridge.h
19 .. kernel-doc:: drivers/fpga/fpga-bridge.c
22 .. kernel-doc:: drivers/fpga/fpga-bridge.c
25 .. kernel-doc:: drivers/fpga/fpga-bridge.c
/Linux-v5.10/arch/arm/mach-pxa/
Dpxa_cplds_irqs.c36 struct cplds *fpga = d; in cplds_irq_handler() local
41 pending = readl(fpga->base + FPGA_IRQ_SET_CLR) & fpga->irq_mask; in cplds_irq_handler()
43 generic_handle_irq(irq_find_mapping(fpga->irqdomain, in cplds_irq_handler()
53 struct cplds *fpga = irq_data_get_irq_chip_data(d); in cplds_irq_mask() local
57 fpga->irq_mask &= ~bit; in cplds_irq_mask()
58 writel(fpga->irq_mask, fpga->base + FPGA_IRQ_MASK_EN); in cplds_irq_mask()
63 struct cplds *fpga = irq_data_get_irq_chip_data(d); in cplds_irq_unmask() local
67 set = readl(fpga->base + FPGA_IRQ_SET_CLR); in cplds_irq_unmask()
68 writel(set & ~bit, fpga->base + FPGA_IRQ_SET_CLR); in cplds_irq_unmask()
70 fpga->irq_mask |= bit; in cplds_irq_unmask()
[all …]
/Linux-v5.10/include/linux/fpga/
Dfpga-mgr.h3 * FPGA Framework
18 * enum fpga_mgr_states - fpga framework states
20 * @FPGA_MGR_STATE_POWER_OFF: FPGA power is off
21 * @FPGA_MGR_STATE_POWER_UP: FPGA reports power is up
22 * @FPGA_MGR_STATE_RESET: FPGA in reset state
25 * @FPGA_MGR_STATE_WRITE_INIT: preparing FPGA for programming
27 * @FPGA_MGR_STATE_WRITE: writing image to FPGA
28 * @FPGA_MGR_STATE_WRITE_ERR: Error while writing FPGA
31 * @FPGA_MGR_STATE_OPERATING: FPGA is programmed and operating
34 /* default FPGA states */
[all …]
Dfpga-bridge.h7 #include <linux/fpga/fpga-mgr.h>
12 * struct fpga_bridge_ops - ops for low level FPGA bridge drivers
13 * @enable_show: returns the FPGA bridge's status
14 * @enable_set: set a FPGA bridge as enabled or disabled
15 * @fpga_bridge_remove: set FPGA into a specific state during driver remove
26 * struct fpga_bridge - FPGA bridge structure
27 * @name: name of low level FPGA bridge
28 * @dev: FPGA bridge device
30 * @br_ops: pointer to struct of FPGA bridge ops
31 * @info: fpga image specific information
[all …]
Dfpga-region.h7 #include <linux/fpga/fpga-mgr.h>
8 #include <linux/fpga/fpga-bridge.h>
11 * struct fpga_region - FPGA Region structure
12 * @dev: FPGA Region device
14 * @bridge_list: list of FPGA bridges specified in region
15 * @mgr: FPGA manager
16 * @info: FPGA image info
17 * @compat_id: FPGA region id for compatibility check.
/Linux-v5.10/Documentation/devicetree/bindings/board/
Dfsl-board.txt20 * Freescale on-board FPGA
22 This is the memory-mapped registers for on board FPGA.
26 indicating the type of FPGA. Example:
27 "fsl,<board>-fpga", "fsl,fpga-pixis", or
28 "fsl,<board>-fpga", "fsl,fpga-qixis"
29 - reg: should contain the address and the length of the FPGA register set.
37 compatible = "fsl,p1022ds-fpga", "fsl,fpga-ngpixis";
46 compatible = "fsl,ls2080ardb-fpga", "fsl,fpga-qixis";
50 * Freescale on-board FPGA connected on I2C bus
52 Some Freescale boards like BSC9132QDS have on board FPGA connected on
[all …]
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-class-fpga-manager1 What: /sys/class/fpga_manager/<fpga>/name
5 Description: Name of low level fpga manager driver.
7 What: /sys/class/fpga_manager/<fpga>/state
11 Description: Read fpga manager state as a string.
13 wrong during FPGA programming (something that the driver can't
18 This is a superset of FPGA states and fpga manager driver
19 states. The fpga manager driver is walking through these steps
20 to get the FPGA into a known operating state. It's a sequence,
21 though some steps may get skipped. Valid FPGA states will vary
25 * power off = FPGA power is off
[all …]
/Linux-v5.10/drivers/staging/gs_fpgaboot/
DREADME2 Linux Driver Source for Xilinx FPGA firmware download
16 - Download Xilinx FPGA firmware
17 - This module downloads Xilinx FPGA firmware using gpio pins.
21 An FPGA (Field Programmable Gate Array) is a programmable hardware that is
24 This driver provides a way to download FPGA firmware.
28 - load Xilinx FPGA bitstream format[1] firmware image file using
30 - program the Xilinx FPGA using SelectMAP (parallel) mode [2]
31 - FPGA prgram is done by gpio based bit-banging, as an example
42 a. As a FPGA development support tool,
43 During FPGA firmware development, you need to download a new FPGA
[all …]
/Linux-v5.10/Documentation/fpga/
Ddfl.rst2 FPGA Device Feature List (DFL) Framework Overview
11 The Device Feature List (DFL) FPGA framework (and drivers according to
14 configure, enumerate, open and access FPGA accelerators on platforms which
16 enables system level management functions such as FPGA reconfiguration.
23 walk through these predefined data structures to enumerate FPGA features:
24 FPGA Interface Unit (FIU), Accelerated Function Unit (AFU) and Private Features,
55 FPGA Interface Unit (FIU) represents a standalone functional unit for the
56 interface to FPGA, e.g. the FPGA Management Engine (FME) and Port (more
59 Accelerated Function Unit (AFU) represents a FPGA programmable region and
74 and can be implemented in register regions of any FPGA device.
[all …]
/Linux-v5.10/Documentation/driver-api/
Dxillybus.rst2 Xillybus driver for generic FPGA interface
22 -- Host never reads from the FPGA
37 An FPGA (Field Programmable Gate Array) is a piece of logic hardware, which
48 level, even lower than assembly language. In order to allow FPGA designers to
51 FPGA parallels of library functions. IP cores may implement certain
57 One of the daunting tasks in FPGA design is communicating with a fullblown
60 (registers, interrupts, DMA etc.) is a project in itself. When the FPGA's
62 make sense to design the FPGA's interface logic specifically for the project.
63 A special driver is then written to present the FPGA as a well-known interface
65 FPGA differently than any device on the bus.
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dsdk.h42 * This header defines the in-kernel API for Innova FPGA client drivers.
52 /** Use the slow CX-FPGA I2C bus */
86 * @conn: FPGA Connection this packet was sent to
87 * @fdev: FPGA device this packet was sent to
97 * struct mlx5_fpga_conn_attr - FPGA connection attributes
120 * mlx5_fpga_sbu_conn_create() - Initialize a new FPGA SBU connection
121 * @fdev: The FPGA device
124 * Sets up a new FPGA SBU connection with the specified attributes.
138 * mlx5_fpga_sbu_conn_destroy() - Destroy an FPGA SBU connection
139 * @conn: The FPGA SBU connection to destroy
[all …]
/Linux-v5.10/drivers/watchdog/
Dpika_wdt.c3 * PIKA FPGA based Watchdog Timer
50 void __iomem *fpga; member
71 /* -- FPGA: Reset Control Register (32bit R/W) (Offset: 0x14) -- in pikawdt_reset()
80 unsigned reset = in_be32(pikawdt_private.fpga + 0x14); in pikawdt_reset()
83 out_be32(pikawdt_private.fpga + 0x14, reset); in pikawdt_reset()
229 void __iomem *fpga; in pikawdt_init() local
233 np = of_find_compatible_node(NULL, NULL, "pika,fpga"); in pikawdt_init()
235 pr_err("Unable to find fpga\n"); in pikawdt_init()
239 pikawdt_private.fpga = of_iomap(np, 0); in pikawdt_init()
241 if (pikawdt_private.fpga == NULL) { in pikawdt_init()
[all …]
/Linux-v5.10/arch/arm/mach-omap1/
Dfpga.c3 * linux/arch/arm/mach-omap1/fpga.c
5 * Interrupt handler for OMAP-1510 Innovator FPGA
12 * Separated FPGA interrupts from innovator1510.c and cleaned up for 2.6
31 #include "fpga.h"
63 /* Don't need to explicitly ACK FPGA interrupts */ in fpga_ack_irq()
107 .name = "FPGA-ack",
115 .name = "FPGA",
122 * All of the FPGA interrupt request inputs except for the touchscreen are
125 * status register from the FPGA. The edge-sensitive interrupt inputs
128 * interrupt input is masked in the FPGA, which results in a missed
[all …]
/Linux-v5.10/arch/sh/include/mach-common/mach/
Dmicrodev.h17 * controller (INTC) on the CPU-board FPGA. should be noted that there
18 * is an INTC on the FPGA, and a separate INTC on the SH4-202 core -
23 #define MICRODEV_FPGA_INTC_BASE 0xa6110000ul /* INTC base address on CPU-board FPGA */
24 …INTENB_REG (MICRODEV_FPGA_INTC_BASE+0ul) /* Interrupt Enable Register on INTC on CPU-board FPGA */
25 …NTDSB_REG (MICRODEV_FPGA_INTC_BASE+8ul) /* Interrupt Disable Register on INTC on CPU-board FPGA */
26 …RODEV_FPGA_INTC_MASK(n) (1ul<<(n)) /* Interrupt mask to enable/disable INTC in CPU-board FPGA */
27 …(MICRODEV_FPGA_INTC_BASE+0x10+((n)/8)*8)/* Interrupt Priority Register on INTC on CPU-board FPGA */
29 …(n) (MICRODEV_FPGA_INTPRI_LEVEL((n),0xful)) /* Interrupt Priority Mask on INTC on CPU-board FPGA */
30 …TSRC_REG (MICRODEV_FPGA_INTC_BASE+0x30ul) /* Interrupt Source Register on INTC on CPU-board FPGA */
31 …REQ_REG (MICRODEV_FPGA_INTC_BASE+0x38ul) /* Interrupt Request Register on INTC on CPU-board FPGA */
[all …]

12345678910>>...23