summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-08-25 09:30:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-08-25 09:30:53 +0200
commitf3237a3c3bbe5a298b5ae30a36b24e6f601c6f8b (patch)
tree02fdd44edd7cd74717b453a92c02d8580010d866
parentbsp/mpc55xx: Limit flash support to MPC55[56]X (diff)
downloadrtems-f3237a3c3bbe5a298b5ae30a36b24e6f601c6f8b.tar.bz2
bsp/mpc55xx: Add defines for MPC5668
-rw-r--r--c/src/lib/libcpu/powerpc/mpc55xx/include/fsl-mpc5668.h14
-rw-r--r--c/src/lib/libcpu/powerpc/mpc55xx/include/irq.h6
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 bf388ad106..b7a1793dca 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 638d67969e..4efa92219e 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) : \