[rtems commit] bsp/mpc55xxevb: Fix warnings
Sebastian Huber
sebh at rtems.org
Mon Dec 15 11:01:32 UTC 2014
Module: rtems
Branch: master
Commit: 20aba89b778749f4b12284790f012bca0bf2c2c1
Changeset: http://git.rtems.org/rtems/commit/?id=20aba89b778749f4b12284790f012bca0bf2c2c1
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Dec 15 11:55:27 2014 +0100
bsp/mpc55xxevb: Fix warnings
---
c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac | 6 ++++--
c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c | 6 ++++++
2 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 3c0ce6a..218eede 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/configure.ac
@@ -142,12 +142,14 @@ RTEMS_BSPOPTS_HELP([SMSC9218I_ENABLE_LED_OUTPUTS],
[enable LED outputs for SMSC9218I network interface])
RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[mpc5674f_ecu508*],[433])
-RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[*],[186])
+RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[mpc5566*],[186])
+RTEMS_BSPOPTS_SET([SMSC9218I_RESET_PIN],[*],[])
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_SET([SMSC9218I_IRQ_PIN],[mpc5566*],[193])
+RTEMS_BSPOPTS_SET([SMSC9218I_IRQ_PIN],[*],[])
RTEMS_BSPOPTS_HELP([SMSC9218I_IRQ_PIN],
[IRQ pin for SMSC9218I network interface])
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c
index 7092d1f..fb0b7aa 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/network/smsc9218i.c
@@ -1657,6 +1657,7 @@ static void smsc9218i_interrupt_init(
volatile smsc9218i_registers *regs
)
{
+#ifdef SMSC9218I_IRQ_PIN
rtems_status_code sc = RTEMS_SUCCESSFUL;
union SIU_PCR_tag pcr = MPC55XX_ZERO_FLAGS;
union SIU_DIRER_tag direr = MPC55XX_ZERO_FLAGS;
@@ -1743,15 +1744,19 @@ static void smsc9218i_interrupt_init(
/* Enable error interrupts */
regs->int_en = SMSC9218I_ERROR_INTERRUPTS;
+#endif
}
static void smsc9218i_reset_signal(bool signal)
{
+#ifdef SMSC9218I_RESET_PIN
SIU.GPDO [SMSC9218I_RESET_PIN].R = signal ? 1 : 0;
+#endif
}
static void smsc9218i_reset_signal_init(void)
{
+#ifdef SMSC9218I_RESET_PIN
union SIU_PCR_tag pcr = MPC55XX_ZERO_FLAGS;
smsc9218i_reset_signal(true);
@@ -1769,6 +1774,7 @@ static void smsc9218i_reset_signal_init(void)
pcr.B.WPS = 1;
SIU.PCR [SMSC9218I_RESET_PIN].R = pcr.R;
+#endif
}
static bool smsc9218i_hardware_reset(volatile smsc9218i_registers *regs)
More information about the vc
mailing list