| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/sram/ |
| D | sram.yaml | 4 $id: http://devicetree.org/schemas/sram/sram.yaml# 7 title: Generic on-chip SRAM 15 Each child of the sram node specifies a region of reserved memory. Each 25 pattern: "^sram(@.*)?" 30 - mmio-sram 31 - amlogic,meson-gxbb-sram 32 - arm,juno-sram-ns 38 - rockchip,rk3288-pmu-sram 47 SRAM clock. 58 Should translate from local addresses within the sram to bus addresses. [all …]
|
| D | allwinner,sun4i-a10-system-control.yaml | 4 $id: http://devicetree.org/schemas/sram/allwinner,sun4i-a10-system-control.yaml# 14 The SRAM controller found on most Allwinner devices is represented 15 by a regular node for the SRAM controller itself, with sub-nodes 16 representing the SRAM handled by the SRAM controller. 28 - allwinner,sun4i-a10-sram-controller 29 - allwinner,sun50i-a64-sram-controller 59 "^sram@[a-z0-9]+": 60 $ref: /schemas/sram/sram.yaml# 64 "^sram-section?@[a-f0-9]+$": 73 - const: allwinner,sun4i-a10-sram-a3-a4 [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/sram/ |
| D | sram.yaml | 4 $id: http://devicetree.org/schemas/sram/sram.yaml# 7 title: Generic on-chip SRAM 15 Each child of the sram node specifies a region of reserved memory. Each 25 pattern: "^sram(@.*)?" 30 - mmio-sram 32 - rockchip,rk3288-pmu-sram 40 SRAM clock. 50 Should translate from local addresses within the sram to bus addresses. 54 The flag indicating, that SRAM memory region has not to be remapped 59 "^([a-z]*-)?sram(-section)?@[a-f0-9]+$": [all …]
|
| D | allwinner,sun4i-a10-system-control.yaml | 4 $id: http://devicetree.org/schemas/sram/allwinner,sun4i-a10-system-control.yaml# 14 The SRAM controller found on most Allwinner devices is represented 15 by a regular node for the SRAM controller itself, with sub-nodes 16 representing the SRAM handled by the SRAM controller. 27 - const: allwinner,sun4i-a10-sram-controller 42 - const: allwinner,sun50i-a64-sram-controller 59 "^sram@[a-z0-9]+": 64 const: mmio-sram 67 "^sram-section?@[a-f0-9]+$": 73 - const: allwinner,sun4i-a10-sram-a3-a4 [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/ |
| D | sram.c | 3 * Generic on-chip SRAM allocation driver 21 #include "sram.h" 55 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument 60 part->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), in sram_add_pool() 68 dev_err(sram->dev, "failed to register subpool: %d\n", ret); in sram_add_pool() 75 static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, in sram_add_export() argument 79 part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL, in sram_add_export() 80 "%llx.sram", in sram_add_export() 90 return device_create_bin_file(sram->dev, &part->battr); in sram_add_export() 93 static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, in sram_add_partition() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/misc/ |
| D | sram.c | 3 * Generic on-chip SRAM allocation driver 21 #include "sram.h" 55 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument 60 part->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), in sram_add_pool() 68 dev_err(sram->dev, "failed to register subpool: %d\n", ret); in sram_add_pool() 75 static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, in sram_add_export() argument 79 part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL, in sram_add_export() 80 "%llx.sram", in sram_add_export() 90 return device_create_bin_file(sram->dev, &part->battr); in sram_add_export() 93 static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, in sram_add_partition() argument [all …]
|
| D | sram-exec.c | 3 * SRAM protect-exec region helper functions 12 #include <linux/sram.h> 17 #include "sram.h" 22 int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block, in sram_check_protect_exec() argument 29 dev_err(sram->dev, in sram_check_protect_exec() 30 "SRAM pool marked with 'protect-exec' is not page aligned and will not be created.\n"); in sram_check_protect_exec() 47 * sram_exec_copy - copy data to a protected executable region of sram 49 * @pool: struct gen_pool retrieved that is part of this sram 57 * This helper function allows sram driver to act as central control location 58 * of 'protect-exec' pools which are normal sram pools but are always set
|
| /kernel/linux/linux-6.6/arch/arm/mach-omap1/ |
| D | sram-init.c | 3 * OMAP SRAM detection and management 22 #include "sram.h" 35 * Memory allocator for SRAM: calculates the new ceiling address 48 pr_err("Not enough space in SRAM\n"); in omap_sram_push_address() 61 void *sram; in omap_sram_push() local 66 sram = omap_sram_push_address(size); in omap_sram_push() 67 if (!sram) in omap_sram_push() 70 base = (unsigned long)sram & PAGE_MASK; in omap_sram_push() 75 dst = fncpy(sram, funcp, size); in omap_sram_push() 83 * The amount of SRAM depends on the core type. [all …]
|
| /kernel/linux/linux-5.10/arch/arm/plat-omap/ |
| D | sram.c | 3 * linux/arch/arm/plat-omap/sram.c 5 * OMAP SRAM detection and management 27 #include <plat/sram.h> 37 * Memory allocator for SRAM: calculates the new ceiling address 50 pr_err("Not enough space in SRAM\n"); in omap_sram_push_address() 63 void *sram; in omap_sram_push() local 68 sram = omap_sram_push_address(size); in omap_sram_push() 69 if (!sram) in omap_sram_push() 72 base = (unsigned long)sram & PAGE_MASK; in omap_sram_push() 77 dst = fncpy(sram, funcp, size); in omap_sram_push() [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/fsl/ |
| D | cache_sram.txt | 1 * Freescale PQ3 and QorIQ based Cache SRAM 5 as SRAM. This cache SRAM representation in the device 10 - compatible : should be "fsl,p2020-cache-sram" 11 - fsl,cache-sram-ctlr-handle : points to the L2 controller 12 - reg : offset and length of the cache-sram. 16 cache-sram@fff00000 { 17 fsl,cache-sram-ctlr-handle = <&L2>; 19 compatible = "fsl,p2020-cache-sram";
|
| /kernel/linux/linux-6.6/arch/arm/mach-omap2/ |
| D | sram.c | 4 * OMAP SRAM detection and management 29 #include "sram.h" 57 * Memory allocator for SRAM: calculates the new ceiling address 70 pr_err("Not enough space in SRAM\n"); in omap_sram_push_address() 83 void *sram; in omap_sram_push() local 88 sram = omap_sram_push_address(size); in omap_sram_push() 89 if (!sram) in omap_sram_push() 92 base = (unsigned long)sram & PAGE_MASK; in omap_sram_push() 97 dst = fncpy(sram, funcp, size); in omap_sram_push() 105 * The SRAM context is lost during off-idle and stack [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/nxp/lpc/ |
| D | lpc4350.dtsi | 24 sram0: sram@10000000 { 25 compatible = "mmio-sram"; 26 reg = <0x10000000 0x20000>; /* 96 + 32 KiB local SRAM */ 29 sram1: sram@10080000 { 30 compatible = "mmio-sram"; 31 reg = <0x10080000 0x12000>; /* 64 + 8 KiB local SRAM */ 34 sram2: sram@20000000 { 35 compatible = "mmio-sram"; 36 reg = <0x20000000 0x10000>; /* 4 x 16 KiB AHB SRAM */
|
| D | lpc4357.dtsi | 24 sram0: sram@10000000 { 25 compatible = "mmio-sram"; 26 reg = <0x10000000 0x8000>; /* 32 KiB local SRAM */ 29 sram1: sram@10080000 { 30 compatible = "mmio-sram"; 31 reg = <0x10080000 0xa000>; /* 32 + 8 KiB local SRAM */ 34 sram2: sram@20000000 { 35 compatible = "mmio-sram"; 36 reg = <0x20000000 0x10000>; /* 4 x 16 KiB AHB SRAM */
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | lpc4350.dtsi | 24 sram0: sram@10000000 { 25 compatible = "mmio-sram"; 26 reg = <0x10000000 0x20000>; /* 96 + 32 KiB local SRAM */ 29 sram1: sram@10080000 { 30 compatible = "mmio-sram"; 31 reg = <0x10080000 0x12000>; /* 64 + 8 KiB local SRAM */ 34 sram2: sram@20000000 { 35 compatible = "mmio-sram"; 36 reg = <0x20000000 0x10000>; /* 4 x 16 KiB AHB SRAM */
|
| D | lpc4357.dtsi | 24 sram0: sram@10000000 { 25 compatible = "mmio-sram"; 26 reg = <0x10000000 0x8000>; /* 32 KiB local SRAM */ 29 sram1: sram@10080000 { 30 compatible = "mmio-sram"; 31 reg = <0x10080000 0xa000>; /* 32 + 8 KiB local SRAM */ 34 sram2: sram@20000000 { 35 compatible = "mmio-sram"; 36 reg = <0x20000000 0x10000>; /* 4 x 16 KiB AHB SRAM */
|
| /kernel/linux/linux-5.10/arch/arm/mach-davinci/ |
| D | sram.h | 3 * mach/sram.h - DaVinci simple SRAM allocator 10 /* ARBITRARY: SRAM allocations are multiples of this 2^N size */ 14 * SRAM allocations return a CPU virtual address, or NULL on error. 15 * If a DMA address is requested and the SRAM supports DMA, its 18 * Errors include SRAM memory not being available, and requesting 19 * DMA mapped SRAM on systems which don't allow that.
|
| /kernel/linux/linux-6.6/arch/arm/mach-davinci/ |
| D | sram.h | 3 * mach/sram.h - DaVinci simple SRAM allocator 10 /* ARBITRARY: SRAM allocations are multiples of this 2^N size */ 14 * SRAM allocations return a CPU virtual address, or NULL on error. 15 * If a DMA address is requested and the SRAM supports DMA, its 18 * Errors include SRAM memory not being available, and requesting 19 * DMA mapped SRAM on systems which don't allow that.
|
| /kernel/linux/linux-5.10/drivers/mtd/devices/ |
| D | ms02-nv.h | 16 * 0x000000 - 0x3fffff SRAM 19 * Within the SRAM area the following ranges are forced by the system 28 * ID value is found, the firmware considers the SRAM clean, i.e. 38 * as well as the size of SRAM available, which can be 1MiB or 2MiB 44 * stored in the SRAM cannot be relied upon. But from the hardware 74 #define MS02NV_DIAG_TEST 0x01 /* SRAM test done (?) */ 75 #define MS02NV_DIAG_RO 0x02 /* SRAM r/o test done */ 76 #define MS02NV_DIAG_RW 0x04 /* SRAM r/w test done */ 77 #define MS02NV_DIAG_FAIL 0x08 /* SRAM test failed */ 78 #define MS02NV_DIAG_SIZE_MASK 0xf0 /* SRAM size mask */ [all …]
|
| /kernel/linux/linux-6.6/drivers/mtd/devices/ |
| D | ms02-nv.h | 16 * 0x000000 - 0x3fffff SRAM 19 * Within the SRAM area the following ranges are forced by the system 28 * ID value is found, the firmware considers the SRAM clean, i.e. 38 * as well as the size of SRAM available, which can be 1MiB or 2MiB 44 * stored in the SRAM cannot be relied upon. But from the hardware 74 #define MS02NV_DIAG_TEST 0x01 /* SRAM test done (?) */ 75 #define MS02NV_DIAG_RO 0x02 /* SRAM r/o test done */ 76 #define MS02NV_DIAG_RW 0x04 /* SRAM r/w test done */ 77 #define MS02NV_DIAG_FAIL 0x08 /* SRAM test failed */ 78 #define MS02NV_DIAG_SIZE_MASK 0xf0 /* SRAM size mask */ [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/crypto/ |
| D | mv_cesa.txt | 9 region. Can also contain an entry for the SRAM attached to the CESA, 12 - reg-names: "regs". Can contain an "sram" entry, but this representation 17 - marvell,crypto-srams: phandle to crypto SRAM definitions 20 - marvell,crypto-sram-size: SRAM size reserved for crypto operations, if not 21 specified the whole SRAM is used (2KB) 31 marvell,crypto-sram-size = <0x600>;
|
| D | marvell-cesa.txt | 13 region. Can also contain an entry for the SRAM attached to the CESA, 16 - reg-names: "regs". Can contain an "sram" entry, but this representation 26 - marvell,crypto-srams: phandle to crypto SRAM definitions 29 - marvell,crypto-sram-size: SRAM size reserved for crypto operations, if not 30 specified the whole SRAM is used (2KB) 43 marvell,crypto-sram-size = <0x600>;
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/crypto/ |
| D | mv_cesa.txt | 9 region. Can also contain an entry for the SRAM attached to the CESA, 12 - reg-names: "regs". Can contain an "sram" entry, but this representation 17 - marvell,crypto-srams: phandle to crypto SRAM definitions 20 - marvell,crypto-sram-size: SRAM size reserved for crypto operations, if not 21 specified the whole SRAM is used (2KB) 31 marvell,crypto-sram-size = <0x600>;
|
| D | marvell-cesa.txt | 13 region. Can also contain an entry for the SRAM attached to the CESA, 16 - reg-names: "regs". Can contain an "sram" entry, but this representation 26 - marvell,crypto-srams: phandle to crypto SRAM definitions 29 - marvell,crypto-sram-size: SRAM size reserved for crypto operations, if not 30 specified the whole SRAM is used (2KB) 43 marvell,crypto-sram-size = <0x600>;
|
| /kernel/linux/linux-6.6/Documentation/arch/arm/stm32/ |
| D | stm32-dma-mdma-chaining.rst | 29 the system SRAM) for different peripheral. It can access external RAMs but 110 STM32 DMA-MDMA chaining feature then uses a SRAM buffer. STM32MP1 SoCs embed 113 bad with DDR, while they are optimal with SRAM. Hence the SRAM buffer used 124 | DMA_SxM0AR |<=>| | SRAM | |<=>| []-[]...[] | 140 **1. Allocate a SRAM buffer** 142 SRAM device tree node is defined in SoC device tree. You can refer to it in 143 your board device tree to define your SRAM pool. 146 &sram { 147 my_foo_device_dma_pool: dma-sram@0 { 152 Be careful of the start index, in case there are other SRAM consumers. [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/52xx/ |
| D | mpc52xx_pm.c | 10 extern void mpc52xx_deep_sleep(void __iomem *sram, void __iomem *sdram_regs, 22 static void __iomem *sram; variable 79 mbar = ioremap(res.start, 0xc000); /* we should map whole region including SRAM */ in mpc52xx_pm_prepare() 91 sram = mbar + 0x8000; /* Those will be handled by the */ in mpc52xx_pm_prepare() 132 /* save SRAM */ in mpc52xx_pm_enter() 133 memcpy(saved_sram, sram, sram_size); in mpc52xx_pm_enter() 135 /* copy low level suspend code to sram */ in mpc52xx_pm_enter() 136 memcpy(sram, mpc52xx_ds_sram, mpc52xx_ds_sram_size); in mpc52xx_pm_enter() 142 /* disable all but SDRAM and bestcomm (SRAM) clocks */ in mpc52xx_pm_enter() 160 mpc52xx_deep_sleep(sram, sdram, cdm, intr); in mpc52xx_pm_enter() [all …]
|