| /OK3568_Linux_fs/kernel/drivers/misc/ |
| H A 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 …]
|
| H A D | sram-exec.c | 2 * SRAM protect-exec region helper functions 20 #include <linux/sram.h> 25 #include "sram.h" 30 int sram_check_protect_exec(struct sram_dev *sram, struct sram_reserve *block, in sram_check_protect_exec() argument 37 dev_err(sram->dev, in sram_check_protect_exec() 38 "SRAM pool marked with 'protect-exec' is not page aligned and will not be created.\n"); in sram_check_protect_exec() 55 * sram_exec_copy - copy data to a protected executable region of sram 57 * @pool: struct gen_pool retrieved that is part of this sram 65 * This helper function allows sram driver to act as central control location 66 * of 'protect-exec' pools which are normal sram pools but are always set
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sram/ |
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/arm/plat-omap/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/powerpc/fsl/ |
| H A 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";
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A 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 */
|
| H A 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 */
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/armv8/ |
| H A D | u-boot-spl.lds | 15 MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, 30 } >.sram 35 } >.sram 40 } >.sram 45 } >.sram 50 } >.sram 55 } >.sram 63 } >.sram 67 } >.sram 72 } >.sram
|
| /OK3568_Linux_fs/u-boot/board/samsung/common/ |
| H A D | exynos-uboot-spl.lds | 12 MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE, \ 27 } >.sram 30 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram 33 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram 38 } >.sram 41 .machine_param : { *(.machine_param) } >.sram 49 } >.sram 58 } >.sram
|
| /OK3568_Linux_fs/kernel/drivers/mtd/devices/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9003_aic.c | 279 struct ath_aic_sram_info sram; in ar9003_aic_cal_post_process() local 282 cal_sram_valid[i] = sram.valid = in ar9003_aic_cal_post_process() 284 sram.rot_quad_att_db = in ar9003_aic_cal_post_process() 286 sram.vga_quad_sign = in ar9003_aic_cal_post_process() 288 sram.rot_dir_att_db = in ar9003_aic_cal_post_process() 290 sram.vga_dir_sign = in ar9003_aic_cal_post_process() 292 sram.com_att_6db = in ar9003_aic_cal_post_process() 295 if (sram.valid) { in ar9003_aic_cal_post_process() 296 dir_path_gain_idx = sram.rot_dir_att_db + in ar9003_aic_cal_post_process() 297 com_att_db_table[sram.com_att_6db]; in ar9003_aic_cal_post_process() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-davinci/ |
| H A 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.
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/52xx/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/crypto/ |
| H A 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>;
|
| H A 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>;
|
| /OK3568_Linux_fs/docs/cn/Common/NPU/rknpu2/ |
| H A D | RK3588_NPU_SRAM_usage.md | 25 syssram: sram@ff001000 { 26 compatible = "mmio-sram"; 32 /* 分配RKNPU SRAM */ 48 rockchip,sram = <&rknpu_sram>; 61 * **export RKNN_INTERNAL_MEM_TYPE=sram** 63 * **export RKNN_INTERNAL_MEM_TYPE=sram#256** 68 * **export RKNN_WEIGHT_MEM_TYPE=sram** 71 * **export RKNN_WEIGHT_MEM_TYPE=sram#128** 75 * **export RKNN_INTERNAL_MEM_TYPE=sram#256** 77 * **export RKNN_WEIGHT_MEM_TYPE=sram#128** [all …]
|
| /OK3568_Linux_fs/external/rknpu2/doc/ |
| H A D | RK3588_NPU_SRAM_usage.md | 25 syssram: sram@ff001000 { 26 compatible = "mmio-sram"; 32 /* 分配RKNPU SRAM */ 48 rockchip,sram = <&rknpu_sram>; 61 * **export RKNN_INTERNAL_MEM_TYPE=sram** 63 * **export RKNN_INTERNAL_MEM_TYPE=sram#256** 68 * **export RKNN_WEIGHT_MEM_TYPE=sram** 71 * **export RKNN_WEIGHT_MEM_TYPE=sram#128** 75 * **export RKNN_INTERNAL_MEM_TYPE=sram#256** 77 * **export RKNN_WEIGHT_MEM_TYPE=sram#128** [all …]
|
| /OK3568_Linux_fs/docs/en/Common/NPU/rknpu2/ |
| H A D | RK3588_NPU_SRAM_usage.md | 25 syssram: sram@ff001000 { 26 compatible = "mmio-sram"; 32 /* 分配RKNPU SRAM */ 48 rockchip,sram = <&rknpu_sram>; 61 * **export RKNN_INTERNAL_MEM_TYPE=sram** 63 * **export RKNN_INTERNAL_MEM_TYPE=sram#256** 68 * **export RKNN_WEIGHT_MEM_TYPE=sram** 71 * **export RKNN_WEIGHT_MEM_TYPE=sram#128** 75 * **export RKNN_INTERNAL_MEM_TYPE=sram#256** 77 * **export RKNN_WEIGHT_MEM_TYPE=sram#128** [all …]
|
| /OK3568_Linux_fs/kernel/drivers/fsi/ |
| H A D | fsi-master-ast-cf.c | 82 /* Amount of SRAM required */ 111 void __iomem *sram; member 315 iowrite32be(op, master->sram + CMD_STAT_REG); in do_copro_command() 328 stat = ioread8(master->sram + CMD_STAT_REG); in do_copro_command() 365 /* Store message into SRAM */ in send_request() 366 iowrite32be((cmd->msg >> 32), master->sram + CMD_DATA); in send_request() 367 iowrite32be((cmd->msg & 0xffffffff), master->sram + CMD_DATA + 4); in send_request() 380 uint8_t rtag = ioread8(master->sram + STAT_RTAG) & 0xf; in read_copro_response() 381 uint8_t rcrc = ioread8(master->sram + STAT_RCRC) & 0xf; in read_copro_response() 392 rdata = ioread32be(master->sram + RSP_DATA); in read_copro_response() [all …]
|
| /OK3568_Linux_fs/u-boot/board/davinci/da8xxevm/ |
| H A D | u-boot-spl-da850evm.lds | 11 MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ 28 } >.sram 31 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram 34 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram 37 .u_boot_list : { KEEP(*(SORT(.u_boot_list*))); } >.sram 44 } >.sram 53 } >.sram
|
| /OK3568_Linux_fs/u-boot/board/Barix/ipam390/ |
| H A D | u-boot-spl-ipam390.lds | 11 MEMORY { .sram : ORIGIN = CONFIG_SPL_TEXT_BASE,\ 28 } >.sram 31 .rodata : { *(SORT_BY_ALIGNMENT(.rodata*)) } >.sram 34 .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram 41 } >.sram 50 } >.sram 57 } >.sram
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-omap2/ |
| H A D | sram.c | 4 * OMAP SRAM detection and management 28 #include "sram.h" 55 * SRAM varies. The default accessible size for all device types is 2k. A GP 81 * The amount of SRAM depends on the core type. 82 * Note that we cannot try to test for SRAM here because writes 83 * to secure SRAM will hang the system. Also the SRAM is not 118 * Note that we cannot use ioremap for SRAM, as clock init needs SRAM early. 126 * SRAM must be marked as non-cached on OMAP3 since the in omap2_map_sram() 127 * CORE DPLL M2 divider change code (in SRAM) runs with the in omap2_map_sram()
|
| /OK3568_Linux_fs/kernel/drivers/memory/ |
| H A D | ti-emif-pm.c | 3 * TI AM33XX SRAM EMIF Driver 17 #include <linux/sram.h> 18 #include <linux/ti-emif-sram.h> 69 emif_data->sram_pool_code = of_gen_pool_get(np, "sram", 0); in ti_emif_alloc_sram() 71 dev_err(dev, "Unable to get sram pool for ocmcram code\n"); in ti_emif_alloc_sram() 88 /* Get sram pool for data section and allocate space */ in ti_emif_alloc_sram() 89 emif_data->sram_pool_data = of_gen_pool_get(np, "sram", 1); in ti_emif_alloc_sram() 91 dev_err(dev, "Unable to get sram pool for ocmcram data\n"); in ti_emif_alloc_sram() 158 dev_err(dev, "Cannot copy emif code to sram\n"); in ti_emif_push_sram() 169 dev_err(dev, "Cannot copy emif data to code sram\n"); in ti_emif_push_sram() [all …]
|
| /OK3568_Linux_fs/u-boot/spl/ |
| H A D | u-boot-spl.lds | |