zmatt

reserve ocmc ram for pru.dtsi

Jun 19th, 2020 (edited)
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. &ocmcram {
  2.     // reserve some ocmc ram for pruss.
  3.     // note: the first 8KB (0x2000 bytes) is reserved for the kernel (see am33xx.dtsi)
  4.     pru-shmem@4000 {
  5.         reg = <0x4000 0x4000>;
  6.         export;
  7.     };
  8. };
  9.  
  10. &ocp {
  11.     // create uio device to make the ram accessible from userspace
  12.     pru-shmem@40304000 {
  13.         reg = <0x40304000 0x4000>;
  14.         // use uio_pdrv_genirq driver.  requires a modprobe.d rule like
  15.         //     https://github.com/mvduin/py-uio/blob/master/etc/modprobe.d/uio.conf
  16.         compatible = "uio";
  17.         // create a convenient symlink.  uses /etc/udev/rules.d/10-of-symlink.rules
  18.         // if it's missing on your system, update the bb-customizations package to latest version.
  19.         symlink = "uio/pru-shmem";
  20.     };
  21. };
Add Comment
Please, Sign In to add comment