Home
last modified time | relevance | path

Searched refs:fpga (Results 1 – 25 of 208) sorted by relevance

123456789

/OK3568_Linux_fs/kernel/arch/arm/mach-pxa/
H A 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 …]
/OK3568_Linux_fs/u-boot/board/gdsys/common/
H A Dcmd_ioloop.c56 static void io_check_status(unsigned int fpga, u16 status, bool silent) in io_check_status() argument
63 FPGA_SET_REG(fpga, ep.rx_tx_status, status); in io_check_status()
68 FPGA_SET_REG(fpga, ep.rx_tx_status, status); in io_check_status()
89 static void io_send(unsigned int fpga, unsigned int size) in io_send() argument
100 FPGA_SET_REG(fpga, ep.transmit_data, *p++); in io_send()
103 FPGA_SET_REG(fpga, ep.transmit_data, k); in io_send()
105 FPGA_SET_REG(fpga, ep.rx_tx_control, in io_send()
111 static void io_receive(unsigned int fpga) in io_receive() argument
116 FPGA_GET_REG(fpga, ep.rx_tx_status, &rx_tx_status); in io_receive()
124 FPGA_GET_REG(fpga, ep.receive_data, &rx); in io_receive()
[all …]
/OK3568_Linux_fs/kernel/Documentation/driver-api/fpga/
H A Dfpga-region.rst16 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
22 An fpga-region can be set up to know the following things:
42 .. [#f1] ../devicetree/bindings/fpga/fpga-region.txt
43 .. [#f2] ../../drivers/fpga/of-fpga-region.c
75 .. kernel-doc:: include/linux/fpga/fpga-region.h
78 .. kernel-doc:: drivers/fpga/fpga-region.c
81 .. kernel-doc:: drivers/fpga/fpga-region.c
84 .. kernel-doc:: drivers/fpga/fpga-region.c
87 .. kernel-doc:: drivers/fpga/fpga-mgr.c
[all …]
H A Dfpga-bridge.rst13 .. 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
H A Dfpga-programming.rst34 #include <linux/fpga/fpga-mgr.h>
35 #include <linux/fpga/fpga-region.h>
92 .. kernel-doc:: drivers/fpga/fpga-region.c
97 .. kernel-doc:: include/linux/fpga/fpga-mgr.h
100 .. kernel-doc:: include/linux/fpga/fpga-mgr.h
103 .. kernel-doc:: drivers/fpga/fpga-mgr.c
106 .. kernel-doc:: drivers/fpga/fpga-mgr.c
H A Dfpga-mgr.rst111 .. kernel-doc:: include/linux/fpga/fpga-mgr.h
114 .. kernel-doc:: include/linux/fpga/fpga-mgr.h
117 .. kernel-doc:: include/linux/fpga/fpga-mgr.h
120 .. kernel-doc:: drivers/fpga/fpga-mgr.c
123 .. kernel-doc:: drivers/fpga/fpga-mgr.c
126 .. kernel-doc:: drivers/fpga/fpga-mgr.c
/OK3568_Linux_fs/u-boot/drivers/fpga/
H A Daltera.c100 const struct altera_fpga *fpga = altera_desc_to_fpga(desc, __func__); in altera_load() local
102 if (!fpga) in altera_load()
106 __func__, fpga->name); in altera_load()
107 if (fpga->load) in altera_load()
108 return fpga->load(desc, buf, bsize); in altera_load()
114 const struct altera_fpga *fpga = altera_desc_to_fpga(desc, __func__); in altera_dump() local
116 if (!fpga) in altera_dump()
120 __func__, fpga->name); in altera_dump()
121 if (fpga->dump) in altera_dump()
122 return fpga->dump(desc, buf, bsize); in altera_dump()
[all …]
/OK3568_Linux_fs/u-boot/board/xilinx/zynq/
H A Dboard.c19 static xilinx_desc fpga; variable
44 fpga = fpga007s; in board_init()
47 fpga = fpga010; in board_init()
50 fpga = fpga012s; in board_init()
53 fpga = fpga014s; in board_init()
56 fpga = fpga015; in board_init()
59 fpga = fpga020; in board_init()
62 fpga = fpga030; in board_init()
65 fpga = fpga035; in board_init()
68 fpga = fpga045; in board_init()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/board/
H A Dfsl-board.txt27 "fsl,<board>-fpga", "fsl,fpga-pixis", or
28 "fsl,<board>-fpga", "fsl,fpga-qixis"
37 compatible = "fsl,p1022ds-fpga", "fsl,fpga-ngpixis";
46 compatible = "fsl,ls2080ardb-fpga", "fsl,fpga-qixis";
58 "fsl,<board>-fpga", "fsl,fpga-qixis-i2c"
62 fpga: fpga@66 {
63 compatible = "fsl,bsc9132qds-fpga", "fsl,fpga-qixis-i2c";
/OK3568_Linux_fs/u-boot/board/gdsys/a38x/
H A Dhydra.c18 static struct ihs_fpga *fpga; variable
22 return fpga; in get_fpga()
27 u32 versions = readl(&fpga->versions); in print_hydra_version()
28 u32 fpga_version = readl(&fpga->fpga_version); in print_hydra_version()
32 printf("FPGA%u: mapped to %p\n ", index, fpga); in print_hydra_version()
82 fpga = pci_map_bar(devno, PCI_BASE_ADDRESS_0, in hydra_initialize()
98 if (!fpga) in do_hydrate()
104 writel(REFL_PATTERN, &fpga->reflection_low); in do_hydrate()
105 res = readl(&fpga->reflection_low); in do_hydrate()
109 writel(REFL_PATTERN_INV, &fpga->reflection_low); in do_hydrate()
[all …]
/OK3568_Linux_fs/kernel/drivers/watchdog/
H A Dpika_wdt.c50 void __iomem *fpga; member
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
239 pikawdt_private.fpga = of_iomap(np, 0); in pikawdt_init()
241 if (pikawdt_private.fpga == NULL) { in pikawdt_init()
246 ident.firmware_version = in_be32(pikawdt_private.fpga + 0x1c) & 0xffff; in pikawdt_init()
256 fpga = of_iomap(np, 0); in pikawdt_init()
258 if (fpga == NULL) { in pikawdt_init()
268 post1 = in_be32(fpga + 0x40); in pikawdt_init()
[all …]
/OK3568_Linux_fs/u-boot/board/gdsys/mpc8308/
H A Dstrider.c64 int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data) in fpga_set_reg() argument
68 switch (fpga) { in fpga_set_reg()
73 res = mclink_send(fpga - 1, regoff, data); in fpga_set_reg()
85 int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data) in fpga_get_reg() argument
89 switch (fpga) { in fpga_get_reg()
94 if (fpga > mclink_fpgacount) in fpga_get_reg()
96 res = mclink_receive(fpga - 1, regoff, data); in fpga_get_reg()
350 int mpc8308_get_fpga_done(unsigned fpga) in mpc8308_get_fpga_done() argument
428 unsigned fpga; member
447 FPGA_SET_REG(fpga_mii->fpga, gpio.set, GPIO_MDIO); in mii_mdio_active()
[all …]
H A Dhrcon.c61 int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data) in fpga_set_reg() argument
65 switch (fpga) { in fpga_set_reg()
70 res = mclink_send(fpga - 1, regoff, data); in fpga_set_reg()
82 int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data) in fpga_get_reg() argument
86 switch (fpga) { in fpga_get_reg()
91 if (fpga > mclink_fpgacount) in fpga_get_reg()
93 res = mclink_receive(fpga - 1, regoff, data); in fpga_get_reg()
295 int mpc8308_get_fpga_done(unsigned fpga) in mpc8308_get_fpga_done() argument
373 unsigned fpga; member
392 FPGA_SET_REG(fpga_mii->fpga, gpio.set, GPIO_MDIO); in mii_mdio_active()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/plat-omap/
H A Ddebug-leds.c44 static struct h2p2_dbg_fpga __iomem *fpga; variable
85 reg = readw_relaxed(&fpga->leds); in dbg_led_set()
90 writew_relaxed(reg, &fpga->leds); in dbg_led_set()
98 reg = readw_relaxed(&fpga->leds); in dbg_led_get()
111 fpga = ioremap(iomem->start, resource_size(iomem)); in fpga_probe()
112 writew_relaxed(0xff, &fpga->leds); in fpga_probe()
138 fpga_led_state = readw_relaxed(&fpga->leds); in fpga_suspend_noirq()
139 writew_relaxed(0xff, &fpga->leds); in fpga_suspend_noirq()
146 writew_relaxed(~fpga_led_state, &fpga->leds); in fpga_resume_noirq()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/44x/
H A Dwarp.c63 void __iomem *fpga; in warp_post_info() local
71 fpga = of_iomap(np, 0); in warp_post_info()
73 if (fpga == NULL) in warp_post_info()
76 post1 = in_be32(fpga + 0x40); in warp_post_info()
77 post2 = in_be32(fpga + 0x44); in warp_post_info()
79 iounmap(fpga); in warp_post_info()
213 static inline void pika_dtm_check_fan(void __iomem *fpga) in pika_dtm_check_fan() argument
216 u32 fan = in_be32(fpga + 0x34) & (1 << 14); in pika_dtm_check_fan()
226 static int pika_dtm_thread(void __iomem *fpga) in pika_dtm_thread() argument
255 out_be32(fpga + 0x20, temp); in pika_dtm_thread()
[all …]
/OK3568_Linux_fs/u-boot/cmd/
H A Dfpgad.c32 unsigned int fpga; in do_fpga_md() local
42 fpga = dp_last_fpga; in do_fpga_md()
53 fpga = simple_strtoul(argv[1], NULL, 16); in do_fpga_md()
74 fpga_get_reg(fpga, in do_fpga_md()
75 (u16 *)fpga_ptr[fpga] + addr in do_fpga_md()
91 dp_last_fpga = fpga; in do_fpga_md()
/OK3568_Linux_fs/u-boot/doc/uImage.FIT/
H A Dmulti-with-fpga.its9 description = "Configuration to load fpga before Kernel";
25 fpga@1 {
28 type = "fpga";
61 description = "Linux with fpga";
64 fpga = "fpga@1";
/OK3568_Linux_fs/kernel/drivers/fpga/
H A DMakefile7 obj-$(CONFIG_FPGA) += fpga-mgr.o
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
25 obj-$(CONFIG_FPGA_BRIDGE) += fpga-bridge.o
31 obj-$(CONFIG_FPGA_REGION) += fpga-region.o
32 obj-$(CONFIG_OF_FPGA_REGION) += of-fpga-region.o
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/fpga/
H A Dxilinx-slave-serial.txt11 - https://www.xilinx.com/support/documentation/application_notes/xapp583-fpga-configuration.pdf
14 - compatible: should contain "xlnx,fpga-slave-serial"
25 fpga-region0 {
26 compatible = "fpga-region";
27 fpga-mgr = <&fpga_mgr_spi>;
42 fpga_mgr_spi: fpga-mgr@0 {
43 compatible = "xlnx,fpga-slave-serial";
H A Dfpga-region.txt167 - compatible : should contain "fpga-region"
168 - fpga-mgr : should contain a phandle to an FPGA Manager. Child FPGA Regions
169 inherit this property from their ancestor regions. A fpga-mgr property
180 - fpga-bridges : should contain a list of phandles to FPGA Bridges that must be
183 If the fpga-region is the child of a fpga-bridge, the list should not
185 - partial-fpga-config : boolean, set if partial reconfiguration is to be done,
187 - external-fpga-config : boolean, set if the FPGA has already been configured
189 - encrypted-fpga-config : boolean, set if the bitstream is encrypted
200 In the example below, when an overlay is applied targeting fpga-region0,
204 fpga-bridges property. During programming, these bridges are disabled, the
[all …]
H A Dxilinx-pr-decoupler.txt4 decouplers / fpga bridges.
21 See Documentation/devicetree/bindings/fpga/fpga-region.txt and
22 Documentation/devicetree/bindings/fpga/fpga-bridge.txt for generic bindings.
25 fpga-bridge@100000450 {
H A Dxlnx,zynqmp-pcap-fpga.txt6 - compatible: should contain "xlnx,zynqmp-pcap-fpga"
10 fpga-region0 {
11 compatible = "fpga-region";
12 fpga-mgr = <&zynqmp_pcap>;
22 compatible = "xlnx,zynqmp-pcap-fpga";
/OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/fsl/
H A Dgef_ppc9a.dts80 fpga@4,0 {
81 compatible = "gef,ppc9a-fpga-regs";
86 compatible = "gef,ppc9a-fpga-wdt", "gef,fpga-wdt-1.00",
87 "gef,fpga-wdt";
94 compatible = "gef,ppc9a-fpga-wdt", "gef,fpga-wdt-1.00",
95 "gef,fpga-wdt";
104 compatible = "gef,ppc9a-fpga-pic", "gef,fpga-pic-1.00";
H A Dgef_sbc310.dts77 fpga@4,0 {
78 compatible = "gef,fpga-regs";
83 compatible = "gef,sbc310-fpga-wdt", "gef,fpga-wdt-1.00",
84 "gef,fpga-wdt";
91 compatible = "gef,sbc310-fpga-wdt", "gef,fpga-wdt-1.00",
92 "gef,fpga-wdt";
101 compatible = "gef,sbc310-fpga-pic", "gef,fpga-pic";
/OK3568_Linux_fs/kernel/arch/powerpc/boot/
H A Debony.c38 u8 *fpga; in ebony_flashsel_fixup() local
45 if (getprop(devp, "virtual-reg", &fpga, sizeof(fpga)) != sizeof(fpga)) in ebony_flashsel_fixup()
49 fpga_reg0 = in_8(fpga); in ebony_flashsel_fixup()

123456789