diff options
author | Oleg Gavavka <work@datalink.net.ua> | 2024-04-27 18:01:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 11:01:57 -0400 |
commit | b1eec53ff46d78fad6b41647708b452035b9fe81 (patch) | |
tree | da3b012334bc7520eacc7c8db4a6aca2d5b43d5e /lib/pru_rpmsg/pru_virtqueue.c | |
parent | 0b329c5d28230e8ad19434840bde26f5fd332998 (diff) | |
download | kutter-b1eec53ff46d78fad6b41647708b452035b9fe81.tar.gz kutter-b1eec53ff46d78fad6b41647708b452035b9fe81.tar.xz kutter-b1eec53ff46d78fad6b41647708b452035b9fe81.zip |
pru: BeagleBone Firmware upgrade to Debian 11.7 Bullseye (#6577)
* Porting BeagleBone to Kernel 5.10
* Fixing issue with installation for BeagleBone.
This fix resolve 2 issue:
1. Conflict with AVR packages.
2. "klipper_pru" script is executed before PRU cores are ready
* Adding additional steps to BeagleBone install guide.
* Updating BeagleBone documentation, adding different use cases, adding buses configurations SPI, I2C, CAN, UART
Signed-off-by: Oleg Gavavka <work@datalink.net.ua>
Diffstat (limited to 'lib/pru_rpmsg/pru_virtqueue.c')
-rw-r--r-- | lib/pru_rpmsg/pru_virtqueue.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/pru_rpmsg/pru_virtqueue.c b/lib/pru_rpmsg/pru_virtqueue.c index 5b14c6e4..cce93d01 100644 --- a/lib/pru_rpmsg/pru_virtqueue.c +++ b/lib/pru_rpmsg/pru_virtqueue.c @@ -41,10 +41,10 @@ */ #include <pru_virtqueue.h> -#ifndef __GNUC__ -volatile register uint32_t __R31; -#else +#ifdef __GNUC__ #include <pru/io.h> +#else +volatile register uint32_t __R31; #endif /* bit 5 is the valid strobe to generate system events with __R31 */ @@ -131,19 +131,12 @@ int16_t pru_virtqueue_kick( struct pru_virtqueue *vq ) { - unsigned int r31; - /* If requested, do not kick the ARM host */ if (vq->vring.avail->flags & VRING_AVAIL_F_NO_INTERRUPT) return PRU_VIRTQUEUE_NO_KICK; /* Generate a system event to kick the ARM */ - r31 = (INT_ENABLE | (vq->to_arm_event - INT_OFFSET)); -#ifdef __GNUC__ - write_r31(r31); -#else - __R31 = r31; -#endif + __R31 = (INT_ENABLE | (vq->to_arm_event - INT_OFFSET)); return PRU_VIRTQUEUE_SUCCESS; } |