[rtems commit] bsp/mpc55xx: Add defines for MPC5668

Sebastian Huber sebh at rtems.org
Mon Aug 25 07:22:35 UTC 2014


Module:    rtems
Branch:    master
Commit:    f3237a3c3bbe5a298b5ae30a36b24e6f601c6f8b
Changeset: http://git.rtems.org/rtems/commit/?id=f3237a3c3bbe5a298b5ae30a36b24e6f601c6f8b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Aug 25 09:30:53 2014 +0200

bsp/mpc55xx: Add defines for MPC5668

---

 .../libcpu/powerpc/mpc55xx/include/fsl-mpc5668.h   |   14 +++++++-------
 c/src/lib/libcpu/powerpc/mpc55xx/include/irq.h     |    6 ++++++
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/c/src/lib/libcpu/powerpc/mpc55xx/include/fsl-mpc5668.h b/c/src/lib/libcpu/powerpc/mpc55xx/include/fsl-mpc5668.h
index bf388ad..b7a1793 100644
--- a/c/src/lib/libcpu/powerpc/mpc55xx/include/fsl-mpc5668.h
+++ b/c/src/lib/libcpu/powerpc/mpc55xx/include/fsl-mpc5668.h
@@ -5184,7 +5184,7 @@ extern "C" {
             } B;
         } EISR;                 /* External Interrupt Status Register */
 
-        union {
+        union SIU_DIRER_tag {
             uint32_t R;
             struct {
                 uint32_t:16;
@@ -5207,7 +5207,7 @@ extern "C" {
             } B;
         } DIRER;                /* DMA/Interrupt Request Enable Register */
 
-        union {
+        union SIU_DIRSR_tag {
             uint32_t R;
             struct {
                 uint32_t:30;
@@ -5239,7 +5239,7 @@ extern "C" {
             } B;
         } OSR;                  /* Overrun Status Register */
 
-        union {
+        union SIU_ORER_tag {
             uint32_t R;
             struct {
                 uint32_t:16;
@@ -5262,7 +5262,7 @@ extern "C" {
             } B;
         } ORER;                 /* Overrun Request Enable Register */
 
-        union {
+        union SIU_IREER_tag {
             uint32_t R;
             struct {
                 uint32_t NREE0:1;
@@ -5287,7 +5287,7 @@ extern "C" {
             } B;
         } IREER;                /* External IRQ Rising-Edge Event Enable Register */
 
-        union {
+        union SIU_IFEER_tag {
             uint32_t R;
             struct {
                 uint32_t NFEE0:1;
@@ -5312,7 +5312,7 @@ extern "C" {
             } B;
         } IFEER;                /* External IRQ Falling-Edge Event Enable Register */
 
-        union {
+        union SIU_IDFR_tag {
             uint32_t R;
             struct {
                 uint32_t:28;
@@ -5354,7 +5354,7 @@ extern "C" {
                 uint16_t PA:2;
                 uint16_t OBE:1;
                 uint16_t IBE:1;
-                  uint16_t:2;
+                uint16_t DSC:2;
                 uint16_t ODE:1;
                 uint16_t HYS:1;
                 uint16_t SRC:2;
diff --git a/c/src/lib/libcpu/powerpc/mpc55xx/include/irq.h b/c/src/lib/libcpu/powerpc/mpc55xx/include/irq.h
index 638d679..4efa922 100644
--- a/c/src/lib/libcpu/powerpc/mpc55xx/include/irq.h
+++ b/c/src/lib/libcpu/powerpc/mpc55xx/include/irq.h
@@ -223,6 +223,12 @@ extern "C" {
   #define MPC55XX_IRQ_PIT_CHANNEL(ch) \
     ((unsigned) (ch) < 9U ? 148U + (ch) : MPC55XX_IRQ_INVALID)
 
+  /* SIU external interrupts */
+  #define MPC55XX_IRQ_SIU_EXTERNAL_0 53U
+  #define MPC55XX_IRQ_SIU_EXTERNAL_1 54U
+  #define MPC55XX_IRQ_SIU_EXTERNAL_2 55U
+  #define MPC55XX_IRQ_SIU_EXTERNAL_3 56U
+
   /* eMIOS */
   #define MPC55XX_IRQ_EMIOS(ch) \
     ((unsigned) (ch) < 24U ? 58U + (ch) : \



More information about the vc mailing list