[rtems commit] bsp/mpc55xx: Add SMSC9218I_IRQ_PIN

Sebastian Huber sebh at rtems.org
Wed Jul 18 07:44:03 UTC 2012


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jul 17 17:41:21 2012 +0200

bsp/mpc55xx: Add SMSC9218I_IRQ_PIN

---

 c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac   |    5 +++++
 .../libbsp/powerpc/mpc55xxevb/include/bspopts.h.in |    3 +++
 .../libbsp/powerpc/mpc55xxevb/network/smsc9218i.c  |    4 ++--
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac b/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac
index 0492df7..acffde5 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac
@@ -119,6 +119,11 @@ RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[*],[186])
 RTEMS_BSPOPTS_HELP([SMSC9218I_RESET_PIN],
 [reset pin for SMSC9218I network interface])
 
+RTEMS_BSPOPTS_SET([SMSC9218I_IRQ_PIN],[mpc5674f_ecu508*],[450])
+RTEMS_BSPOPTS_SET([SMSC9218I_IRQ_PIN],[*],[193])
+RTEMS_BSPOPTS_HELP([SMSC9218I_IRQ_PIN],
+[IRQ pin for SMSC9218I network interface])
+
 RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[mpc5643l*],[])
 RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[mpc5674f*],[31])
 RTEMS_BSPOPTS_SET([MPC55XX_CLOCK_EMIOS_CHANNEL],[*],[23])
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in
index e1aa5db..a653415 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bspopts.h.in
@@ -128,5 +128,8 @@
 /* enable LED outputs for SMSC9218I network interface */
 #undef SMSC9218I_ENABLE_LED_OUTPUTS
 
+/* IRQ pin for SMSC9218I network interface */
+#undef SMSC9218I_IRQ_PIN
+
 /* reset pin for SMSC9218I network interface */
 #undef SMSC9218I_RESET_PIN
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c
index 7820e64..0dbfa59 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c
@@ -1529,10 +1529,10 @@ static void smsc9218i_interrupt_init(
 #endif
   pcr.B.ODE = 0;
   pcr.B.HYS = 0;
-  pcr.B.SRC = 3;
+  pcr.B.SRC = 0;
   pcr.B.WPE = 0;
   pcr.B.WPS = 1;
-  SIU.PCR [193].R = pcr.R;
+  SIU.PCR [SMSC9218I_IRQ_PIN].R = pcr.R;
 
   /* DMA/Interrupt Request Select */
   rtems_interrupt_disable(level);




More information about the vc mailing list