/openbmc/linux/include/linux/ |
H A D | pruss_driver.h | 13 #include <linux/remoteproc/pruss.h> 18 * enum pruss_gp_mux_sel - PRUSS GPI/O Mux modes for the 36 * enum pruss_gpi_mode - PRUSS GPI configuration modes, used 63 * enum pruss_mem - PRUSS memory range identifiers 73 * struct pruss_mem_region - PRUSS memory region structure 74 * @va: kernel virtual address of the PRUSS memory region 75 * @pa: physical (bus) address of the PRUSS memory region 76 * @size: size of the PRUSS memory region 85 * struct pruss - PRUSS paren 95 struct pruss { global() struct 99 mem_regionspruss global() argument 100 mem_in_usepruss global() argument 108 iep_clk_muxpruss global() argument 129 pruss_put(struct pruss * pruss) pruss_put() argument 131 pruss_request_mem_region(struct pruss * pruss,enum pruss_mem mem_id,struct pruss_mem_region * region) pruss_request_mem_region() argument 138 pruss_release_mem_region(struct pruss * pruss,struct pruss_mem_region * region) pruss_release_mem_region() argument 144 pruss_cfg_get_gpmux(struct pruss * pruss,enum pruss_pru_id pru_id,u8 * mux) pruss_cfg_get_gpmux() argument 150 pruss_cfg_set_gpmux(struct pruss * pruss,enum pruss_pru_id pru_id,u8 mux) pruss_cfg_set_gpmux() argument 156 pruss_cfg_gpimode(struct pruss * pruss,enum pruss_pru_id pru_id,enum pruss_gpi_mode mode) pruss_cfg_gpimode() argument 163 pruss_cfg_miirt_enable(struct pruss * pruss,bool enable) pruss_cfg_miirt_enable() argument [all...] |
/openbmc/linux/drivers/soc/ti/ |
H A D | pruss.c | 26 #include "pruss.h" 29 * struct pruss_private_data - PRUSS driver private data 30 * @has_no_sharedram: flag to indicate the absence of PRUSS Shared Data RAM 31 * @has_core_mux_clock: flag to indicate the presence of PRUSS core clock 39 * pruss_get() - get the pruss for a given PRU remoteproc 42 * Finds the parent pruss device for a PRU given the @rproc handle of the 43 * PRU remote processor. This function increments the pruss device's refcount, 44 * so always use pruss_put() to decrement it back once pruss isn't needed 51 * Return: pruss handle on success, and an ERR_PTR on failure using one 54 * -ENODEV if PRU device or PRUSS device is not found [all …]
|
H A D | pruss.h | 50 * pruss_cfg_read() - read a PRUSS CFG sub-module register 51 * @pruss: the pruss instance handle 55 * Reads a given register within the PRUSS CFG sub-module and 60 static int pruss_cfg_read(struct pruss *pruss, unsigned int reg, unsigned int *val) in pruss_cfg_read() argument 62 if (IS_ERR_OR_NULL(pruss)) in pruss_cfg_read() 65 return regmap_read(pruss->cfg_regmap, reg, val); in pruss_cfg_read() 69 * pruss_cfg_update() - configure a PRUSS CFG sub-module register 70 * @pruss: the pruss instance handle 75 * Programs a given register within the PRUSS CFG sub-module 79 static int pruss_cfg_update(struct pruss *pruss, unsigned int reg, in pruss_cfg_update() argument [all …]
|
H A D | Makefile | 13 obj-$(CONFIG_TI_PRUSS) += pruss.o
|
/openbmc/linux/Documentation/devicetree/bindings/soc/ti/ |
H A D | ti,pruss.yaml | 4 $id: http://devicetree.org/schemas/soc/ti/ti,pruss.yaml# 16 (PRU-ICSS a.k.a. PRUSS) is present on various TI SoCs such as AM335x, AM437x, 17 Keystone 66AK2G, OMAP-L138/DA850 etc. A PRUSS consists of dual 32-bit RISC 52 as child nodes within this PRUSS node. This node shall be a child of the 60 pattern: "^(pruss|icssg)@[0-9a-f]+$" 64 - ti,am3356-pruss # for AM335x SoC family 65 - ti,am4376-pruss0 # for AM437x SoC family and PRUSS unit 0 66 - ti,am4376-pruss1 # for AM437x SoC family and PRUSS unit 1 67 - ti,am5728-pruss # for AM57xx SoC family 68 - ti,am625-pruss # for K3 AM62x SoC family [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | ti,pruss-intc.yaml | 4 $id: http://devicetree.org/schemas/interrupt-controller/ti,pruss-intc.yaml# 17 various other PRUSS internal and external peripherals. The first 2 output 20 including the MPU and/or other PRUSS instances, DSPs or devices. 24 defined, it implies that all the PRUSS INTC output interrupts 2 through 9 33 corresponding PRUSS node. The node should be named "interrupt-controller". 41 - ti,pruss-intc 44 Use "ti,pruss-intc" for OMAP-L13x/AM18x/DA850 SoCs, 88 Bitmask of host interrupts between 0 and 7 (corresponding to PRUSS INTC 114 pruss: pruss@0 { 115 compatible = "ti,am3356-pruss"; [all …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | am57-pruss.dtsi | 5 * Common PRUSS data for TI AM57xx platforms 10 compatible = "ti,sysc-pruss", "ti,sysc"; 29 pruss1: pruss@0 { 30 compatible = "ti,am5728-pruss"; 45 compatible = "ti,pruss-cfg", "syscon"; 65 compatible = "ti,pruss-mii", "syscon"; 70 compatible = "ti,pruss-intc"; 119 compatible = "ti,sysc-pruss", "ti,sysc"; 138 pruss2: pruss@0 { 139 compatible = "ti,am5728-pruss"; [all …]
|
H A D | am4372.dtsi | 420 compatible = "ti,sysc-pruss", "ti,sysc"; 440 pruss1: pruss@0 { 456 compatible = "ti,pruss-cfg", "syscon"; 476 compatible = "ti,pruss-mii", "syscon"; 481 compatible = "ti,pruss-intc"; 528 pruss0: pruss@40000 { 542 compatible = "ti,pruss-cfg", "syscon"; 562 compatible = "ti,pruss-mii", "syscon"; 568 compatible = "ti,pruss-intc";
|
H A D | am5718.dtsi | 7 #include "am57-pruss.dtsi"
|
H A D | am5728.dtsi | 7 #include "am57-pruss.dtsi"
|
H A D | am5748.dtsi | 7 #include "am57-pruss.dtsi"
|
/openbmc/linux/drivers/uio/ |
H A D | uio_pruss.c | 3 * Programmable Real-Time Unit Sub System (PRUSS) UIO driver (uio_pruss) 5 * This driver exports PRUSS host event out interrupts and PRUSS, L3 RAM, 6 * and DDR RAM to user space for applications interacting with PRUSS firmware 35 * Host event IRQ numbers from PRUSS - PRUSS can generate up to 8 interrupt 36 * events to AINTC of ARM host processor - which can be used for IPC b/w PRUSS 125 gdev->pruss_clk = devm_clk_get(dev, "pruss"); in pruss_probe() 139 dev_err(dev, "No PRUSS I/O resource specified\n"); in pruss_probe() 173 dev_err(dev, "Can't remap PRUSS I/O address range\n"); in pruss_probe() 201 /* Register PRUSS IRQ lines */ in pruss_probe()
|
H A D | Kconfig | 129 tristate "Texas Instruments PRUSS driver" 133 PRUSS driver for OMAPL138/DA850/AM18XX devices 134 PRUSS driver requires user space components, examples and user space
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-pruss-intc.c | 25 * is not the same as the total number of host interrupts supported by the PRUSS 85 * @num_system_events: number of input system events handled by the PRUSS INTC 87 * channels) supported by the PRUSS INTC 95 * struct pruss_intc - PRUSS interrupt controller structure 98 * @irqs: kernel irq numbers corresponding to PRUSS host interrupts 101 * @soc_config: cached PRUSS INTC IP configuration data 102 * @dev: PRUSS INTC device pointer 113 struct mutex lock; /* PRUSS INTC lock */ 117 * struct pruss_host_irq_data - PRUSS host irq data structure 118 * @intc: PRUSS interrupt controller pointer [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | ti,icssg-prueth.yaml | 7 title: Texas Instruments ICSSG PRUSS Ethernet 140 firmware-name = "ti-pruss/am65x-pru0-prueth-fw.elf", 141 "ti-pruss/am65x-rtu0-prueth-fw.elf", 142 "ti-pruss/am65x-txpru0-prueth-fw.elf", 143 "ti-pruss/am65x-pru1-prueth-fw.elf", 144 "ti-pruss/am65x-rtu1-prueth-fw.elf", 145 "ti-pruss/am65x-txpru1-prueth-fw.elf"; 146 ti,pruss-gp-mux-sel = <2>, /* MII mode */
|
/openbmc/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_prueth.h | 26 #include <linux/remoteproc/pruss.h> 193 * @pruss: pruss handle 197 * @shram: PRUSS shared RAM region 215 struct pruss *pruss; member 245 /* get PRUSS SLICE number from prueth_emac */
|
H A D | icssg_prueth.c | 28 #include <linux/remoteproc/pruss.h> 36 #define PRUETH_MODULE_DESCRIPTION "PRUSS ICSSG Ethernet driver" 897 .pru = "ti-pruss/am65x-sr2-pru0-prueth-fw.elf", 898 .rtu = "ti-pruss/am65x-sr2-rtu0-prueth-fw.elf", 899 .txpru = "ti-pruss/am65x-sr2-txpru0-prueth-fw.elf", 902 .pru = "ti-pruss/am65x-sr2-pru1-prueth-fw.elf", 903 .rtu = "ti-pruss/am65x-sr2-rtu1-prueth-fw.elf", 904 .txpru = "ti-pruss/am65x-sr2-txpru1-prueth-fw.elf", 1750 ret = pruss_request_mem_region(prueth->pruss, in prueth_netdev_init() 1847 pruss_release_mem_region(prueth->pruss, &emac->dram); in prueth_netdev_init() [all …]
|
H A D | icssg_config.c | 353 pruss_cfg_gpimode(prueth->pruss, prueth->pru_id[slice], in icssg_config() 357 pruss_cfg_xfr_enable(prueth->pruss, PRU_TYPE_PRU, true); in icssg_config() 358 pruss_cfg_xfr_enable(prueth->pruss, PRU_TYPE_RTU, true); in icssg_config()
|
/openbmc/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | ti,pru-rproc.yaml | 14 (PRU-ICSS or PRUSS) has two 32-bit load/store RISC CPU cores called 32 Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml 109 compatible = "ti,sysc-pruss", "ti,sysc"; 114 pruss: pruss@0 { 115 compatible = "ti,am3356-pruss";
|
H A D | ti,pru-consumer.yaml | 41 ti,pruss-gp-mux-sel:
|
/openbmc/linux/drivers/remoteproc/ |
H A D | pru_rproc.c | 22 #include <linux/remoteproc/pruss.h> 97 * @id: id of the PRU core within the PRUSS 99 * @pruss: back-reference to parent PRUSS structure 118 struct pruss *pruss; member 259 ret = pruss_cfg_get_gpmux(pru->pruss, pru->id, &pru->gpmux_save); in pru_rproc_get() 266 ret = of_property_read_u32_index(np, "ti,pruss-gp-mux-sel", index, in pru_rproc_get() 269 ret = pruss_cfg_set_gpmux(pru->pruss, pru->id, mux); in pru_rproc_get() 314 pruss_cfg_set_gpmux(pru->pruss, pru->id, pru->gpmux_save); in pru_rproc_put() 547 * corresponding sibling PRUSS INTC node. in pru_handle_intrmap() 645 * Each PRU has access to all data memories within the PRUSS, accessible at [all …]
|
H A D | pru_rproc.h | 3 * PRUSS Remote Processor specific types 37 * provides the PRUSS interrupt mapping description. The pru_irq_rsc struct
|
/openbmc/linux/include/linux/platform_data/ |
H A D | uio_pruss.h | 13 /* To configure the PRUSS INTC base offset for UIO driver */
|
/openbmc/linux/include/dt-bindings/bus/ |
H A D | ti-sysc.h | 21 /* PRUSS sysc found on AM33xx/AM43xx/AM57xx */
|
/openbmc/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-am65-main.dtsi | 1125 compatible = "ti,pruss-cfg", "syscon"; 1156 compatible = "ti,pruss-mii", "syscon"; 1161 compatible = "ti,pruss-mii-g", "syscon"; 1267 compatible = "ti,pruss-cfg", "syscon"; 1298 compatible = "ti,pruss-mii", "syscon"; 1303 compatible = "ti,pruss-mii-g", "syscon"; 1409 compatible = "ti,pruss-cfg", "syscon"; 1440 compatible = "ti,pruss-mii", "syscon"; 1445 compatible = "ti,pruss-mii-g", "syscon";
|