Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:sram [28 Dec 2020 06:54] – [How to add another device to use the memory in sram] Sunny Fengresources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:sram [28 Dec 2020 06:56] (current) – [SRAM driver] Sunny Feng
Line 42: Line 42:
  
 ===== SRAM driver ===== ===== SRAM driver =====
-There are two main c file under the driver/sram/adi directory. +There are two main c files under the driver/sram/adi directory. 
-  * sram.c will create a /proc/sraminfo in filesytem, control/monitor the sram memory, use the command "#cat /proc/sraminfo" +  **''sram.c''** 
-  * sram_mmap.c one example to use the sram framework, allocate memory from the specified pool defined in dts, and then free the memory+  : will create a /proc/sraminfo in filesytem, control/monitor the sram memory, use the command "#cat /proc/sraminfo" 
 +  **''sram_mmap.c''** 
 +  : one example to use the sram framework, allocate memory from the specified pool defined in dts, and then free the memory
  
 ==== Reserved SRAM pools in dts file ==== ==== Reserved SRAM pools in dts file ====
Line 89: Line 91:
 gen_pool_free(sram_pool, vaddr, sram_size); gen_pool_free(sram_pool, vaddr, sram_size);
 </code> </code>
 +
 +\\
 +----
 +**Back to** [[resources:tools-software/linuxdsp/docs/linux-kernel-and-drivers/start|Kernel Features and Device Drivers for ADSP-SC5xx Yocto Linux]]
  
resources/tools-software/linuxdsp/docs/linux-kernel-and-drivers/sram.1609134849.txt.gz · Last modified: 28 Dec 2020 06:54 by Sunny Feng