zmatt icon

reserve ocmc ram for pru.dtsi

zmatt | PRO | 10/02/20 10:09:44 PM UTC (Edited) | 0 ⭐ | 429 👁️ | Never ⏰ | []
C++ |

690 B

|

None

|

0 👍

/

0 👎

&ocmcram {
    // reserve some ocmc ram for pruss.
    // note: the first 8KB (0x2000 bytes) is reserved for the kernel (see am33xx.dtsi)
    pru-shmem@4000 {
        reg = <0x4000 0x4000>;
        export;
    };
};
 
&ocp {
    // create uio device to make the ram accessible from userspace
    pru-shmem@40304000 {
        reg = <0x40304000 0x4000>;
        // use uio_pdrv_genirq driver.  requires a modprobe.d rule like
        //     https://github.com/mvduin/py-uio/blob/master/etc/modprobe.d/uio.conf
        compatible = "uio";
        // create a convenient symlink.  uses /etc/udev/rules.d/10-of-symlink.rules
        // if it's missing on your system, update the bb-customizations package to latest version.
        symlink = "uio/pru-shmem";
    };
};

Comments