aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pru_rpmsg/pru_rpmsg.patch
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-05-07 21:19:10 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-05-15 15:00:52 -0400
commitccaa25eaa5d10291bff332f88194befe643b729f (patch)
tree3f7128515464c8fcb7f2af33b22e950cc0bbe517 /lib/pru_rpmsg/pru_rpmsg.patch
parent969ee4c8f9a3080bc20b6a78e846bee8c9455dec (diff)
downloadkutter-ccaa25eaa5d10291bff332f88194befe643b729f.tar.gz
kutter-ccaa25eaa5d10291bff332f88194befe643b729f.tar.xz
kutter-ccaa25eaa5d10291bff332f88194befe643b729f.zip
pru: Add initial pru_rpmsg library code for Beaglebone PRU
Add external code for using RPMsg on the Beaglebone PRU. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'lib/pru_rpmsg/pru_rpmsg.patch')
-rw-r--r--lib/pru_rpmsg/pru_rpmsg.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/pru_rpmsg/pru_rpmsg.patch b/lib/pru_rpmsg/pru_rpmsg.patch
new file mode 100644
index 00000000..13850b51
--- /dev/null
+++ b/lib/pru_rpmsg/pru_rpmsg.patch
@@ -0,0 +1,16 @@
+diff --git a/lib/pru_rpmsg/include/am335x/pru_iep.h b/lib/pru_rpmsg/include/am335x/pru_iep.h
+index d877ddd..064fb42 100644
+--- a/lib/pru_rpmsg/include/am335x/pru_iep.h
++++ b/lib/pru_rpmsg/include/am335x/pru_iep.h
+@@ -251,6 +251,11 @@ typedef struct {
+
+ } pruIep;
+
++#ifdef __GNUC__
++static volatile pruIntc *__CT_IEP = (void *)0x0002e000;
++#define CT_IEP (*__CT_INTC)
++#else
+ volatile __far pruIep CT_IEP __attribute__((cregister("PRU_IEP", far), peripheral));
++#endif
+
+ #endif /* _PRU_IEP_H_ */